include CALLMETHOD and GET_PRESERVE as acceptable restart bytecodes
authoradam <adam@megacz.com>
Mon, 17 Jan 2005 00:59:49 +0000 (00:59 +0000)
committeradam <adam@megacz.com>
Mon, 17 Jan 2005 00:59:49 +0000 (00:59 +0000)
darcs-hash:20050117005949-5007d-c1de2f249f464d86e57f2c017bee6b657a316a3d.gz

src/org/ibex/js/Interpreter.java

index 21fffba..26521fa 100644 (file)
@@ -71,7 +71,7 @@ class Interpreter implements ByteCodes, Tokens, Pausable {
         pausecount++;
         switch(f.op[pc]) {
             case Tokens.RETURN: case ByteCodes.PUT: get = false; break;
-            case ByteCodes.GET: case ByteCodes.CALL: get = true; break;
+            case ByteCodes.GET: case ByteCodes.GET_PRESERVE: case ByteCodes.CALLMETHOD: case ByteCodes.CALL: get = true; break;
             default: throw new Error("paused on unexpected bytecode: " + f.op[pc]);
         }
     }