Chromium Code Reviews| Index: src/ast.h |
| diff --git a/src/ast.h b/src/ast.h |
| index a797272cec2d42432c94e6a7f09ad02c64a9a0f8..051cda13044a6920c68f85dcad254936a24703b8 100644 |
| --- a/src/ast.h |
| +++ b/src/ast.h |
| @@ -3143,20 +3143,22 @@ class AstVisitor BASE_EMBEDDED { |
| \ |
| bool CheckStackOverflow() { \ |
| if (stack_overflow_) return true; \ |
| - StackLimitCheck check(zone_->isolate()); \ |
| + StackLimitCheck check(isolate_); \ |
| if (!check.HasOverflowed()) return false; \ |
| stack_overflow_ = true; \ |
| return true; \ |
| } \ |
| \ |
| private: \ |
| - void InitializeAstVisitor(Zone* zone) { \ |
| + void InitializeAstVisitor(Isolate* isolate, Zone* zone) { \ |
| + isolate_ = isolate; \ |
| zone_ = zone; \ |
| stack_overflow_ = false; \ |
| } \ |
| Zone* zone() { return zone_; } \ |
| - Isolate* isolate() { return zone_->isolate(); } \ |
| + Isolate* isolate() { return isolate_; } \ |
| \ |
| + Isolate* isolate_; \ |
| Zone* zone_; \ |
| bool stack_overflow_ |
| @@ -3166,7 +3168,7 @@ class AstVisitor BASE_EMBEDDED { |
| class AstNodeFactory FINAL BASE_EMBEDDED { |
| public: |
| - explicit AstNodeFactory(AstValueFactory* ast_value_factory) |
| + explicit AstNodeFactory(Isolate* isolate, AstValueFactory* ast_value_factory) |
|
Michael Starzinger
2015/01/23 14:21:10
nit: The AstNodeFactory doesn't seem to use the Is
danno
2015/01/23 14:45:19
Done.
|
| : zone_(ast_value_factory->zone()), |
| ast_value_factory_(ast_value_factory) {} |