| java.lang.Object org.mozilla.javascript.optimizer.Codegen
Codegen | public class Codegen implements Evaluator(Code) | | This class generates code for a given IR tree.
author: Norris Boyd author: Roger Lawrence |
Method Summary | |
static RuntimeException | badTree() | public void | captureStackInfo(RhinoException ex) | public Object | compile(CompilerEnvirons compilerEnv, ScriptOrFnNode tree, String encodedSource, boolean returnFunction) | byte[] | compileToClassFile(CompilerEnvirons compilerEnv, String mainClassName, ScriptOrFnNode scriptOrFn, String encodedSource, boolean returnFunction) | public Function | createFunctionObject(Context cx, Scriptable scope, Object bytecode, Object staticSecurityDomain) | public Script | createScriptObject(Object bytecode, Object staticSecurityDomain) | String | getBodyMethodName(ScriptOrFnNode n) | String | getBodyMethodSignature(ScriptOrFnNode n) | String | getCompiledRegexpName(ScriptOrFnNode n, int regexpIndex) | String | getDirectCtorName(ScriptOrFnNode n) | static String | getDirectTargetFieldName(int i) | String | getFunctionInitMethodName(OptFunctionNode ofn) | int | getIndex(ScriptOrFnNode n) | public String | getPatchedStack(RhinoException ex, String nativeStackTrace) | public List | getScriptStack(RhinoException ex) | public String | getSourcePositionFromStack(Context cx, int[] linep) | static boolean | isGenerator(ScriptOrFnNode node) | void | pushNumberAsObject(ClassFileWriter cfw, double num) | void | pushRegExpArray(ClassFileWriter cfw, ScriptOrFnNode n, int contextArg, int scopeArg) | static void | pushUndefined(ClassFileWriter cfw) | public void | setEvalScriptFlag(Script script) | void | setMainMethodClass(String className) |
DEFAULT_MAIN_METHOD_CLASS | final static String DEFAULT_MAIN_METHOD_CLASS(Code) | | |
DIRECT_CALL_PARENT_FIELD | final static String DIRECT_CALL_PARENT_FIELD(Code) | | |
FUNCTION_CONSTRUCTOR_SIGNATURE | final static String FUNCTION_CONSTRUCTOR_SIGNATURE(Code) | | |
FUNCTION_INIT_SIGNATURE | final static String FUNCTION_INIT_SIGNATURE(Code) | | |
REGEXP_ARRAY_FIELD_NAME | final static String REGEXP_ARRAY_FIELD_NAME(Code) | | |
REGEXP_ARRAY_FIELD_TYPE | final static String REGEXP_ARRAY_FIELD_TYPE(Code) | | |
getDirectTargetFieldName | static String getDirectTargetFieldName(int i)(Code) | | |
getSourcePositionFromStack | public String getSourcePositionFromStack(Context cx, int[] linep)(Code) | | |
setEvalScriptFlag | public void setEvalScriptFlag(Script script)(Code) | | |
setMainMethodClass | void setMainMethodClass(String className)(Code) | | |
|
|