| Index: runtime/vm/code_patcher_mips.cc
|
| ===================================================================
|
| --- runtime/vm/code_patcher_mips.cc (revision 20788)
|
| +++ runtime/vm/code_patcher_mips.cc (working copy)
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "vm/code_patcher.h"
|
|
|
| +#include "vm/instructions.h"
|
| #include "vm/object.h"
|
|
|
| namespace dart {
|
| @@ -14,8 +15,8 @@
|
| uword CodePatcher::GetStaticCallTargetAt(uword return_address,
|
| const Code& code) {
|
| ASSERT(code.ContainsInstructionAt(return_address));
|
| - UNIMPLEMENTED();
|
| - return 0;
|
| + CallPattern call(return_address, code);
|
| + return call.TargetAddress();
|
| }
|
|
|
|
|
| @@ -23,7 +24,8 @@
|
| const Code& code,
|
| uword new_target) {
|
| ASSERT(code.ContainsInstructionAt(return_address));
|
| - UNIMPLEMENTED();
|
| + CallPattern call(return_address, code);
|
| + call.SetTargetAddress(new_target);
|
| }
|
|
|
|
|
|
|