2003/07/05 03:23:31
[org.ibex.core.git] / src / org / xwt / js / ByteCodes.java
index c74c564..bac280a 100644 (file)
@@ -71,12 +71,16 @@ interface ByteCodes {
 
     /** 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 */
-    public static final byte LOOP = -22;         
+    public static final byte LOOP = -22;        
+     
+    /** pop three elements off the stack; method arguments, method name, and an object to call the method on, then calls the method 
+        Has a similar effect a a GET followed by a CALL */
+    public static final byte CALLMETHOD = -23;
 
 
     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"
+        "SWAP", "NEWSCOPE", "OLDSCOPE", "DUP", "LABEL", "LOOP", "CALLMETHOD"
     };
 }