| 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-types.h" |     8 #include "src/ast/ast-types.h" | 
|     9 #include "src/ast/ast-value-factory.h" |     9 #include "src/ast/ast-value-factory.h" | 
|    10 #include "src/ast/modules.h" |    10 #include "src/ast/modules.h" | 
| (...skipping 3219 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3230  |  3230  | 
|  3231   TryCatchStatement* NewTryCatchStatementForReThrow(Block* try_block, |  3231   TryCatchStatement* NewTryCatchStatementForReThrow(Block* try_block, | 
|  3232                                                     Scope* scope, |  3232                                                     Scope* scope, | 
|  3233                                                     Variable* variable, |  3233                                                     Variable* variable, | 
|  3234                                                     Block* catch_block, |  3234                                                     Block* catch_block, | 
|  3235                                                     int pos) { |  3235                                                     int pos) { | 
|  3236     return new (zone_) TryCatchStatement( |  3236     return new (zone_) TryCatchStatement( | 
|  3237         try_block, scope, variable, catch_block, HandlerTable::UNCAUGHT, pos); |  3237         try_block, scope, variable, catch_block, HandlerTable::UNCAUGHT, pos); | 
|  3238   } |  3238   } | 
|  3239  |  3239  | 
|  3240   TryCatchStatement* NewTryCatchStatementForPromiseReject(Block* try_block, |  | 
|  3241                                                           Scope* scope, |  | 
|  3242                                                           Variable* variable, |  | 
|  3243                                                           Block* catch_block, |  | 
|  3244                                                           int pos) { |  | 
|  3245     return new (zone_) TryCatchStatement( |  | 
|  3246         try_block, scope, variable, catch_block, HandlerTable::PROMISE, pos); |  | 
|  3247   } |  | 
|  3248  |  | 
|  3249   TryCatchStatement* NewTryCatchStatementForDesugaring(Block* try_block, |  3240   TryCatchStatement* NewTryCatchStatementForDesugaring(Block* try_block, | 
|  3250                                                        Scope* scope, |  3241                                                        Scope* scope, | 
|  3251                                                        Variable* variable, |  3242                                                        Variable* variable, | 
|  3252                                                        Block* catch_block, |  3243                                                        Block* catch_block, | 
|  3253                                                        int pos) { |  3244                                                        int pos) { | 
|  3254     return new (zone_) TryCatchStatement( |  3245     return new (zone_) TryCatchStatement( | 
|  3255         try_block, scope, variable, catch_block, HandlerTable::DESUGARING, pos); |  3246         try_block, scope, variable, catch_block, HandlerTable::DESUGARING, pos); | 
|  3256   } |  3247   } | 
|  3257  |  3248  | 
|  3258   TryCatchStatement* NewTryCatchStatementForAsyncAwait(Block* try_block, |  3249   TryCatchStatement* NewTryCatchStatementForAsyncAwait(Block* try_block, | 
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3634                                     : NULL;                                   \ |  3625                                     : NULL;                                   \ | 
|  3635   } |  3626   } | 
|  3636 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) |  3627 AST_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 
|  3637 #undef DECLARE_NODE_FUNCTIONS |  3628 #undef DECLARE_NODE_FUNCTIONS | 
|  3638  |  3629  | 
|  3639  |  3630  | 
|  3640 }  // namespace internal |  3631 }  // namespace internal | 
|  3641 }  // namespace v8 |  3632 }  // namespace v8 | 
|  3642  |  3633  | 
|  3643 #endif  // V8_AST_AST_H_ |  3634 #endif  // V8_AST_AST_H_ | 
| OLD | NEW |