Index: src/ia32/codegen-ia32.h |
=================================================================== |
--- src/ia32/codegen-ia32.h (revision 3775) |
+++ src/ia32/codegen-ia32.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, |
@@ -379,7 +388,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 |