Index: runtime/vm/code_patcher_mips.cc |
diff --git a/runtime/vm/code_patcher_mips.cc b/runtime/vm/code_patcher_mips.cc |
index 09b06a2f249f55e3cb8eb47bbddb69150294ee7c..4c8ab992fafd61062fb1a36ccd494d96d867d327 100644 |
--- a/runtime/vm/code_patcher_mips.cc |
+++ b/runtime/vm/code_patcher_mips.cc |
@@ -68,6 +68,19 @@ RawFunction* CodePatcher::GetUnoptimizedStaticCallAt( |
} |
+void CodePatcher::PatchSwitchableCallAt(uword return_address, |
+ const Code& code, |
+ const ICData& ic_data, |
+ const MegamorphicCache& cache, |
+ const Code& lookup_stub) { |
+ ASSERT(code.ContainsInstructionAt(return_address)); |
+ SwitchableCallPattern call(return_address, code); |
+ ASSERT(call.cache() == ic_data.raw()); |
+ call.SetLookupStub(lookup_stub); |
+ call.SetCache(cache); |
+} |
+ |
+ |
void CodePatcher::PatchNativeCallAt(uword return_address, |
const Code& code, |
NativeFunction target, |