Index: runtime/vm/flow_graph.cc |
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc |
index c14c18e5e792fec7e25013d395e9060d5b07aab3..61b5112688a3fff8f03da4769c3aa49a30f42b05 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()); |
} |
} |
@@ -2020,7 +2020,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. |