[JAEGER] Implement JSOP_LENGTH; r=dvander.

This commit is contained in:
Sean Stangl
2010-06-08 16:28:17 -07:00
parent 2bfba2ff37
commit d2188e086c
3 changed files with 35 additions and 0 deletions

View File

@@ -596,6 +596,13 @@ mjit::Compiler::generateMethod()
jsop_getprop_slow();
END_CASE(JSOP_GETPROP)
BEGIN_CASE(JSOP_LENGTH)
prepareStubCall();
stubCall(stubs::Length, Uses(1), Defs(1));
frame.pop();
frame.pushSynced();
END_CASE(JSOP_LENGTH)
BEGIN_CASE(JSOP_GETELEM)
prepareStubCall();
stubCall(stubs::GetElem, Uses(2), Defs(1));