Index: runtime/vm/intermediate_language_arm.cc |
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc |
index 7643408673a6ff4e040e945716749a2872b9325a..0f11dff206fe7a3630364cc2332641722b69ea56 100644 |
--- a/runtime/vm/intermediate_language_arm.cc |
+++ b/runtime/vm/intermediate_language_arm.cc |
@@ -5878,23 +5878,18 @@ void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
return; |
} |
- // Load receiver into R0. |
- __ LoadFromOffset(kWord, R0, SP, |
- (instance_call()->ArgumentCount() - 1) * kWordSize); |
- |
Label* deopt = compiler->AddDeoptStub( |
deopt_id(), ICData::kDeoptPolymorphicInstanceCallTestFail); |
- LoadValueCid(compiler, R2, R0, |
- (ic_data().GetReceiverClassIdAt(0) == kSmiCid) ? NULL : deopt); |
- |
+ Label ok; |
compiler->EmitTestAndCall(ic_data(), |
- R2, // Class id register. |
instance_call()->ArgumentCount(), |
instance_call()->argument_names(), |
deopt, |
+ &ok, |
deopt_id(), |
instance_call()->token_pos(), |
locs()); |
+ __ Bind(&ok); |
} |