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

Unified Diff: runtime/vm/flow_graph.h

Issue 2692803006: Track the 'awaiter return' call stack use it to detect uncaught exceptions in async functions (Closed)
Patch Set: rmacnak review Created 3 years, 10 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/flow_graph.h
diff --git a/runtime/vm/flow_graph.h b/runtime/vm/flow_graph.h
index 9e20957a71315133fefa1a5c8c8a6d1bb97efeec..ff4b7a4bf5138e43ae64ff16a721b94ad4e32ae0 100644
--- a/runtime/vm/flow_graph.h
+++ b/runtime/vm/flow_graph.h
@@ -286,6 +286,15 @@ class FlowGraph : public ZoneAllocated {
// Merge instructions (only per basic-block).
void TryOptimizePatterns();
+ ZoneGrowableArray<TokenPosition>* await_token_positions() const {
+ return await_token_positions_;
+ }
+
+ void set_await_token_positions(
+ ZoneGrowableArray<TokenPosition>* await_token_positions) {
+ await_token_positions_ = await_token_positions;
+ }
+
// Replaces uses that are dominated by dom of 'def' with 'other'.
// Note: uses that occur at instruction dom itself are not dominated by it.
static void RenameDominatedUses(Definition* def,
@@ -391,6 +400,7 @@ class FlowGraph : public ZoneAllocated {
ZoneGrowableArray<BlockEntryInstr*>* loop_headers_;
ZoneGrowableArray<BitVector*>* loop_invariant_loads_;
ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes_;
+ ZoneGrowableArray<TokenPosition>* await_token_positions_;
DirectChainedHashMap<ConstantPoolTrait> constant_instr_pool_;
BitVector* captured_parameters_;

Powered by Google App Engine
This is Rietveld 408576698