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

Unified Diff: runtime/vm/code_patcher_x64.cc

Issue 11411072: Simplify CodePatcher::GetStaticCallAt. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « runtime/vm/code_patcher_ia32.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_patcher_x64.cc
===================================================================
--- runtime/vm/code_patcher_x64.cc (revision 15100)
+++ runtime/vm/code_patcher_x64.cc (working copy)
@@ -121,14 +121,9 @@
};
-void CodePatcher::GetStaticCallAt(uword return_address,
- Function* function,
- uword* target) {
- ASSERT(function != NULL);
- ASSERT(target != NULL);
+uword CodePatcher::GetStaticCallTargetAt(uword return_address) {
StaticCall call(return_address);
- *target = call.target();
- *function = call.function();
+ return call.target();
}
« no previous file with comments | « runtime/vm/code_patcher_ia32.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698