fix broken assumption that all native functions will push rbp on the stack first thing

This commit is contained in:
Joel Dice 2007-10-16 12:10:56 -06:00
parent 0a5de853d3
commit fc898c4df1

View File

@ -2089,7 +2089,13 @@ class Compiler: public Assembler {
lea(rsp, FrameFootprint + BytesPerWord, rcx);
mov(rcx, rdi, threadFrameOffset()); // set thread frame to current
jmp(rbx);
push(rbp);
call(rbx);
add(BytesPerWord, rsp);
ret();
return finish();
}