[JAEGER] Move redundant code to jsop_getprop_slow(); r=dvander.

This commit is contained in:
Sean Stangl
2010-06-07 16:43:45 -07:00
parent a260ad43c2
commit 2cff66c873
2 changed files with 14 additions and 16 deletions

View File

@@ -562,34 +562,22 @@ mjit::Compiler::generateMethod()
BEGIN_CASE(JSOP_GETTHISPROP)
/* Push thisv onto stack. */
jsop_this();
prepareStubCall();
stubCall(stubs::GetProp, Uses(1), Defs(1));
frame.pop();
frame.pushSynced();
jsop_getprop_slow();
END_CASE(JSOP_GETTHISPROP);
BEGIN_CASE(JSOP_GETARGPROP)
/* Push arg onto stack. */
jsop_getarg(GET_SLOTNO(PC));
prepareStubCall();
stubCall(stubs::GetProp, Uses(1), Defs(1));
frame.pop();
frame.pushSynced();
jsop_getprop_slow();
END_CASE(JSOP_GETARGPROP)
BEGIN_CASE(JSOP_GETLOCALPROP)
frame.pushLocal(GET_SLOTNO(PC));
prepareStubCall();
stubCall(stubs::GetProp, Uses(1), Defs(1));
frame.pop();
frame.pushSynced();
jsop_getprop_slow();
END_CASE(JSOP_GETLOCALPROP)
BEGIN_CASE(JSOP_GETPROP)
prepareStubCall();
stubCall(stubs::GetProp, Uses(1), Defs(1));
frame.pop();
frame.pushSynced();
jsop_getprop_slow();
END_CASE(JSOP_GETPROP)
BEGIN_CASE(JSOP_GETELEM)
@@ -1242,6 +1230,15 @@ mjit::Compiler::emitStubCmpOp(BoolStub stub, jsbytecode *target, JSOp fused)
}
}
void
mjit::Compiler::jsop_getprop_slow()
{
prepareStubCall();
stubCall(stubs::GetProp, Uses(1), Defs(1));
frame.pop();
frame.pushSynced();
}
void
mjit::Compiler::jsop_getarg(uint32 index)
{