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

Unified Diff: runtime/vm/flow_graph_builder.h

Issue 2900963008: Reapply "Shuffle around deopt id allocation... (Closed)
Patch Set: . Created 3 years, 7 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_builder.h
diff --git a/runtime/vm/flow_graph_builder.h b/runtime/vm/flow_graph_builder.h
index 41f7e95af534e73e59d445c914d48d6a73229c6f..5fbc056f2966357e24e1e47cc8f956a3a1300eef 100644
--- a/runtime/vm/flow_graph_builder.h
+++ b/runtime/vm/flow_graph_builder.h
@@ -114,6 +114,11 @@ class FlowGraphBuilder : public ValueObject {
intptr_t AllocateBlockId() { return ++last_used_block_id_; }
void SetInitialBlockId(intptr_t id) { last_used_block_id_ = id; }
+ intptr_t GetNextDeoptId() {
+ // TODO(rmacnak): Record current scope / context level.
+ return thread()->GetNextDeoptId();
+ }
+
intptr_t context_level() const;
void IncrementLoopDepth() { ++loop_depth_; }

Powered by Google App Engine
This is Rietveld 408576698