| Index: runtime/vm/code_patcher_arm.cc
|
| diff --git a/runtime/vm/code_patcher_arm.cc b/runtime/vm/code_patcher_arm.cc
|
| index a9d5a102280785ae99517e45a88464475441b61a..7e0e8eaddbbcb6bc1d4ba99cd2b2762b7119f924 100644
|
| --- a/runtime/vm/code_patcher_arm.cc
|
| +++ b/runtime/vm/code_patcher_arm.cc
|
| @@ -69,6 +69,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,
|
|
|