[Gambas-user] JIT problem

Roki n.rogozarski at ...626...
Wed May 14 17:01:24 CEST 2014


Hi guys!
This is my simple project I put in attachment. It is a program without 
optional parameter, and again the same error appears when I want to show 
a report preview.


On 05/14/2014 04:03 PM, Benoît Minisini wrote:
> Le 14/05/2014 15:54, Emil Lenngren a écrit :
>> Can someone print a gambas disassembly of a gambas file (and source code)
>> where this happens?
>> gbc -v File.class
>> will compile the file and print the disassembly if I remember correctly.
>>
> I think that the crash comes form the implementation of the new
> IsMissing() function.
>
> When a function has optional parameters, it pushes on the stack one 64
> bits integer (just after arguments, local variables, and slots for
> control flow instructions), each bit set indicating that the paramater
> was not passed to the function. (Quick & dirty implementation, but I
> didn't find better without breaking too many things...)
>
> As the interpreter always unwinds the stack up to the position it had
> when entering the function, this was not a problem. But for the JIT
> compiler it may be!
>
> Regards,
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: testJIT.tar.gz
Type: application/x-gzip
Size: 5749 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140514/d1c57278/attachment.bin>


More information about the User mailing list