org.mozilla.javascript.optimizer

Class OptRuntime

public final class OptRuntime extends ScriptRuntime

Field Summary
static DoubleminusOneObj
static DoubleoneObj
static DoublezeroObj
Method Summary
static Objectadd(Object val1, double val2)
static Objectadd(double val1, Object 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 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 DoublewrapDouble(double num)

Field Detail

minusOneObj

public static final Double minusOneObj

oneObj

public static final Double oneObj

zeroObj

public static final Double zeroObj

Method Detail

add

public static Object add(Object val1, double val2)

add

public static Object add(double val1, Object val2)

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.

callSpecial

public static Object callSpecial(Context cx, Callable fun, Scriptable thisObj, Object[] args, Scriptable scope, Scriptable callerThis, int callType, String fileName, int lineNumber)

initFunction

public static void initFunction(NativeFunction fn, int functionType, Scriptable scope, Context cx)

main

public static void main(Script script, String[] args)

newArrayLiteral

public static Scriptable newArrayLiteral(Object[] objects, String encodedInts, int skipCount, Context cx, Scriptable scope)

newObjectSpecial

public static Object newObjectSpecial(Context cx, Object fun, Object[] args, Scriptable scope, Scriptable callerThis, int callType)

padStart

public static Object[] padStart(Object[] currentArgs, int count)

wrapDouble

public static Double wrapDouble(double num)