Chromium Code Reviews| Index: runtime/vm/flow_graph_compiler.cc |
| diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc |
| index 063415f769606502262b5a853cd6b2f9f6fbd65c..cafd1f5f692ae6bbb66b04f77980745557e4bf3e 100644 |
| --- a/runtime/vm/flow_graph_compiler.cc |
| +++ b/runtime/vm/flow_graph_compiler.cc |
| @@ -256,7 +256,8 @@ void FlowGraphCompiler::EmitInstructionPrologue(Instruction* instr) { |
| AddCurrentDescriptor(PcDescriptors::kDeopt, |
| assert->deopt_id(), |
| assert->token_pos()); |
| - } else if (instr->IsGuardField() || |
| + } else if (instr->IsGuardFieldClass() || |
| + instr->IsGuardFieldLength() || |
|
Florian Schneider
2014/05/28 14:57:36
Can we just change CanBecomeDeoptimizationTarget()
Vyacheslav Egorov (Google)
2014/05/29 17:36:51
Done.
|
| (instr->CanBecomeDeoptimizationTarget() && !instr->IsGoto())) { |
| // GuardField and instructions that can be deoptimization targets need |
| // to record their deopt id. GotoInstr records its own so that it can |