Added a bunch of the UINT/INT opcodes.

This commit is contained in:
David Anderson
2010-05-25 14:38:39 -07:00
parent 65f6115c39
commit 60cc47c414
2 changed files with 25 additions and 4 deletions

View File

@@ -203,10 +203,6 @@ mjit::Compiler::generateMethod()
BEGIN_CASE(JSOP_TRACE)
END_CASE(JSOP_TRACE)
BEGIN_CASE(JSOP_POP)
frame.pop();
END_CASE(JSOP_POP)
BEGIN_CASE(JSOP_ZERO)
frame.push(JSVAL_ZERO);
END_CASE(JSOP_ZERO)
@@ -215,10 +211,22 @@ mjit::Compiler::generateMethod()
frame.push(JSVAL_ONE);
END_CASE(JSOP_ONE)
BEGIN_CASE(JSOP_POP)
frame.pop();
END_CASE(JSOP_POP)
BEGIN_CASE(JSOP_UINT16)
frame.push(Value(Int32Tag((int32_t) GET_UINT16(PC))));
END_CASE(JSOP_UINT16)
BEGIN_CASE(JSOP_BINDNAME)
jsop_bindname(fullAtomIndex(PC));
END_CASE(JSOP_BINDNAME)
BEGIN_CASE(JSOP_UINT24)
frame.push(Value(Int32Tag((int32_t) GET_UINT24(PC))));
END_CASE(JSOP_UINT24)
BEGIN_CASE(JSOP_STOP)
/* Safe point! */
cg.storeJsval(Value(UndefinedTag()),
@@ -228,6 +236,14 @@ mjit::Compiler::generateMethod()
goto done;
END_CASE(JSOP_STOP)
BEGIN_CASE(JSOP_INT8)
frame.push(Value(Int32Tag(GET_INT8(PC))));
END_CASE(JSOP_INT8)
BEGIN_CASE(JSOP_INT32)
frame.push(Value(Int32Tag(GET_INT32(PC))));
END_CASE(JSOP_INT32)
BEGIN_CASE(JSOP_GETGLOBAL)
jsop_getglobal(GET_SLOTNO(PC));
END_CASE(JSOP_GETGLOBAL)