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

Unified Diff: runtime/vm/ast_transformer.h

Issue 484933003: Await it! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
Index: runtime/vm/ast_transformer.h
diff --git a/runtime/vm/ast_transformer.h b/runtime/vm/ast_transformer.h
index 18faf7b3bd5cde8a5f93f28c19499bb650496476..23cde0f83fc863b78e4a5da33575e074919fca3a 100644
--- a/runtime/vm/ast_transformer.h
+++ b/runtime/vm/ast_transformer.h
@@ -46,7 +46,13 @@ class AwaitTransformer : public AstNodeVisitor {
temp_cnt_(0),
library_(library),
parsed_function_(parsed_function),
- isolate_(Isolate::Current()) {}
+ isolate_(Isolate::Current()) {
+ // We need the jump context var in this scope to later on save the current
+ // scope.
srdjan 2014/08/20 17:50:06 Please fix comment.
Michael Lippautz (Google) 2014/08/20 20:56:06 Done.
+ preamble->scope()->LookupVariable(Symbols::AwaitContextVar(), false);
+ // We also need the jump counter in the FGB.
srdjan 2014/08/20 17:50:06 Please use FlowGraphBuilder instead of FGB
Michael Lippautz (Google) 2014/08/20 20:56:06 Done.
+ preamble->scope()->LookupVariable(Symbols::AwaitJumpVar(), false);
+ }
#define DECLARE_VISIT(BaseName) \
virtual void Visit##BaseName##Node(BaseName##Node* node);

Powered by Google App Engine
This is Rietveld 408576698