| Index: runtime/vm/code_patcher_ia32.cc
|
| diff --git a/runtime/vm/code_patcher_ia32.cc b/runtime/vm/code_patcher_ia32.cc
|
| index 90f187659b5d6d71cd6df91b2d1ab197ebbe7825..db04cdf5bd8555c5b6f466729df706a1748ab34b 100644
|
| --- a/runtime/vm/code_patcher_ia32.cc
|
| +++ b/runtime/vm/code_patcher_ia32.cc
|
| @@ -170,7 +170,7 @@ void CodePatcher::PatchStaticCallAt(uword return_address,
|
| const Code& code,
|
| const Code& new_target) {
|
| const Instructions& instrs = Instructions::Handle(code.instructions());
|
| - WritableInstructionsScope writable(instrs.EntryPoint(), instrs.size());
|
| + WritableInstructionsScope writable(instrs.PayloadStart(), instrs.size());
|
| ASSERT(code.ContainsInstructionAt(return_address));
|
| StaticCall call(return_address);
|
| call.set_target(new_target);
|
| @@ -212,15 +212,30 @@ RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(
|
|
|
|
|
| void CodePatcher::PatchSwitchableCallAt(uword return_address,
|
| - const Code& code,
|
| - const ICData& ic_data,
|
| - const MegamorphicCache& cache,
|
| - const Code& lookup_stub) {
|
| + const Code& caller_code,
|
| + const Object& data,
|
| + const Code& target) {
|
| // Switchable instance calls only generated for precompilation.
|
| UNREACHABLE();
|
| }
|
|
|
|
|
| +RawCode* CodePatcher::GetSwitchableCallTargetAt(uword return_address,
|
| + const Code& caller_code) {
|
| + // Switchable instance calls only generated for precompilation.
|
| + UNREACHABLE();
|
| + return Code::null();
|
| +}
|
| +
|
| +
|
| +RawObject* CodePatcher::GetSwitchableCallDataAt(uword return_address,
|
| + const Code& caller_code) {
|
| + // Switchable instance calls only generated for precompilation.
|
| + UNREACHABLE();
|
| + return Object::null();
|
| +}
|
| +
|
| +
|
| void CodePatcher::PatchNativeCallAt(uword return_address,
|
| const Code& code,
|
| NativeFunction target,
|
|
|