Package org.mozilla.javascript.optimizer
Class OptRuntime
java.lang.Object
org.mozilla.javascript.ScriptRuntime
org.mozilla.javascript.optimizer.OptRuntime
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptRuntime
ScriptRuntime.MessageProvider, ScriptRuntime.StringIdOrIndex
-
Field Summary
Fields inherited from class org.mozilla.javascript.ScriptRuntime
BigIntegerClass, 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_IN_ORDER, ENUMERATE_VALUES_NO_ITERATOR, FloatClass, FunctionClass, IntegerClass, LongClass, messageProvider, NaN, NaNobj, negativeZero, negativeZeroObj, NumberClass, ObjectClass, ScriptableClass, ScriptableObjectClass, ShortClass, StringClass, zeroObj
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
static Object
static Function
bindThis
(NativeFunction fn, Context cx, Scriptable scope, Scriptable thisObj) static Object
call0
(Callable fun, Scriptable thisObj, Context cx, Scriptable scope) Implement ....() call shrinking optimizer code.static Object
call0Optional
(Callable fun, Scriptable thisObj, Context cx, Scriptable scope) static Object
call1
(Callable fun, Scriptable thisObj, Object arg0, Context cx, Scriptable scope) Implement ....static Object
call2
(Callable fun, Scriptable thisObj, Object arg0, Object arg1, Context cx, Scriptable scope) Implement ....static Object
callN
(Callable fun, Scriptable thisObj, Object[] args, Context cx, Scriptable scope) Implement ....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
callName0Optional
(String name, Context cx, Scriptable scope) static Object
callProp0
(Object value, String property, Context cx, Scriptable scope) Implement x.property() call shrinking optimizer code.static Object
callProp0Optional
(Object value, String property, Context cx, Scriptable scope) static Object
callSpecial
(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String fileName, int lineNumber, boolean isOptionalChainingCall) static Scriptable
createNativeGenerator
(NativeFunction funObj, Scriptable scope, Scriptable thisObj, int maxLocals, int maxStack) static Object
elemIncrDecr
(Object obj, double index, Context cx, int incrDecrMask) Deprecated.static Object
elemIncrDecr
(Object obj, double index, Context cx, Scriptable scope, int incrDecrMask) static Object[]
static Object
static Object[]
static void
initFunction
(NativeFunction fn, int functionType, Scriptable scope, Context cx) static boolean
isNullOrUndefined
(Object obj) static void
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[]
static void
setGeneratorReturnValue
(Object obj, Object val) static void
throwStopIteration
(Object scope, Object genState) static Double
wrapDouble
(double num) Methods inherited from class org.mozilla.javascript.ScriptRuntime
add, add, add, add, addInstructionCount, advanceStringIndex, applyOrCall, bigIntToString, bind, bitwiseAND, bitwiseNOT, bitwiseOR, bitwiseXOR, call, callIterator, callRef, canonicalNumericIndexString, checkRegExpProxy, compare, compare, constructError, constructError, constructError, createArrowFunctionActivation, createArrowFunctionActivation, createFunctionActivation, createFunctionActivation, createFunctionActivation, delete, delete, delete, deleteObjectElem, divide, doTopCall, doTopCall, elemIncrDecr, elemIncrDecr, enterActivationFunction, enterDotQuery, enterWith, enumId, enumInit, enumInit, enumInit, enumNext, enumNext, enumValue, eq, escapeAttributeValue, escapeString, escapeString, escapeTextValue, evalSpecial, exitActivationFunction, exponentiate, fillObjectLiteral, getArrayElements, getElemFunctionAndThis, getElemFunctionAndThis, getElemFunctionAndThisOptional, getExistingCtor, getGlobal, getLibraryScopeOrNull, getMessage, getMessage0, getMessage1, getMessage2, getMessage3, getMessage4, getMessageById, getNameFunctionAndThis, getNameFunctionAndThisOptional, getObjectElem, getObjectElem, getObjectElem, getObjectIndex, getObjectIndex, getObjectIndex, getObjectProp, getObjectProp, getObjectProp, getObjectPropNoWarn, getObjectPropNoWarn, getPropFunctionAndThis, getPropFunctionAndThis, getPropFunctionAndThisOptional, getRegExpProxy, getTemplateLiteralCallSite, getTopCallScope, getTopLevelProp, getValueFunctionAndThis, getValueFunctionAndThisOptional, hasObjectElem, hasTopCall, in, indexFromString, initFunction, initSafeStandardObjects, initScript, initStandardObjects, instanceOf, isArrayObject, isIteratorDone, isJSLineTerminator, isJSWhitespaceOrLineTerminator, isNaN, isObject, isPrimitive, isRhinoRuntimeType, jsDelegatesTo, lastStoredScriptable, lastUint32Result, leaveDotQuery, leaveWith, leftShift, loadFromIterable, memberRef, memberRef, multiply, multiply, name, nameIncrDecr, nameIncrDecr, nameRef, nameRef, negate, newArrayLiteral, newBuiltinObject, newCatchScope, newObject, newObject, newObjectLiteral, newObjectLiteral, newSpecial, notFoundError, notFunctionError, notFunctionError, notFunctionError, numberToString, padAndRestArguments, padArguments, propIncrDecr, propIncrDecr, rangeError, rangeErrorById, refDel, refGet, refIncrDecr, refIncrDecr, refSet, refSet, remainder, same, sameZero, searchDefaultNamespace, setBuiltinProtoAndParent, setConst, setDefaultNamespace, setEnumNumbers, setFunctionProtoAndParent, setFunctionProtoAndParent, setFunctionProtoAndParent, setFunctionProtoAndParent, setName, setObjectElem, setObjectElem, setObjectElem, setObjectIndex, setObjectIndex, setObjectIndex, setObjectProp, setObjectProp, setObjectProp, setObjectProtoAndParent, setRegExpProxy, shallowEq, signedRightShift, specialRef, specialRef, storeUint32Result, strictSetName, subtract, subtract, syntaxError, syntaxErrorById, testUint32String, throwCustomError, throwError, toBigInt, toBigInt, toBoolean, toCharSequence, toIndex, toInt32, toInt32, toInt32, toInteger, toInteger, toInteger, toIterator, toLength, toLength, toNumber, toNumber, toNumber, toNumeric, toObject, toObject, toObject, toObject, toObjectOrNull, toObjectOrNull, toPrimitive, toPrimitive, toString, toString, toString, toStringIdOrIndex, toUint16, toUint32, toUint32, typeError, typeError0, typeError1, typeError2, typeError3, typeErrorById, typeErrorThrower, typeErrorThrower, typeof, typeofName, undefCallError, undefReadError, undefWriteError, updateDotQuery, wrapBoolean, wrapException, wrapInt, wrapNumber, wrapRegExp
-
Field Details
-
oneObj
-
minusOneObj
-
-
Constructor Details
-
OptRuntime
public OptRuntime()
-
-
Method Details
-
call0
Implement ....() call shrinking optimizer code. -
call0Optional
-
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
Implement name(args) call shrinking optimizer code. -
callName0
Implement name() call shrinking optimizer code. -
callName0Optional
-
callProp0
Implement x.property() call shrinking optimizer code. -
callProp0Optional
-
add
-
add
-
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) -
padStart
-
initFunction
-
bindThis
public static Function bindThis(NativeFunction fn, Context cx, Scriptable scope, Scriptable thisObj) -
callSpecial
public static Object callSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String fileName, int lineNumber, boolean isOptionalChainingCall) -
newObjectSpecial
public static Object newObjectSpecial(Context cx, Object fun, Object[] args, Scriptable scope, Scriptable callerThis, int callType) -
wrapDouble
-
newArrayLiteral
public static Scriptable newArrayLiteral(Object[] objects, String encodedInts, int skipCount, Context cx, Scriptable scope) -
main
-
throwStopIteration
-
createNativeGenerator
public static Scriptable createNativeGenerator(NativeFunction funObj, Scriptable scope, Scriptable thisObj, int maxLocals, int maxStack) -
getGeneratorStackState
-
getGeneratorLocalsState
-
setGeneratorReturnValue
-
getGeneratorReturnValue
-
isNullOrUndefined
-
elemIncrDecr(Object, double, Context, Scriptable, int)
instead