org.mozilla.javascript.optimizer
Class Codegen
java.lang.Object
org.mozilla.javascript.Interpreter
org.mozilla.javascript.optimizer.Codegen
public class Codegen
- extends Interpreter
This class generates code for a given IR tree.
- Author:
- Norris Boyd, Roger Lawrence
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Codegen
public Codegen()
compile
public java.lang.Object compile(CompilerEnvirons compilerEnv,
ScriptOrFnNode tree,
java.lang.String encodedSource,
boolean returnFunction)
- Overrides:
compile
in class Interpreter
createScriptObject
public Script createScriptObject(java.lang.Object bytecode,
java.lang.Object staticSecurityDomain)
- Overrides:
createScriptObject
in class Interpreter
createFunctionObject
public Function createFunctionObject(Context cx,
Scriptable scope,
java.lang.Object bytecode,
java.lang.Object staticSecurityDomain)
- Overrides:
createFunctionObject
in class Interpreter