| Index: runtime/vm/native_entry_test.cc
|
| ===================================================================
|
| --- runtime/vm/native_entry_test.cc (revision 15091)
|
| +++ runtime/vm/native_entry_test.cc (working copy)
|
| @@ -58,20 +58,15 @@
|
| // Test code patching.
|
| void TestStaticCallPatching(Dart_NativeArguments args) {
|
| Dart_EnterScope();
|
| - Function& target_function = Function::Handle();
|
| DartFrameIterator iterator;
|
| iterator.NextFrame(); // Skip native call.
|
| StackFrame* static_caller_frame = iterator.NextFrame();
|
| - uword target_address = 0;
|
| - CodePatcher::GetStaticCallAt(static_caller_frame->pc(),
|
| - &target_function,
|
| - &target_address);
|
| + uword target_address =
|
| + CodePatcher::GetStaticCallTargetAt(static_caller_frame->pc());
|
| const Code& code = Code::Handle(static_caller_frame->LookupDartCode());
|
| - const Function& target_function_2 =
|
| + const Function& target_function =
|
| Function::Handle(code.GetStaticCallTargetFunctionAt(
|
| static_caller_frame->pc()));
|
| - EXPECT(!target_function_2.IsNull());
|
| - EXPECT_EQ(target_function_2.raw(), target_function.raw());
|
| EXPECT(String::Handle(target_function.name()).
|
| Equals(String::Handle(String::New("NativePatchStaticCall"))));
|
| const uword function_entry_address =
|
|
|