+2008-12-10 Klaus Treichel <ktreichel@web.de>
+
+ * jit/jit-rules-x86-64.c (x86_64_call_code): Load %rax with 8 before
+ doing the call for calls to variadic functions.
+
+ * jit/jit-rules-x86-64.ins (JIT_OP_CALL_INDIRECT,
+ JIT_OP_CALL_VTABLE_PTR): likewise.
+
2008-12-10 Aleksey Demakov <ademakov@gmail.com>
* NEWS: update news for the 0.1.2 release
{
jit_nint offset;
+ x86_64_mov_reg_imm_size(inst, X86_64_RAX, 8, 4);
offset = func - ((jit_nint)inst + 5);
if(offset >= jit_min_int && offset <= jit_max_int)
{
JIT_OP_CALL_INDIRECT:
[] -> {
+ x86_64_mov_reg_imm_size(inst, X86_64_RAX, 8, 4);
x86_64_call_reg(inst, X86_64_SCRATCH);
}
JIT_OP_CALL_VTABLE_PTR:
[] -> {
+ x86_64_mov_reg_imm_size(inst, X86_64_RAX, 8, 4);
x86_64_call_reg(inst, X86_64_SCRATCH);
}