Index: runtime/vm/flow_graph_compiler_arm.cc |
diff --git a/runtime/vm/flow_graph_compiler_arm.cc b/runtime/vm/flow_graph_compiler_arm.cc |
index ace14d0aa9e2df716697ee73cfbffb93c5d5e8dd..0f56a5aa4a0eaa79187d81e2e8f98d2ae55d3e4d 100644 |
--- a/runtime/vm/flow_graph_compiler_arm.cc |
+++ b/runtime/vm/flow_graph_compiler_arm.cc |
@@ -1365,21 +1365,9 @@ void FlowGraphCompiler::EmitSwitchableInstanceCall( |
LocationSummary* locs) { |
__ Comment("SwitchableCall"); |
__ LoadFromOffset(kWord, R0, SP, (argument_count - 1) * kWordSize); |
- if (ic_data.NumArgsTested() == 1) { |
- __ LoadUniqueObject(R9, ic_data); |
- __ BranchLinkPatchable(*StubCode::ICLookupThroughFunction_entry()); |
- } else { |
- const String& name = String::Handle(zone(), ic_data.target_name()); |
- const Array& arguments_descriptor = |
- Array::ZoneHandle(zone(), ic_data.arguments_descriptor()); |
- ASSERT(!arguments_descriptor.IsNull() && |
- (arguments_descriptor.Length() > 0)); |
- const MegamorphicCache& cache = MegamorphicCache::ZoneHandle(zone(), |
- MegamorphicCacheTable::Lookup(isolate(), name, arguments_descriptor)); |
- |
- __ LoadUniqueObject(R9, cache); |
- __ BranchLinkPatchable(*StubCode::MegamorphicLookup_entry()); |
- } |
+ ASSERT(ic_data.NumArgsTested() == 1); |
+ __ LoadUniqueObject(R9, ic_data); |
+ __ BranchLinkPatchable(*StubCode::ICLookupThroughFunction_entry()); |
__ blx(R1); |
AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, token_pos); |