org.mozilla.javascript.optimizer
public final class OptRuntime extends ScriptRuntime
Field Summary | |
---|---|
static Double | minusOneObj |
static Double | oneObj |
static Double | zeroObj |
Method Summary | |
---|---|
static Object | add(Object val1, double val2) |
static Object | add(double val1, Object 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 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 Double | wrapDouble(double num) |