Index: src/ast/ast.h |
diff --git a/src/ast/ast.h b/src/ast/ast.h |
index fd40ac924781c20626b4a2bc2c4aa82e855665df..b525fa2f524915e7dfa4c9c1ddad2a8159ec09e1 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); |