Index: src/fast-codegen.h |
=================================================================== |
--- src/fast-codegen.h (revision 3788) |
+++ src/fast-codegen.h (working copy) |
@@ -42,7 +42,7 @@ |
: info_(NULL), has_supported_syntax_(true) { |
} |
- void Check(FunctionLiteral* fun, CompilationInfo* info); |
+ void Check(CompilationInfo* info); |
CompilationInfo* info() { return info_; } |
bool has_supported_syntax() { return has_supported_syntax_; } |
@@ -65,29 +65,21 @@ |
class FastCodeGenerator: public AstVisitor { |
public: |
- FastCodeGenerator(MacroAssembler* masm, Handle<Script> script, bool is_eval) |
- : masm_(masm), |
- script_(script), |
- is_eval_(is_eval), |
- function_(NULL), |
- info_(NULL) { |
- } |
+ FastCodeGenerator(MacroAssembler* masm) : masm_(masm), info_(NULL) {} |
- static Handle<Code> MakeCode(FunctionLiteral* fun, |
- Handle<Script> script, |
- bool is_eval, |
- CompilationInfo* info); |
+ static Handle<Code> MakeCode(CompilationInfo* info); |
- void Generate(FunctionLiteral* fun, CompilationInfo* info); |
+ void Generate(CompilationInfo* info); |
private: |
MacroAssembler* masm() { return masm_; } |
- FunctionLiteral* function() { return function_; } |
Label* bailout() { return &bailout_; } |
bool has_receiver() { return !info_->receiver().is_null(); } |
Handle<Object> receiver() { return info_->receiver(); } |
bool has_this_properties() { return info_->has_this_properties(); } |
+ FunctionLiteral* function() { return info_->function(); } |
+ Scope* scope() { return info_->scope(); } |
// AST node visit functions. |
#define DECLARE_VISIT(type) virtual void Visit##type(type* node); |
@@ -114,10 +106,7 @@ |
void EmitThisPropertyStore(Handle<String> name); |
MacroAssembler* masm_; |
- Handle<Script> script_; |
- bool is_eval_; |
- FunctionLiteral* function_; |
CompilationInfo* info_; |
Label bailout_; |