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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 676743002: IR cleanup: pass deopt id as constructor argument instead of doing deopt_id_ assignment. (Closed) Base URL: https://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
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 23f6373f1b6b4bf0223601bddeb5b69344b814d4..5ae8d6d3ec2e08ed65f7bb053eb292507355d2f3 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -1454,12 +1454,15 @@ AssertAssignableInstr* EffectGraphVisitor::BuildAssertAssignable(
&instantiator,
&instantiator_type_arguments);
}
+
+ const intptr_t deopt_id = Isolate::Current()->GetNextDeoptId();
return new(I) AssertAssignableInstr(token_pos,
value,
instantiator,
instantiator_type_arguments,
dst_type,
- dst_name);
+ dst_name,
+ deopt_id);
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698