diff options
Diffstat (limited to 'deps/v8/src/full-codegen.h')
-rw-r--r-- | deps/v8/src/full-codegen.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/deps/v8/src/full-codegen.h b/deps/v8/src/full-codegen.h index 7a421841b..d25ca490f 100644 --- a/deps/v8/src/full-codegen.h +++ b/deps/v8/src/full-codegen.h @@ -80,6 +80,7 @@ class FullCodeGenerator: public AstVisitor { explicit FullCodeGenerator(MacroAssembler* masm) : masm_(masm), info_(NULL), + scope_(NULL), nesting_stack_(NULL), loop_depth_(0), context_(NULL), @@ -531,23 +532,11 @@ class FullCodeGenerator: public AstVisitor { return is_strict_mode() ? kStrictMode : kNonStrictMode; } FunctionLiteral* function() { return info_->function(); } - Scope* scope() { return info_->scope(); } + Scope* scope() { return scope_; } static Register result_register(); static Register context_register(); - // Helper for calling an IC stub. - void EmitCallIC(Handle<Code> ic, - RelocInfo::Mode mode, - unsigned ast_id); - - // Calling an IC stub with a patch site. Passing NULL for patch_site - // or non NULL patch_site which is not activated indicates no inlined smi code - // and emits a nop after the IC call. - void EmitCallIC(Handle<Code> ic, - JumpPatchSite* patch_site, - unsigned ast_id); - // Set fields in the stack frame. Offsets are the frame pointer relative // offsets defined in, e.g., StandardFrameConstants. void StoreToFrameField(int frame_offset, Register value); @@ -758,6 +747,7 @@ class FullCodeGenerator: public AstVisitor { MacroAssembler* masm_; CompilationInfo* info_; + Scope* scope_; Label return_label_; NestedStatement* nesting_stack_; int loop_depth_; |