| Index: src/full-codegen.h
|
| diff --git a/src/full-codegen.h b/src/full-codegen.h
|
| index 7c56766a372de987322bb3da4d45967c0747cdcb..0e0ffe924b00c08dd8cf9efae83f7ed93b541015 100644
|
| --- a/src/full-codegen.h
|
| +++ b/src/full-codegen.h
|
| @@ -83,7 +83,7 @@ class FullCodeGenerator: public AstVisitor {
|
| scope_(info->scope()),
|
| nesting_stack_(NULL),
|
| loop_depth_(0),
|
| - globals_(10),
|
| + globals_(NULL),
|
| context_(NULL),
|
| bailout_entries_(info->HasDeoptimizationSupport()
|
| ? info->function()->ast_node_count() : 0),
|
| @@ -202,7 +202,7 @@ class FullCodeGenerator: public AstVisitor {
|
| virtual ~NestedBlock() {}
|
|
|
| virtual NestedStatement* Exit(int* stack_depth, int* context_length) {
|
| - if (statement()->AsBlock()->block_scope() != NULL) {
|
| + if (statement()->AsBlock()->scope() != NULL) {
|
| ++(*context_length);
|
| }
|
| return previous_;
|
| @@ -778,7 +778,7 @@ class FullCodeGenerator: public AstVisitor {
|
| Label return_label_;
|
| NestedStatement* nesting_stack_;
|
| int loop_depth_;
|
| - ZoneList<Handle<Object> > globals_;
|
| + ZoneList<Handle<Object> >* globals_;
|
| const ExpressionContext* context_;
|
| ZoneList<BailoutEntry> bailout_entries_;
|
| ZoneList<BailoutEntry> stack_checks_;
|
|
|