Index: runtime/vm/intermediate_language_mips.cc |
diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc |
index 39dd3c036c3b56056513c64325499b395f9fd0d0..b043cb88fcf2ca0a031a65d4b41093c1b9df96c7 100644 |
--- a/runtime/vm/intermediate_language_mips.cc |
+++ b/runtime/vm/intermediate_language_mips.cc |
@@ -4602,22 +4602,19 @@ void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
return; |
} |
- // Load receiver into T0. |
- __ LoadFromOffset(T0, SP, (instance_call()->ArgumentCount() - 1) * kWordSize); |
Label* deopt = compiler->AddDeoptStub( |
deopt_id(), ICData::kDeoptPolymorphicInstanceCallTestFail); |
- LoadValueCid(compiler, T2, T0, |
- (ic_data().GetReceiverClassIdAt(0) == kSmiCid) ? NULL : deopt); |
- |
+ Label ok; |
compiler->EmitTestAndCall(ic_data(), |
- T2, // Class id register. |
instance_call()->ArgumentCount(), |
instance_call()->argument_names(), |
deopt, |
+ &ok, |
deopt_id(), |
instance_call()->token_pos(), |
locs()); |
+ __ Bind(&ok); |
} |