[Gambas-user] gb.jit crash

Emil Lenngren emil.lenngren at ...626...
Fri Oct 31 21:56:54 CET 2014


And this is done in the function JR_object_cast in gb_runtime.c, which is
called from jitted code when objects are converted to other object types.

2014-10-31 21:55 GMT+01:00 Emil Lenngren <emil.lenngren at ...626...>:

> The problem is the signature of the _convert functions in the classes.
> Before they were OBJECT* _convert(CLASS* src, CLASS* class) but now they
> are bool _convert(CLASS* src, CLASS* class, VALUE* value). The JIT calls
> the function using the first one.
>
> 2014-10-31 21:49 GMT+01:00 Benoît Minisini <gambas at ...1...>:
>
>> Le 31/10/2014 21:40, Emil Lenngren a écrit :
>> > Hi!
>> > Actually this will also fail:
>> >
>> > Dim a As Integer[]
>> > a = ["1"]
>> >
>> > The problem is with the "new" _convert mechanism, introduced in
>> > http://sourceforge.net/p/gambas/code/4908/. The JIT code expects the
>> older
>> > API, which therefore crash...
>> > I haven't found out how much refactor needs to be done to support this
>> kind
>> > of conversion yet. I'll see if I can fix this, but it might take some
>> time
>> > cause I'm quite busy right now.
>> >
>> > /Emil
>> >
>>
>> You mean that the "VALUE_convert()" interpreter function had been
>> "just-in-timed"?
>>
>> --
>> Benoît Minisini
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>



More information about the User mailing list