| OLD | NEW |
| 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 3168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3179 DebuggerStatement* NewDebuggerStatement(int pos) { | 3179 DebuggerStatement* NewDebuggerStatement(int pos) { |
| 3180 return new (local_zone_) DebuggerStatement(local_zone_, pos); | 3180 return new (local_zone_) DebuggerStatement(local_zone_, pos); |
| 3181 } | 3181 } |
| 3182 | 3182 |
| 3183 EmptyStatement* NewEmptyStatement(int pos) { | 3183 EmptyStatement* NewEmptyStatement(int pos) { |
| 3184 return new (local_zone_) EmptyStatement(local_zone_, pos); | 3184 return new (local_zone_) EmptyStatement(local_zone_, pos); |
| 3185 } | 3185 } |
| 3186 | 3186 |
| 3187 SloppyBlockFunctionStatement* NewSloppyBlockFunctionStatement( | 3187 SloppyBlockFunctionStatement* NewSloppyBlockFunctionStatement( |
| 3188 Statement* statement, Scope* scope) { | 3188 Statement* statement, Scope* scope) { |
| 3189 return new (local_zone_) | 3189 return new (parser_zone_) |
| 3190 SloppyBlockFunctionStatement(local_zone_, statement, scope); | 3190 SloppyBlockFunctionStatement(parser_zone_, statement, scope); |
| 3191 } | 3191 } |
| 3192 | 3192 |
| 3193 CaseClause* NewCaseClause( | 3193 CaseClause* NewCaseClause( |
| 3194 Expression* label, ZoneList<Statement*>* statements, int pos) { | 3194 Expression* label, ZoneList<Statement*>* statements, int pos) { |
| 3195 return new (local_zone_) CaseClause(local_zone_, label, statements, pos); | 3195 return new (local_zone_) CaseClause(local_zone_, label, statements, pos); |
| 3196 } | 3196 } |
| 3197 | 3197 |
| 3198 Literal* NewStringLiteral(const AstRawString* string, int pos) { | 3198 Literal* NewStringLiteral(const AstRawString* string, int pos) { |
| 3199 return new (local_zone_) | 3199 return new (local_zone_) |
| 3200 Literal(local_zone_, ast_value_factory_->NewString(string), pos); | 3200 Literal(local_zone_, ast_value_factory_->NewString(string), pos); |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3543 : NULL; \ | 3543 : NULL; \ |
| 3544 } | 3544 } |
| 3545 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3545 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
| 3546 #undef DECLARE_NODE_FUNCTIONS | 3546 #undef DECLARE_NODE_FUNCTIONS |
| 3547 | 3547 |
| 3548 | 3548 |
| 3549 } // namespace internal | 3549 } // namespace internal |
| 3550 } // namespace v8 | 3550 } // namespace v8 |
| 3551 | 3551 |
| 3552 #endif // V8_AST_AST_H_ | 3552 #endif // V8_AST_AST_H_ |
| OLD | NEW |