| Index: runtime/vm/flow_graph_compiler_x64.cc
|
| diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc
|
| index be0f589ccc47f2f1d27d7191a57c0d29880a97f5..d15ecea46eb52fbec7fa68fba0eaacdcaa669088 100644
|
| --- a/runtime/vm/flow_graph_compiler_x64.cc
|
| +++ b/runtime/vm/flow_graph_compiler_x64.cc
|
| @@ -722,12 +722,8 @@ void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) {
|
| AddCurrentDescriptor(PcDescriptors::kDeopt,
|
| assert->deopt_id(),
|
| assert->token_pos());
|
| - } else if (instr->IsGuardField()) {
|
| - GuardFieldInstr* guard = instr->AsGuardField();
|
| - AddCurrentDescriptor(PcDescriptors::kDeopt,
|
| - guard->deopt_id(),
|
| - Scanner::kDummyTokenIndex);
|
| - } else if (instr->CanBeDeoptimizationTarget()) {
|
| + } else if (instr->IsGuardField() ||
|
| + instr->CanBecomeDeoptimizationTarget()) {
|
| AddCurrentDescriptor(PcDescriptors::kDeopt,
|
| instr->deopt_id(),
|
| Scanner::kDummyTokenIndex);
|
|
|