| Index: src/ast/ast.h
|
| diff --git a/src/ast/ast.h b/src/ast/ast.h
|
| index d515c2f43b16858d0531e2b318e967e76e67de14..9d6ee0a0098d8d1f2e512cac5976a20d7dea0260 100644
|
| --- a/src/ast/ast.h
|
| +++ b/src/ast/ast.h
|
| @@ -1986,6 +1986,10 @@ class CallRuntime final : public Expression {
|
| DCHECK(is_jsruntime());
|
| return context_index_;
|
| }
|
| + void set_context_index(int index) {
|
| + DCHECK(is_jsruntime());
|
| + context_index_ = index;
|
| + }
|
| const Runtime::Function* function() const {
|
| DCHECK(!is_jsruntime());
|
| return function_;
|
| @@ -3144,6 +3148,16 @@ class AstNodeFactory final BASE_EMBEDDED {
|
| try_block, scope, variable, catch_block, HandlerTable::DESUGARING, pos);
|
| }
|
|
|
| + TryCatchStatement* NewTryCatchStatementForAsyncAwait(Block* try_block,
|
| + Scope* scope,
|
| + Variable* variable,
|
| + Block* catch_block,
|
| + int pos) {
|
| + return new (zone_)
|
| + TryCatchStatement(try_block, scope, variable, catch_block,
|
| + HandlerTable::ASYNC_AWAIT, pos);
|
| + }
|
| +
|
| TryFinallyStatement* NewTryFinallyStatement(Block* try_block,
|
| Block* finally_block, int pos) {
|
| return new (zone_) TryFinallyStatement(try_block, finally_block, pos);
|
|
|