| Index: src/x64/codegen-x64.h
|
| ===================================================================
|
| --- src/x64/codegen-x64.h (revision 3775)
|
| +++ src/x64/codegen-x64.h (working copy)
|
| @@ -294,6 +294,15 @@
|
|
|
| class CodeGenerator: public AstVisitor {
|
| public:
|
| + // Compilation mode. Either the compiler is used as the primary
|
| + // compiler and needs to setup everything or the compiler is used as
|
| + // the secondary compiler for split compilation and has to handle
|
| + // bailouts.
|
| + enum Mode {
|
| + PRIMARY,
|
| + SECONDARY
|
| + };
|
| +
|
| // Takes a function literal, generates code for it. This function should only
|
| // be called by compiler.cc.
|
| static Handle<Code> MakeCode(FunctionLiteral* fun,
|
| @@ -381,7 +390,7 @@
|
| void VisitStatementsAndSpill(ZoneList<Statement*>* statements);
|
|
|
| // Main code generation function
|
| - void GenCode(FunctionLiteral* fun, CompilationInfo* info);
|
| + void Generate(FunctionLiteral* fun, Mode mode, CompilationInfo* info);
|
|
|
| // Generate the return sequence code. Should be called no more than
|
| // once per compiled function, immediately after binding the return
|
|
|