| Index: runtime/vm/flow_graph.cc
|
| diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc
|
| index 9f8f0377d99766cfa1dbe18ac291fb00d082a139..b69c1af20e988099bcf50abba769cdc2743586bf 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->ComputeCanDeoptimize()) {
|
| + if (instr->CanDeoptimize()) {
|
| 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->ComputeCanDeoptimize() &&
|
| + if (!current->CanDeoptimize() &&
|
| (!current->MayThrow() || !current->GetBlock()->InsideTryBlock())) {
|
| // Instructions that can throw need an environment for optimized
|
| // try-catch.
|
|
|