2003/06/16 07:58:57
[org.ibex.core.git] / src / org / xwt / js / ByteCodes.java
index 1089f64..b23af2d 100644 (file)
@@ -48,26 +48,26 @@ interface ByteCodes {
     /** discard the top stack element */
     static public final byte POP = -14;          
 
-    /** pop two elements; call stack[-1](stack[top]) where stacktop is a JS.Array */
+    /** pop two elements; call stack[-1](stack[top]) where stacktop is a JS.JS.Array */
     public static final byte CALL = -15;         
 
-    /** pop an element; push a JS.Array containing the keys of the popped element */
+    /** pop an element; push a JS.JS.Array containing the keys of the popped element */
     public static final byte PUSHKEYS = -16;     
 
     /** swap the top two elements on the stack */
     public static final byte SWAP = -17;         
 
     /** execute the ForthBlock pointed to by the literal in a fresh scope with parentScope==THIS */
-    public static final byte PUSHSCOPE = -18;        
+    public static final byte NEWSCOPE = -18;        
 
     /** execute the ForthBlock pointed to by the literal in a fresh scope with parentScope==THIS */
-    public static final byte POPSCOPE = -19;
+    public static final byte OLDSCOPE = -19;
 
     /** push a copy of the top stack element */
     public static final byte DUP = -20;          
 
-    /** declare a label */
-    public static final byte LABEL = -21;        
+    /** a NOP; confers a label upon the following instruction */
+    public static final byte LABEL = -21;          
 
     /** execute the ForthBlock pointed to by the literal until BREAK encountered; push TRUE onto the stack for the first iteration
      *  and FALSE for all subsequent iterations */