java.lang.Object
org.mozilla.javascript.ScriptRuntime
org.mozilla.javascript.optimizer.OptRuntime
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.mozilla.javascript.ScriptRuntime
ScriptRuntime.LookupResult, ScriptRuntime.MessageProvider, ScriptRuntime.StringIdOrIndex -
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Objectstatic Objectstatic Objectcall0(Callable fun, Scriptable thisObj, Context cx, Scriptable scope) Implement ....() call shrinking optimizer code.static Objectcall0Optional(Callable fun, Scriptable thisObj, Context cx, Scriptable scope) 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) Deprecated, for removal: This API element is subject to removal in a future version.static ObjectcallName0(String name, Context cx, Scriptable scope) Deprecated, for removal: This API element is subject to removal in a future version.static ObjectcallName0Optional(String name, Context cx, Scriptable scope) Deprecated, for removal: This API element is subject to removal in a future version.static ObjectcallProp0(Object value, String property, Context cx, Scriptable scope) Deprecated, for removal: This API element is subject to removal in a future version.static ObjectcallProp0Optional(Object value, String property, Context cx, Scriptable scope) Deprecated, for removal: This API element is subject to removal in a future version.static ObjectcallSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String fileName, int lineNumber, boolean isOptionalChainingCall) static ScriptablecreateNativeGenerator(Context cx, Scriptable scope, Scriptable thisObj, JSFunction funObj, 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[]static Objectstatic Object[]static voidinitFunction(JSFunction fn, int functionType, Scriptable scope, Context cx) static booleanisNullOrUndefined(Object obj) static <E> List<E> listOf(E... items) static voidstatic 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[]static voidsetGeneratorReturnValue(Object obj, Object val) static voidspread(Context cx, Scriptable scope, NewLiteralStorage store, Object source, int sourcePosition) static voidthrowStopIteration(Object scope, Object genState) static DoublewrapDouble(double num) Methods inherited from class org.mozilla.javascript.ScriptRuntime
add, add, add, add, addInstructionCount, advanceStringIndex, applyOrCall, bigIntToString, bind, bitwiseAND, bitwiseAND, bitwiseNOT, bitwiseOR, bitwiseOR, bitwiseXOR, bitwiseXOR, call, callIterator, callRef, canonicalNumericIndexString, checkRegExpProxy, clamp, compare, compare, concat, constructError, constructError, constructError, createArrowFunctionActivation, createArrowFunctionActivation, createArrowFunctionActivation, createFunctionActivation, createFunctionActivation, createFunctionActivation, createFunctionActivation, delete, delete, delete, deleteObjectElem, discardLastStoredScriptable, divide, doTopCall, doTopCall, doTopCall, doTopCall, elemIncrDecr, elemIncrDecr, enterActivationFunction, enterDotQuery, enterWith, enumId, enumInit, enumInit, enumInit, enumNext, enumNext, enumValue, eq, escapeAttributeValue, escapeString, escapeString, escapeTextValue, evalSpecial, exitActivationFunction, exponentiate, fillObjectLiteral, getApplyOrCallThis, getArrayElements, getElemAndThis, getElemAndThisOptional, getElemFunctionAndThis, getElemFunctionAndThis, getElemFunctionAndThisOptional, getExistingCtor, getGlobal, getLibraryScopeOrNull, getMessage, getMessage0, getMessage1, getMessage2, getMessage3, getMessage4, getMessageById, getNameAndThis, getNameAndThisOptional, getNameFunctionAndThis, getNameFunctionAndThisOptional, getObjectElem, getObjectElem, getObjectElem, getObjectIndex, getObjectIndex, getObjectIndex, getObjectProp, getObjectProp, getObjectProp, getObjectPropNoWarn, getObjectPropNoWarn, getPropAndThis, getPropAndThisOptional, getPropFunctionAndThis, getPropFunctionAndThis, getPropFunctionAndThisOptional, getRegExpProxy, getSuperElem, getSuperElem, getSuperIndex, getSuperProp, getTemplateLiteralCallSite, getTopCallScope, getTopLevelProp, getValueAndThis, getValueAndThisOptional, 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, 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, referenceError, 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, setSuperElem, setSuperElem, setSuperIndex, setSuperIndex, setSuperProp, setSuperProp, shallowEq, signedRightShift, signedRightShift, specialRef, specialRef, storeUint32Result, strictSetName, subtract, subtract, syntaxError, syntaxErrorById, testUint32String, throwCustomError, throwDeleteOnSuperPropertyNotAllowed, throwError, toBigInt, toBigInt, toBoolean, toCharSequence, toIndex, toInt32, toInt32, toInt32, toInteger, toInteger, toInteger, toIntegerOrInfinity, toIntegerOrInfinity, 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
@Deprecated(since="1.8.1", forRemoval=true) public static Object callName(Object[] args, String name, Context cx, Scriptable scope) Deprecated, for removal: This API element is subject to removal in a future version.Implement name(args) call shrinking optimizer code. -
callName0
@Deprecated(since="1.8.1", forRemoval=true) public static Object callName0(String name, Context cx, Scriptable scope) Deprecated, for removal: This API element is subject to removal in a future version.Implement name() call shrinking optimizer code. -
callName0Optional
@Deprecated(since="1.8.1", forRemoval=true) public static Object callName0Optional(String name, Context cx, Scriptable scope) Deprecated, for removal: This API element is subject to removal in a future version. -
callProp0
@Deprecated(since="1.8.1", forRemoval=true) public static Object callProp0(Object value, String property, Context cx, Scriptable scope) Deprecated, for removal: This API element is subject to removal in a future version. -
callProp0Optional
@Deprecated(since="1.8.1", forRemoval=true) public static Object callProp0Optional(Object value, String property, Context cx, Scriptable scope) Deprecated, for removal: This API element is subject to removal in a future version. -
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
-
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) -
listOf
-
main
-
throwStopIteration
-
createNativeGenerator
public static Scriptable createNativeGenerator(Context cx, Scriptable scope, Scriptable thisObj, JSFunction funObj, int maxLocals, int maxStack) -
getGeneratorStackState
-
getGeneratorLocalsState
-
setGeneratorReturnValue
-
getGeneratorReturnValue
-
isNullOrUndefined
-
spread
public static void spread(Context cx, Scriptable scope, NewLiteralStorage store, Object source, int sourcePosition)
-
elemIncrDecr(Object, double, Context, Scriptable, int)instead