[JAEGER] Added JSOP_DEFFUN, JSOP_NOP.

This commit is contained in:
David Anderson
2010-05-30 23:51:32 -07:00
parent 7cd70ed224
commit 36d3a21971
3 changed files with 172 additions and 0 deletions

View File

@@ -262,6 +262,9 @@ mjit::Compiler::generateMethod()
**********************/
switch (op) {
BEGIN_CASE(JSOP_NOP)
END_CASE(JSOP_NOP)
BEGIN_CASE(JSOP_GOTO)
{
/* :XXX: this isn't really necessary if we follow the branch. */
@@ -337,6 +340,12 @@ mjit::Compiler::generateMethod()
frame.pop();
END_CASE(JSOP_SETNAME)
BEGIN_CASE(JSOP_DEFFUN)
JS_ASSERT(frame.stackDepth() == 0);
masm.move(Imm32(fullAtomIndex(PC)), Registers::ArgReg1);
stubCall(stubs::DefFun, Uses(0), Defs(0));
END_CASE(JSOP_DEFFUN)
BEGIN_CASE(JSOP_UINT24)
frame.push(Value(Int32Tag((int32_t) GET_UINT24(PC))));
END_CASE(JSOP_UINT24)