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 SummaryNested Classes Modifier and Type Class Description static classOptRuntime.GeneratorState- 
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptRuntimeScriptRuntime.MessageProvider, ScriptRuntime.StringIdOrIndex
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.DoubleminusOneObjstatic java.lang.DoubleoneObj- 
Fields inherited from class org.mozilla.javascript.ScriptRuntimeBigIntegerClass, 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 SummaryConstructors Constructor Description OptRuntime()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.Objectadd(double val1, java.lang.Object val2, Context cx)static java.lang.Objectadd(java.lang.Object val1, double val2, Context cx)static FunctionbindThis(NativeFunction fn, Context cx, Scriptable scope, Scriptable thisObj)static java.lang.Objectcall0(Callable fun, Scriptable thisObj, Context cx, Scriptable scope)Implement ....() call shrinking optimizer code.static java.lang.Objectcall1(Callable fun, Scriptable thisObj, java.lang.Object arg0, Context cx, Scriptable scope)Implement ....(arg) call shrinking optimizer code.static java.lang.Objectcall2(Callable fun, Scriptable thisObj, java.lang.Object arg0, java.lang.Object arg1, Context cx, Scriptable scope)Implement ....(arg0, arg1) call shrinking optimizer code.static java.lang.ObjectcallN(Callable fun, Scriptable thisObj, java.lang.Object[] args, Context cx, Scriptable scope)Implement ....(arg0, arg1, ...) call shrinking optimizer code.static java.lang.ObjectcallName(java.lang.Object[] args, java.lang.String name, Context cx, Scriptable scope)Implement name(args) call shrinking optimizer code.static java.lang.ObjectcallName0(java.lang.String name, Context cx, Scriptable scope)Implement name() call shrinking optimizer code.static java.lang.ObjectcallProp0(java.lang.Object value, java.lang.String property, Context cx, Scriptable scope)Implement x.property() call shrinking optimizer code.static java.lang.ObjectcallSpecial(Context cx, Callable fun, Scriptable thisObj, java.lang.Object[] args, Scriptable scope, Scriptable callerThis, int callType, java.lang.String fileName, int lineNumber)static ScriptablecreateNativeGenerator(NativeFunction funObj, Scriptable scope, Scriptable thisObj, int maxLocals, int maxStack)static java.lang.ObjectelemIncrDecr(java.lang.Object obj, double index, Context cx, int incrDecrMask)Deprecated.static java.lang.ObjectelemIncrDecr(java.lang.Object obj, double index, Context cx, Scriptable scope, int incrDecrMask)static java.lang.Object[]getGeneratorLocalsState(java.lang.Object obj)static java.lang.ObjectgetGeneratorReturnValue(java.lang.Object obj)static java.lang.Object[]getGeneratorStackState(java.lang.Object obj)static voidinitFunction(NativeFunction fn, int functionType, Scriptable scope, Context cx)static voidmain(Script script, java.lang.String[] args)static ScriptablenewArrayLiteral(java.lang.Object[] objects, java.lang.String encodedInts, int skipCount, Context cx, Scriptable scope)static java.lang.ObjectnewObjectSpecial(Context cx, java.lang.Object fun, java.lang.Object[] args, Scriptable scope, Scriptable callerThis, int callType)static java.lang.Object[]padStart(java.lang.Object[] currentArgs, int count)static voidsetGeneratorReturnValue(java.lang.Object obj, java.lang.Object val)static voidthrowStopIteration(java.lang.Object scope, java.lang.Object genState)static java.lang.DoublewrapDouble(double num)- 
Methods inherited from class org.mozilla.javascript.ScriptRuntimeadd, add, add, addInstructionCount, 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, getArrayElements, getElemFunctionAndThis, getElemFunctionAndThis, getGlobal, getLibraryScopeOrNull, getMessage, getMessage0, getMessage1, getMessage2, getMessage3, getMessage4, getMessageById, getNameFunctionAndThis, getObjectElem, getObjectElem, getObjectElem, getObjectIndex, getObjectIndex, getObjectIndex, getObjectProp, getObjectProp, getObjectProp, getObjectPropNoWarn, getObjectPropNoWarn, getPropFunctionAndThis, getPropFunctionAndThis, getRegExpProxy, getTemplateLiteralCallSite, getTopCallScope, getTopLevelProp, getValueFunctionAndThis, 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, 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, syntaxError, syntaxErrorById, testUint32String, throwCustomError, throwError, toBigInt, toBigInt, toBoolean, toCharSequence, toIndex, toInt32, toInt32, toInt32, toInteger, toInteger, toInteger, toIterator, 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
 
- 
 
- 
- 
- 
Method Detail- 
call0public static java.lang.Object call0(Callable fun, Scriptable thisObj, Context cx, Scriptable scope) Implement ....() call shrinking optimizer code.
 - 
call1public static java.lang.Object call1(Callable fun, Scriptable thisObj, java.lang.Object arg0, Context cx, Scriptable scope) Implement ....(arg) call shrinking optimizer code.
 - 
call2public static java.lang.Object call2(Callable fun, Scriptable thisObj, java.lang.Object arg0, java.lang.Object arg1, Context cx, Scriptable scope) Implement ....(arg0, arg1) call shrinking optimizer code.
 - 
callNpublic static java.lang.Object callN(Callable fun, Scriptable thisObj, java.lang.Object[] args, Context cx, Scriptable scope) Implement ....(arg0, arg1, ...) call shrinking optimizer code.
 - 
callNamepublic static java.lang.Object callName(java.lang.Object[] args, java.lang.String name, Context cx, Scriptable scope)Implement name(args) call shrinking optimizer code.
 - 
callName0public static java.lang.Object callName0(java.lang.String name, Context cx, Scriptable scope)Implement name() call shrinking optimizer code.
 - 
callProp0public static java.lang.Object callProp0(java.lang.Object value, java.lang.String property, Context cx, Scriptable scope)Implement x.property() call shrinking optimizer code.
 - 
addpublic static java.lang.Object add(java.lang.Object val1, double val2, Context cx)
 - 
addpublic static java.lang.Object add(double val1, java.lang.Object val2, Context cx)
 - 
elemIncrDecr@Deprecated public static java.lang.Object elemIncrDecr(java.lang.Object obj, double index, Context cx, int incrDecrMask)Deprecated.
 - 
elemIncrDecrpublic static java.lang.Object elemIncrDecr(java.lang.Object obj, double index, Context cx, Scriptable scope, int incrDecrMask)
 - 
padStartpublic static java.lang.Object[] padStart(java.lang.Object[] currentArgs, int count)
 - 
initFunctionpublic static void initFunction(NativeFunction fn, int functionType, Scriptable scope, Context cx) 
 - 
bindThispublic static Function bindThis(NativeFunction fn, Context cx, Scriptable scope, Scriptable thisObj) 
 - 
callSpecialpublic static java.lang.Object callSpecial(Context cx, Callable fun, Scriptable thisObj, java.lang.Object[] args, Scriptable scope, Scriptable callerThis, int callType, java.lang.String fileName, int lineNumber) 
 - 
newObjectSpecialpublic static java.lang.Object newObjectSpecial(Context cx, java.lang.Object fun, java.lang.Object[] args, Scriptable scope, Scriptable callerThis, int callType) 
 - 
wrapDoublepublic static java.lang.Double wrapDouble(double num) 
 - 
newArrayLiteralpublic static Scriptable newArrayLiteral(java.lang.Object[] objects, java.lang.String encodedInts, int skipCount, Context cx, Scriptable scope) 
 - 
mainpublic static void main(Script script, java.lang.String[] args) 
 - 
throwStopIterationpublic static void throwStopIteration(java.lang.Object scope, java.lang.Object genState)
 - 
createNativeGeneratorpublic static Scriptable createNativeGenerator(NativeFunction funObj, Scriptable scope, Scriptable thisObj, int maxLocals, int maxStack) 
 - 
getGeneratorStackStatepublic static java.lang.Object[] getGeneratorStackState(java.lang.Object obj) 
 - 
getGeneratorLocalsStatepublic static java.lang.Object[] getGeneratorLocalsState(java.lang.Object obj) 
 - 
setGeneratorReturnValuepublic static void setGeneratorReturnValue(java.lang.Object obj, java.lang.Object val)
 - 
getGeneratorReturnValuepublic static java.lang.Object getGeneratorReturnValue(java.lang.Object obj) 
 
- 
 
-