nashorn/src/jdk/nashorn/internal/codegen/CompilerConstants.java
changeset 17970 a85557027014
parent 17756 daaa1e643f71
child 18859 7c4d0146ccd5
equal deleted inserted replaced
17969:0a4ddfce5b84 17970:a85557027014
    27 
    27 
    28 import static jdk.nashorn.internal.lookup.Lookup.MH;
    28 import static jdk.nashorn.internal.lookup.Lookup.MH;
    29 
    29 
    30 import java.lang.invoke.MethodHandle;
    30 import java.lang.invoke.MethodHandle;
    31 import java.lang.invoke.MethodHandles;
    31 import java.lang.invoke.MethodHandles;
       
    32 import java.util.Iterator;
    32 import jdk.nashorn.internal.codegen.types.Type;
    33 import jdk.nashorn.internal.codegen.types.Type;
    33 import jdk.nashorn.internal.runtime.ScriptFunction;
    34 import jdk.nashorn.internal.runtime.ScriptFunction;
    34 import jdk.nashorn.internal.runtime.ScriptObject;
    35 import jdk.nashorn.internal.runtime.ScriptObject;
    35 import jdk.nashorn.internal.runtime.Source;
    36 import jdk.nashorn.internal.runtime.Source;
    36 
    37 
   103 
   104 
   104     /** the arguments vector when necessary and the slot */
   105     /** the arguments vector when necessary and the slot */
   105     ARGUMENTS("arguments", Object.class, 2),
   106     ARGUMENTS("arguments", Object.class, 2),
   106 
   107 
   107     /** prefix for iterators for for (x in ...) */
   108     /** prefix for iterators for for (x in ...) */
   108     ITERATOR_PREFIX(":i"),
   109     ITERATOR_PREFIX(":i", Iterator.class),
   109 
   110 
   110     /** prefix for tag variable used for switch evaluation */
   111     /** prefix for tag variable used for switch evaluation */
   111     SWITCH_TAG_PREFIX(":s"),
   112     SWITCH_TAG_PREFIX(":s"),
   112 
   113 
   113     /** prefix for all exceptions */
   114     /** prefix for all exceptions */
   114     EXCEPTION_PREFIX(":e"),
   115     EXCEPTION_PREFIX(":e", Throwable.class),
   115 
   116 
   116     /** prefix for quick slots generated in Store */
   117     /** prefix for quick slots generated in Store */
   117     QUICK_PREFIX(":q"),
   118     QUICK_PREFIX(":q"),
   118 
   119 
   119     /** prefix for temporary variables */
   120     /** prefix for temporary variables */