|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptRuntime
org.mozilla.javascript.optimizer.OptRuntime
public final class OptRuntime
Nested Class Summary | |
---|---|
static class |
OptRuntime.GeneratorState
|
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptRuntime |
---|
ScriptRuntime.MessageProvider |
Field Summary | |
---|---|
static Double |
minusOneObj
|
static Double |
oneObj
|
static Double |
zeroObj
|
Fields inherited from class org.mozilla.javascript.ScriptRuntime |
---|
BooleanClass, ByteClass, CharacterClass, ClassClass, ContextClass, ContextFactoryClass, DateClass, DoubleClass, emptyArgs, emptyStrings, ENUMERATE_ARRAY, ENUMERATE_ARRAY_NO_ITERATOR, ENUMERATE_KEYS, ENUMERATE_KEYS_NO_ITERATOR, ENUMERATE_VALUES, ENUMERATE_VALUES_NO_ITERATOR, FloatClass, FunctionClass, IntegerClass, LongClass, messageProvider, NaN, NaNobj, negativeZero, NumberClass, ObjectClass, ROOT_LOCALE, ScriptableClass, ScriptableObjectClass, ShortClass, StringClass |
Constructor Summary | |
---|---|
OptRuntime()
|
Method Summary | |
---|---|
static Object |
add(double val1,
Object val2)
|
static Object |
add(Object val1,
double val2)
|
static Object |
call0(Callable fun,
Scriptable thisObj,
Context cx,
Scriptable scope)
Implement ....() call shrinking optimizer code. |
static Object |
call1(Callable fun,
Scriptable thisObj,
Object arg0,
Context cx,
Scriptable scope)
Implement ....(arg) call shrinking optimizer code. |
static Object |
call2(Callable fun,
Scriptable thisObj,
Object arg0,
Object arg1,
Context cx,
Scriptable scope)
Implement ....(arg0, arg1) call shrinking optimizer code. |
static Object |
callN(Callable fun,
Scriptable thisObj,
Object[] args,
Context cx,
Scriptable scope)
Implement ....(arg0, arg1, ...) call shrinking optimizer code. |
static Object |
callName(Object[] args,
String name,
Context cx,
Scriptable scope)
Implement name(args) call shrinking optimizer code. |
static Object |
callName0(String name,
Context cx,
Scriptable scope)
Implement name() call shrinking optimizer code. |
static Object |
callProp0(Object value,
String property,
Context cx,
Scriptable scope)
Implement x.property() call shrinking optimizer code. |
static Object |
callSpecial(Context cx,
Callable fun,
Scriptable thisObj,
Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType,
String fileName,
int lineNumber)
|
static Scriptable |
createNativeGenerator(NativeFunction funObj,
Scriptable scope,
Scriptable thisObj,
int maxLocals,
int maxStack)
|
static Object |
elemIncrDecr(Object obj,
double index,
Context cx,
int incrDecrMask)
|
static Object[] |
getGeneratorLocalsState(Object obj)
|
static Object[] |
getGeneratorStackState(Object obj)
|
static void |
initFunction(NativeFunction fn,
int functionType,
Scriptable scope,
Context cx)
|
static void |
main(Script script,
String[] args)
|
static Scriptable |
newArrayLiteral(Object[] objects,
String encodedInts,
int skipCount,
Context cx,
Scriptable scope)
|
static Object |
newObjectSpecial(Context cx,
Object fun,
Object[] args,
Scriptable scope,
Scriptable callerThis,
int callType)
|
static Object[] |
padStart(Object[] currentArgs,
int count)
|
static void |
throwStopIteration(Object obj)
|
static Double |
wrapDouble(double num)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Double zeroObj
public static final Double oneObj
public static final Double minusOneObj
Constructor Detail |
---|
public OptRuntime()
Method Detail |
---|
public static Object call0(Callable fun, Scriptable thisObj, Context cx, Scriptable scope)
public static Object call1(Callable fun, Scriptable thisObj, Object arg0, Context cx, Scriptable scope)
public static Object call2(Callable fun, Scriptable thisObj, Object arg0, Object arg1, Context cx, Scriptable scope)
public static Object callN(Callable fun, Scriptable thisObj, Object[] args, Context cx, Scriptable scope)
public static Object callName(Object[] args, String name, Context cx, Scriptable scope)
public static Object callName0(String name, Context cx, Scriptable scope)
public static Object callProp0(Object value, String property, Context cx, Scriptable scope)
public static Object add(Object val1, double val2)
public static Object add(double val1, Object val2)
public static Object elemIncrDecr(Object obj, double index, Context cx, int incrDecrMask)
public static Object[] padStart(Object[] currentArgs, int count)
public static void initFunction(NativeFunction fn, int functionType, Scriptable scope, Context cx)
public static Object callSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String fileName, int lineNumber)
public static Object newObjectSpecial(Context cx, Object fun, Object[] args, Scriptable scope, Scriptable callerThis, int callType)
public static Double wrapDouble(double num)
public static Scriptable newArrayLiteral(Object[] objects, String encodedInts, int skipCount, Context cx, Scriptable scope)
public static void main(Script script, String[] args)
public static void throwStopIteration(Object obj)
public static Scriptable createNativeGenerator(NativeFunction funObj, Scriptable scope, Scriptable thisObj, int maxLocals, int maxStack)
public static Object[] getGeneratorStackState(Object obj)
public static Object[] getGeneratorLocalsState(Object obj)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |