Index: runtime/vm/intermediate_language_mips.cc |
=================================================================== |
--- runtime/vm/intermediate_language_mips.cc (revision 32457) |
+++ runtime/vm/intermediate_language_mips.cc (working copy) |
@@ -3806,9 +3806,10 @@ |
void CheckClassInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
+ const DeoptReasonId deopt_reason = |
+ licm_hoisted_ ? kDeoptHoistedCheckClass : kDeoptCheckClass; |
if (IsNullCheck()) { |
- Label* deopt = compiler->AddDeoptStub(deopt_id(), |
- kDeoptCheckClass); |
+ Label* deopt = compiler->AddDeoptStub(deopt_id(), deopt_reason); |
__ BranchEqual(locs()->in(0).reg(), |
reinterpret_cast<int32_t>(Object::null()), deopt); |
return; |
@@ -3818,8 +3819,7 @@ |
(unary_checks().NumberOfChecks() > 1)); |
Register value = locs()->in(0).reg(); |
Register temp = locs()->temp(0).reg(); |
- Label* deopt = compiler->AddDeoptStub(deopt_id(), |
- kDeoptCheckClass); |
+ Label* deopt = compiler->AddDeoptStub(deopt_id(), deopt_reason); |
Label is_ok; |
intptr_t cix = 0; |
if (unary_checks().GetReceiverClassIdAt(cix) == kSmiCid) { |