Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: runtime/vm/native_entry_test.cc

Issue 17554003: Change static calls in unoptimized code to always call via a stub. Using ICData, the call count of … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/native_entry_test.cc
===================================================================
--- runtime/vm/native_entry_test.cc (revision 24288)
+++ runtime/vm/native_entry_test.cc (working copy)
@@ -87,25 +87,4 @@
Dart_ExitScope();
}
-
-// Test code patching.
-void TestStaticCallPatching(Dart_NativeArguments args) {
- Dart_EnterScope();
- DartFrameIterator iterator;
- iterator.NextFrame(); // Skip native call.
- StackFrame* static_caller_frame = iterator.NextFrame();
- const Code& code = Code::Handle(static_caller_frame->LookupDartCode());
- uword target_address =
- CodePatcher::GetStaticCallTargetAt(static_caller_frame->pc(), code);
- const Function& target_function =
- Function::Handle(code.GetStaticCallTargetFunctionAt(
- static_caller_frame->pc()));
- EXPECT(String::Handle(target_function.name()).
- Equals(String::Handle(String::New("NativePatchStaticCall"))));
- const uword function_entry_address =
- Code::Handle(target_function.CurrentCode()).EntryPoint();
- EXPECT_EQ(function_entry_address, target_address);
- Dart_ExitScope();
-}
-
} // namespace dart
« no previous file with comments | « runtime/vm/native_entry_test.h ('k') | runtime/vm/object.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698