[JAEGER] Added JSOP_CALLGLOBAL.
authorDavid Anderson <danderson@mozilla.com>
Tue, 08 Jun 2010 21:38:33 -0700
changeset 52779 15a0368ee3c3b659b83db9c4f09a60ef557dcf37
parent 52778 ecdc45e540f304975dd5d9d568f32931e7da561d
child 52780 db9f9c8783e04050550f05e9c49e9896519b8d04
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
milestone1.9.3a5pre
[JAEGER] Added JSOP_CALLGLOBAL.
js/src/methodjit/Compiler.cpp
--- a/js/src/methodjit/Compiler.cpp
+++ b/js/src/methodjit/Compiler.cpp
@@ -1069,17 +1069,20 @@ mjit::Compiler::generateMethod()
           }
           END_CASE(JSOP_CONCATN)
 
           BEGIN_CASE(JSOP_OBJTOSTR)
             jsop_objtostr();
           END_CASE(JSOP_OBJTOSTR)
 
           BEGIN_CASE(JSOP_GETGLOBAL)
+          BEGIN_CASE(JSOP_CALLGLOBAL)
             jsop_getglobal(GET_SLOTNO(PC));
+            if (op == JSOP_CALLGLOBAL)
+                frame.push(NullTag());
           END_CASE(JSOP_GETGLOBAL)
 
           BEGIN_CASE(JSOP_SETGLOBAL)
             jsop_setglobal(GET_SLOTNO(PC));
           END_CASE(JSOP_SETGLOBAL)
 
           BEGIN_CASE(JSOP_INCGLOBAL)
           BEGIN_CASE(JSOP_DECGLOBAL)