2004/01/12 16:37:22
[org.ibex.core.git] / src / org / xwt / js / ByteCodes.java
index d364d8c..4a603a7 100644 (file)
@@ -57,13 +57,13 @@ interface ByteCodes {
     /** pop an element; push a JS.JSArray containing the keys of the popped element */
     public static final byte PUSHKEYS = -16;     
 
-    /** pops [arg+2] elements, pushes the former top element, then pushes back the rest (retaining order) */
+    /** push the top element down so that (arg) elements are on top of it; all other elements retain ordering */
     public static final byte SWAP = -17;         
 
-    /** execute the ForthBlock pointed to by the literal in a fresh scope with parentJSScope==THIS */
+    /** execute the bytecode block pointed to by the literal in a fresh scope with parentScope==THIS */
     public static final byte NEWSCOPE = -18;        
 
-    /** execute the ForthBlock pointed to by the literal in a fresh scope with parentJSScope==THIS */
+    /** execute the bytecode block pointed to by the literal in a fresh scope with parentScope==THIS */
     public static final byte OLDSCOPE = -19;
 
     /** push a copy of the top stack element */
@@ -82,10 +82,13 @@ interface ByteCodes {
     /** finish a finally block and carry out whatever instruction initiated the finally block */
     public static final byte FINALLY_DONE = -24;
     
+    /** finish a finally block and carry out whatever instruction initiated the finally block */
+    public static final byte MAKE_GRAMMAR = -25;
+    
     public static final String[] bytecodeToString = new String[] {
         "", "", "LITERAL", "ARRAY", "OBJECT", "NEWFUNCTION", "DECLARE", "TOPSCOPE",
         "GET", "GET_PRESERVE", "PUT", "JT", "JF", "JMP", "POP", "CALL", "PUSHKEYS",
         "SWAP", "NEWSCOPE", "OLDSCOPE", "DUP", "LABEL", "LOOP", "CALLMETHOD",
-        "FINALLY_DONE"
+        "FINALLY_DONE", "MAKE_GRAMMAR"
     };
 }