| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index 02ece7fe612aae404cdffbacd2c9a64b80e4f07a..4e139f88c5d988abbd1ad7e7bdd3ab1c3b7f37fe 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -2638,9 +2638,9 @@ class AstNullVisitor BASE_EMBEDDED {
|
| template<class Visitor>
|
| class AstNodeFactory BASE_EMBEDDED {
|
| public:
|
| - explicit AstNodeFactory(Isolate* isolate)
|
| + AstNodeFactory(Isolate* isolate, Zone* zone)
|
| : isolate_(isolate),
|
| - zone_(isolate_->zone()) { }
|
| + zone_(zone) { }
|
|
|
| Visitor* visitor() { return &visitor_; }
|
|
|
| @@ -2710,10 +2710,9 @@ class AstNodeFactory BASE_EMBEDDED {
|
|
|
| Block* NewBlock(ZoneStringList* labels,
|
| int capacity,
|
| - bool is_initializer_block,
|
| - Zone* zone) {
|
| + bool is_initializer_block) {
|
| Block* block = new(zone_) Block(
|
| - isolate_, labels, capacity, is_initializer_block, zone);
|
| + isolate_, labels, capacity, is_initializer_block, zone_);
|
| VISIT_AND_RETURN(Block, block)
|
| }
|
|
|
|
|