Index: runtime/vm/flow_graph_compiler_mips.cc |
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc |
index 3ec27561dfec76e128bb6b7db4ae10d6db2b3c24..8e3bd7b227b2526bf2d3fe8f2cb86c12e1b4c71d 100644 |
--- a/runtime/vm/flow_graph_compiler_mips.cc |
+++ b/runtime/vm/flow_graph_compiler_mips.cc |
@@ -1372,21 +1372,9 @@ void FlowGraphCompiler::EmitSwitchableInstanceCall( |
LocationSummary* locs) { |
__ Comment("SwitchableCall"); |
__ lw(T0, Address(SP, (argument_count - 1) * kWordSize)); |
- if (ic_data.NumArgsTested() == 1) { |
- __ LoadUniqueObject(S5, 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(S5, cache); |
- __ BranchLinkPatchable(*StubCode::MegamorphicLookup_entry()); |
- } |
+ ASSERT(ic_data.NumArgsTested() == 1); |
+ __ LoadUniqueObject(S5, ic_data); |
+ __ BranchLinkPatchable(*StubCode::ICLookupThroughFunction_entry()); |
__ jalr(T1); |
AddCurrentDescriptor(RawPcDescriptors::kOther, |