Index: src/full-codegen.h |
=================================================================== |
--- src/full-codegen.h (revision 7267) |
+++ src/full-codegen.h (working copy) |
@@ -77,7 +77,8 @@ |
}; |
explicit FullCodeGenerator(MacroAssembler* masm) |
- : masm_(masm), |
+ : isolate_(Isolate::Current()), |
+ masm_(masm), |
info_(NULL), |
nesting_stack_(NULL), |
loop_depth_(0), |
@@ -493,6 +494,7 @@ |
loop_depth_--; |
} |
+ Isolate* isolate() { return isolate_; } |
MacroAssembler* masm() { return masm_; } |
class ExpressionContext; |
@@ -553,6 +555,8 @@ |
codegen_->set_new_context(old_); |
} |
+ Isolate* isolate() const { return codegen_->isolate(); } |
+ |
// Convert constant control flow (true or false) to the result expected for |
// this expression context. |
virtual void Plug(bool flag) const = 0; |
@@ -729,6 +733,7 @@ |
virtual bool IsEffect() const { return true; } |
}; |
+ Isolate* isolate_; |
MacroAssembler* masm_; |
CompilationInfo* info_; |
Label return_label_; |