Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: src/ast/ast.h

Issue 2276243002: Mark await expressions as caught or uncaught (Closed)
Patch Set: Clean up tests Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/ast/ast-numbering.cc » ('j') | src/ast/ast-numbering.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index a274c10dbc0292dfe50d8be1d48df95e1e9edb8a..5ba2947dc50cb962c93cc2582075075cc8e2d8f5 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_;
}
+ int set_context_index(int index) {
adamk 2016/09/08 18:58:35 "void" is the usual return type for setters, seems
Dan Ehrenberg 2016/09/08 22:34:05 Fixed
+ DCHECK(is_jsruntime());
+ return 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);
« no previous file with comments | « no previous file | src/ast/ast-numbering.cc » ('j') | src/ast/ast-numbering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698