| 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 3079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3090 | 3090 |
| 3091 TryCatchStatement* NewTryCatchStatementForDesugaring(Block* try_block, | 3091 TryCatchStatement* NewTryCatchStatementForDesugaring(Block* try_block, |
| 3092 Scope* scope, | 3092 Scope* scope, |
| 3093 Variable* variable, | 3093 Variable* variable, |
| 3094 Block* catch_block, | 3094 Block* catch_block, |
| 3095 int pos) { | 3095 int pos) { |
| 3096 return new (zone_) TryCatchStatement( | 3096 return new (zone_) TryCatchStatement( |
| 3097 try_block, scope, variable, catch_block, HandlerTable::DESUGARING, pos); | 3097 try_block, scope, variable, catch_block, HandlerTable::DESUGARING, pos); |
| 3098 } | 3098 } |
| 3099 | 3099 |
| 3100 TryCatchStatement* NewTryCatchStatementForAsyncAwait(Block* try_block, |
| 3101 Scope* scope, |
| 3102 Variable* variable, |
| 3103 Block* catch_block, |
| 3104 int pos) { |
| 3105 return new (zone_) |
| 3106 TryCatchStatement(try_block, scope, variable, catch_block, |
| 3107 HandlerTable::ASYNC_AWAIT, pos); |
| 3108 } |
| 3109 |
| 3100 TryFinallyStatement* NewTryFinallyStatement(Block* try_block, | 3110 TryFinallyStatement* NewTryFinallyStatement(Block* try_block, |
| 3101 Block* finally_block, int pos) { | 3111 Block* finally_block, int pos) { |
| 3102 return new (zone_) TryFinallyStatement(try_block, finally_block, pos); | 3112 return new (zone_) TryFinallyStatement(try_block, finally_block, pos); |
| 3103 } | 3113 } |
| 3104 | 3114 |
| 3105 DebuggerStatement* NewDebuggerStatement(int pos) { | 3115 DebuggerStatement* NewDebuggerStatement(int pos) { |
| 3106 return new (zone_) DebuggerStatement(pos); | 3116 return new (zone_) DebuggerStatement(pos); |
| 3107 } | 3117 } |
| 3108 | 3118 |
| 3109 EmptyStatement* NewEmptyStatement(int pos) { | 3119 EmptyStatement* NewEmptyStatement(int pos) { |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3450 : NULL; \ | 3460 : NULL; \ |
| 3451 } | 3461 } |
| 3452 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 3462 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
| 3453 #undef DECLARE_NODE_FUNCTIONS | 3463 #undef DECLARE_NODE_FUNCTIONS |
| 3454 | 3464 |
| 3455 | 3465 |
| 3456 } // namespace internal | 3466 } // namespace internal |
| 3457 } // namespace v8 | 3467 } // namespace v8 |
| 3458 | 3468 |
| 3459 #endif // V8_AST_AST_H_ | 3469 #endif // V8_AST_AST_H_ |
| OLD | NEW |