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

Unified Diff: runtime/vm/flow_graph_optimizer.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 | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/il_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc
index 2e0c46716c402483ddb719adb9312220eefd13d3..2230042634b2ea8d696a9cd830552ffbde12099f 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -1335,11 +1335,8 @@ bool FlowGraphOptimizer::InlineSetIndexed(
new(I) Value(instantiator),
new(I) Value(type_args),
value_type,
- Symbols::Value());
- // Newly inserted instructions that can deoptimize or throw an exception
- // must have a deoptimization id that is valid for lookup in the unoptimized
- // code.
- assert_value->deopt_id_ = call->deopt_id();
+ Symbols::Value(),
+ call->deopt_id());
cursor = flow_graph()->AppendTo(cursor,
assert_value,
call->env(),
@@ -3300,8 +3297,7 @@ bool FlowGraphOptimizer::TryInlineFloat32x4Constructor(
return false;
}
if (recognized_kind == MethodRecognizer::kFloat32x4Zero) {
- Float32x4ZeroInstr* zero =
- new(I) Float32x4ZeroInstr(call->deopt_id());
+ Float32x4ZeroInstr* zero = new(I) Float32x4ZeroInstr();
ReplaceCall(call, zero);
return true;
} else if (recognized_kind == MethodRecognizer::kFloat32x4Splat) {
@@ -3344,8 +3340,7 @@ bool FlowGraphOptimizer::TryInlineFloat64x2Constructor(
return false;
}
if (recognized_kind == MethodRecognizer::kFloat64x2Zero) {
- Float64x2ZeroInstr* zero =
- new(I) Float64x2ZeroInstr(call->deopt_id());
+ Float64x2ZeroInstr* zero = new(I) Float64x2ZeroInstr();
ReplaceCall(call, zero);
return true;
} else if (recognized_kind == MethodRecognizer::kFloat64x2Splat) {
@@ -4310,11 +4305,8 @@ void FlowGraphOptimizer::ReplaceWithTypeCast(InstanceCallInstr* call) {
new(I) Value(instantiator),
new(I) Value(type_args),
type,
- dst_name);
- // Newly inserted instructions that can deoptimize or throw an exception
- // must have a deoptimization id that is valid for lookup in the unoptimized
- // code.
- assert_as->deopt_id_ = call->deopt_id();
+ dst_name,
+ call->deopt_id());
ReplaceCall(call, assert_as);
}
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/il_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698