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

Unified Diff: runtime/vm/intermediate_language.h

Issue 634603002: Await always waits (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 40935)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -666,8 +666,8 @@
ASSERT(instr == NULL || !instr->IsBlockEntry());
// TODO(fschneider): Also add Throw and ReThrow to the list of instructions
// that do not have a successor. Currently, the graph builder will continue
- // to append instruction in case of a Throw inside an expression. This
- // condition should be handled in the graph builder
+ // to append instructions in case of a Throw inside an expression. This
+ // condition should be handled in the graph builder.
next_ = instr;
}
@@ -1365,6 +1365,12 @@
return catch_entries_;
}
+ intptr_t next_await_counter() { return jump_cnt_++; }
+ ZoneGrowableArray<intptr_t>& await_levels() { return await_levels_; }
+ ZoneGrowableArray<JoinEntryInstr*>& await_joins() {
+ return await_joins_;
+ }
+
virtual void PrintTo(BufferFormatter* f) const;
private:
@@ -1380,6 +1386,10 @@
intptr_t spill_slot_count_;
intptr_t fixed_slot_count_; // For try-catch in optimized code.
+ intptr_t jump_cnt_;
+ ZoneGrowableArray<JoinEntryInstr*> await_joins_;
+ ZoneGrowableArray<intptr_t> await_levels_;
+
DISALLOW_COPY_AND_ASSIGN(GraphEntryInstr);
};

Powered by Google App Engine
This is Rietveld 408576698