[JAEGER] Added JSOP_CALLELEM, fixed bug in JSOP_CALLNAME.

This commit is contained in:
David Anderson
2010-06-08 18:40:26 -07:00
parent 10d508ee82
commit 9a0c52fc65
4 changed files with 44 additions and 3 deletions

View File

@@ -627,7 +627,7 @@ mjit::Compiler::generateMethod()
masm.move(Imm32(fullAtomIndex(PC)), Registers::ArgReg1);
stubCall(stubs::CallName, Uses(0), Defs(2));
frame.pushSynced();
frame.pushSyncedType(JSVAL_MASK32_NONFUNOBJ);
frame.pushSynced();
END_CASE(JSOP_CALLNAME)
BEGIN_CASE(JSOP_CALL)
@@ -962,6 +962,14 @@ mjit::Compiler::generateMethod()
frame.push(Value(Int32Tag((int32_t) GET_UINT24(PC))));
END_CASE(JSOP_UINT24)
BEGIN_CASE(JSOP_CALLELEM)
prepareStubCall();
stubCall(stubs::CallElem, Uses(2), Defs(2));
frame.popn(2);
frame.pushSynced();
frame.pushSynced();
END_CASE(JSOP_CALLELEM)
BEGIN_CASE(JSOP_STOP)
/* Safe point! */
emitReturn();