Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/ast/ast.h

Issue 2145293003: Fix temporary zones: DoExpression should go into local_zone_. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_AST_AST_H_ 5 #ifndef V8_AST_AST_H_
6 #define V8_AST_AST_H_ 6 #define V8_AST_AST_H_
7 7
8 #include "src/ast/ast-value-factory.h" 8 #include "src/ast/ast-value-factory.h"
9 #include "src/ast/modules.h" 9 #include "src/ast/modules.h"
10 #include "src/ast/variables.h" 10 #include "src/ast/variables.h"
(...skipping 3453 matching lines...) Expand 10 before | Expand all | Expand 10 after
3464 3464
3465 NativeFunctionLiteral* NewNativeFunctionLiteral(const AstRawString* name, 3465 NativeFunctionLiteral* NewNativeFunctionLiteral(const AstRawString* name,
3466 v8::Extension* extension, 3466 v8::Extension* extension,
3467 int pos) { 3467 int pos) {
3468 return new (parser_zone_) 3468 return new (parser_zone_)
3469 NativeFunctionLiteral(parser_zone_, name, extension, pos); 3469 NativeFunctionLiteral(parser_zone_, name, extension, pos);
3470 } 3470 }
3471 3471
3472 DoExpression* NewDoExpression(Block* block, Variable* result_var, int pos) { 3472 DoExpression* NewDoExpression(Block* block, Variable* result_var, int pos) {
3473 VariableProxy* result = NewVariableProxy(result_var, pos); 3473 VariableProxy* result = NewVariableProxy(result_var, pos);
3474 return new (parser_zone_) DoExpression(parser_zone_, block, result, pos); 3474 return new (local_zone_) DoExpression(local_zone_, block, result, pos);
3475 } 3475 }
3476 3476
3477 ThisFunction* NewThisFunction(int pos) { 3477 ThisFunction* NewThisFunction(int pos) {
3478 return new (local_zone_) ThisFunction(local_zone_, pos); 3478 return new (local_zone_) ThisFunction(local_zone_, pos);
3479 } 3479 }
3480 3480
3481 SuperPropertyReference* NewSuperPropertyReference(VariableProxy* this_var, 3481 SuperPropertyReference* NewSuperPropertyReference(VariableProxy* this_var,
3482 Expression* home_object, 3482 Expression* home_object,
3483 int pos) { 3483 int pos) {
3484 return new (parser_zone_) 3484 return new (parser_zone_)
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
3566 : NULL; \ 3566 : NULL; \
3567 } 3567 }
3568 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) 3568 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS)
3569 #undef DECLARE_NODE_FUNCTIONS 3569 #undef DECLARE_NODE_FUNCTIONS
3570 3570
3571 3571
3572 } // namespace internal 3572 } // namespace internal
3573 } // namespace v8 3573 } // namespace v8
3574 3574
3575 #endif // V8_AST_AST_H_ 3575 #endif // V8_AST_AST_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698