Package org.mozilla.javascript.optimizer
Class OptRuntime
- java.lang.Object
-
- org.mozilla.javascript.ScriptRuntime
-
- org.mozilla.javascript.optimizer.OptRuntime
-
public final class OptRuntime extends ScriptRuntime
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOptRuntime.GeneratorState-
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptRuntime
ScriptRuntime.MessageProvider
-
-
Field Summary
Fields Modifier and Type Field Description static DoubleminusOneObjstatic DoubleoneObjstatic DoublezeroObj-
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
Constructors Constructor Description OptRuntime()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Objectadd(double val1, Object val2)static Objectadd(Object val1, double val2)static Objectcall0(Callable fun, Scriptable thisObj, Context cx, Scriptable scope)Implement ....() call shrinking optimizer code.static Objectcall1(Callable fun, Scriptable thisObj, Object arg0, Context cx, Scriptable scope)Implement ....(arg) call shrinking optimizer code.static Objectcall2(Callable fun, Scriptable thisObj, Object arg0, Object arg1, Context cx, Scriptable scope)Implement ....(arg0, arg1) call shrinking optimizer code.static ObjectcallN(Callable fun, Scriptable thisObj, Object[] args, Context cx, Scriptable scope)Implement ....(arg0, arg1, ...) call shrinking optimizer code.static ObjectcallName(Object[] args, String name, Context cx, Scriptable scope)Implement name(args) call shrinking optimizer code.static ObjectcallName0(String name, Context cx, Scriptable scope)Implement name() call shrinking optimizer code.static ObjectcallProp0(Object value, String property, Context cx, Scriptable scope)Implement x.property() call shrinking optimizer code.static ObjectcallSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String fileName, int lineNumber)static ScriptablecreateNativeGenerator(NativeFunction funObj, Scriptable scope, Scriptable thisObj, int maxLocals, int maxStack)static ObjectelemIncrDecr(Object obj, double index, Context cx, int incrDecrMask)Deprecated.static ObjectelemIncrDecr(Object obj, double index, Context cx, Scriptable scope, int incrDecrMask)static Object[]getGeneratorLocalsState(Object obj)static Object[]getGeneratorStackState(Object obj)static voidinitFunction(NativeFunction fn, int functionType, Scriptable scope, Context cx)static voidmain(Script script, String[] args)static ScriptablenewArrayLiteral(Object[] objects, String encodedInts, int skipCount, Context cx, Scriptable scope)static ObjectnewObjectSpecial(Context cx, Object fun, Object[] args, Scriptable scope, Scriptable callerThis, int callType)static Object[]padStart(Object[] currentArgs, int count)static voidthrowStopIteration(Object obj)static DoublewrapDouble(double num)-
Methods inherited from class org.mozilla.javascript.ScriptRuntime
add, add, add, addInstructionCount, applyOrCall, bind, call, callRef, checkRegExpProxy, cmp_LE, cmp_LT, constructError, constructError, constructError, createFunctionActivation, delete, delete, delete, deleteObjectElem, doTopCall, elemIncrDecr, elemIncrDecr, enterActivationFunction, enterDotQuery, enterWith, enumId, enumInit, enumInit, enumInit, enumNext, enumValue, eq, escapeAttributeValue, escapeString, escapeString, escapeTextValue, evalSpecial, exitActivationFunction, getArrayElements, getElemFunctionAndThis, getElemFunctionAndThis, getGlobal, getLibraryScopeOrNull, getMessage, getMessage0, getMessage1, getMessage2, getMessage3, getMessage4, getNameFunctionAndThis, getObjectElem, getObjectElem, getObjectElem, getObjectIndex, getObjectIndex, getObjectIndex, getObjectProp, getObjectProp, getObjectProp, getObjectPropNoWarn, getObjectPropNoWarn, getPropFunctionAndThis, getPropFunctionAndThis, getRegExpProxy, getTopCallScope, getTopLevelProp, getValueFunctionAndThis, hasObjectElem, hasTopCall, in, indexFromString, initFunction, initSafeStandardObjects, initScript, initStandardObjects, instanceOf, isArrayObject, isJSLineTerminator, isJSWhitespaceOrLineTerminator, isPrimitive, isRhinoRuntimeType, jsDelegatesTo, lastStoredScriptable, lastUint32Result, leaveDotQuery, leaveWith, memberRef, memberRef, name, nameIncrDecr, nameIncrDecr, nameRef, nameRef, newArrayLiteral, newBuiltinObject, newCatchScope, newObject, newObject, newObjectLiteral, newObjectLiteral, newSpecial, notFoundError, notFunctionError, notFunctionError, notFunctionError, numberToString, padArguments, propIncrDecr, propIncrDecr, rangeError, refDel, refGet, refIncrDecr, refIncrDecr, refSet, refSet, requireObjectCoercible, searchDefaultNamespace, setBuiltinProtoAndParent, setConst, setDefaultNamespace, setEnumNumbers, setFunctionProtoAndParent, setName, setObjectElem, setObjectElem, setObjectElem, setObjectIndex, setObjectIndex, setObjectIndex, setObjectProp, setObjectProp, setObjectProp, setObjectProtoAndParent, setRegExpProxy, shallowEq, specialRef, specialRef, storeUint32Result, strictSetName, testUint32String, throwCustomError, throwError, toBoolean, toCharSequence, toInt32, toInt32, toInt32, toInteger, toInteger, toInteger, toIterator, toNumber, toNumber, toNumber, toObject, toObject, toObject, toObject, toObjectOrNull, toObjectOrNull, toPrimitive, toPrimitive, toString, toString, toString, toUint16, toUint32, toUint32, typeError, typeError0, typeError1, typeError2, typeError3, typeErrorThrower, typeErrorThrower, typeof, typeofName, undefCallError, undefReadError, undefWriteError, updateDotQuery, wrapBoolean, wrapException, wrapInt, wrapNumber, wrapRegExp
-
-
-
-
Method Detail
-
call0
public static Object call0(Callable fun, Scriptable thisObj, Context cx, Scriptable scope)
Implement ....() call shrinking optimizer code.
-
call1
public static Object call1(Callable fun, Scriptable thisObj, Object arg0, Context cx, Scriptable scope)
Implement ....(arg) call shrinking optimizer code.
-
call2
public static Object call2(Callable fun, Scriptable thisObj, Object arg0, Object arg1, Context cx, Scriptable scope)
Implement ....(arg0, arg1) call shrinking optimizer code.
-
callN
public static Object callN(Callable fun, Scriptable thisObj, Object[] args, Context cx, Scriptable scope)
Implement ....(arg0, arg1, ...) call shrinking optimizer code.
-
callName
public static Object callName(Object[] args, String name, Context cx, Scriptable scope)
Implement name(args) call shrinking optimizer code.
-
callName0
public static Object callName0(String name, Context cx, Scriptable scope)
Implement name() call shrinking optimizer code.
-
callProp0
public static Object callProp0(Object value, String property, Context cx, Scriptable scope)
Implement x.property() call shrinking optimizer code.
-
elemIncrDecr
@Deprecated public static Object elemIncrDecr(Object obj, double index, Context cx, int incrDecrMask)
Deprecated.
-
elemIncrDecr
public static Object elemIncrDecr(Object obj, double index, Context cx, Scriptable scope, int incrDecrMask)
-
initFunction
public static void initFunction(NativeFunction fn, int functionType, Scriptable scope, Context cx)
-
callSpecial
public static Object callSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String fileName, int lineNumber)
-
newObjectSpecial
public static Object newObjectSpecial(Context cx, Object fun, Object[] args, Scriptable scope, Scriptable callerThis, int callType)
-
wrapDouble
public static Double wrapDouble(double num)
-
newArrayLiteral
public static Scriptable newArrayLiteral(Object[] objects, String encodedInts, int skipCount, Context cx, Scriptable scope)
-
throwStopIteration
public static void throwStopIteration(Object obj)
-
createNativeGenerator
public static Scriptable createNativeGenerator(NativeFunction funObj, Scriptable scope, Scriptable thisObj, int maxLocals, int maxStack)
-
-