| Index: src/full-codegen.h
|
| ===================================================================
|
| --- src/full-codegen.h (revision 3788)
|
| +++ src/full-codegen.h (working copy)
|
| @@ -68,11 +68,9 @@
|
| SECONDARY
|
| };
|
|
|
| - FullCodeGenerator(MacroAssembler* masm, Handle<Script> script, bool is_eval)
|
| + FullCodeGenerator(MacroAssembler* masm)
|
| : masm_(masm),
|
| - script_(script),
|
| - is_eval_(is_eval),
|
| - function_(NULL),
|
| + info_(NULL),
|
| nesting_stack_(NULL),
|
| loop_depth_(0),
|
| location_(kStack),
|
| @@ -80,11 +78,9 @@
|
| false_label_(NULL) {
|
| }
|
|
|
| - static Handle<Code> MakeCode(FunctionLiteral* fun,
|
| - Handle<Script> script,
|
| - bool is_eval);
|
| + static Handle<Code> MakeCode(CompilationInfo* info);
|
|
|
| - void Generate(FunctionLiteral* fun, Mode mode);
|
| + void Generate(CompilationInfo* info, Mode mode);
|
|
|
| private:
|
| class Breakable;
|
| @@ -408,6 +404,12 @@
|
| }
|
|
|
| MacroAssembler* masm() { return masm_; }
|
| +
|
| + Handle<Script> script() { return info_->script(); }
|
| + bool is_eval() { return info_->is_eval(); }
|
| + FunctionLiteral* function() { return info_->function(); }
|
| + Scope* scope() { return info_->scope(); }
|
| +
|
| static Register result_register();
|
| static Register context_register();
|
|
|
| @@ -427,11 +429,8 @@
|
| void EmitLogicalOperation(BinaryOperation* expr);
|
|
|
| MacroAssembler* masm_;
|
| - Handle<Script> script_;
|
| - bool is_eval_;
|
| + CompilationInfo* info_;
|
|
|
| - FunctionLiteral* function_;
|
| -
|
| Label return_label_;
|
| NestedStatement* nesting_stack_;
|
| int loop_depth_;
|
|
|