Index: runtime/vm/flow_graph.cc |
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc |
index b69c1af20e988099bcf50abba769cdc2743586bf..9f8f0377d99766cfa1dbe18ac291fb00d082a139 100644 |
--- a/runtime/vm/flow_graph.cc |
+++ b/runtime/vm/flow_graph.cc |
@@ -1042,7 +1042,7 @@ void FlowGraph::AttachEnvironment(Instruction* instr, |
Value* use = it.CurrentValue(); |
use->definition()->AddEnvUse(use); |
} |
- if (instr->CanDeoptimize()) { |
+ if (instr->ComputeCanDeoptimize()) { |
instr->env()->set_deopt_id(instr->deopt_id()); |
} |
} |
@@ -2021,7 +2021,7 @@ void FlowGraph::EliminateEnvironments() { |
} |
for (ForwardInstructionIterator it(block); !it.Done(); it.Advance()) { |
Instruction* current = it.Current(); |
- if (!current->CanDeoptimize() && |
+ if (!current->ComputeCanDeoptimize() && |
(!current->MayThrow() || !current->GetBlock()->InsideTryBlock())) { |
// Instructions that can throw need an environment for optimized |
// try-catch. |