dotgnu-libjit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-libjit] Function cannot return constant


From: Alexey Galakhov
Subject: [Dotgnu-libjit] Function cannot return constant
Date: Tue, 26 Feb 2013 22:25:57 +0600
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

Hello,

I found a bug that was just triggered by the constant folding but really
introduced in rev. 568424e (Restore the ability to allocate memory for
recompiled functions). If a function tries to return a constant like this

jit_value_t a = jit_value_create_nint_constant(func, jit_type_int, 2);
jit_insn_return(func, a);

an empty x86 code will be produced after compile. Previous versions
resulted in correct code. I haven't found the exact reason yet, sorry.
Can you please take a look?

Regards,
Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]