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

Unified Diff: runtime/vm/code_patcher.h

Issue 12260026: Add support for object pool (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/code_patcher_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_patcher.h
===================================================================
--- runtime/vm/code_patcher.h (revision 18603)
+++ runtime/vm/code_patcher.h (working copy)
@@ -24,11 +24,15 @@
public:
// Dart static calls have a distinct, machine-dependent code pattern.
- // Patch static call to the new target.
- static void PatchStaticCallAt(uword addr, uword new_target_address);
+ // Patch static call before return_address in given code to the new target.
+ static void PatchStaticCallAt(uword return_address,
+ const Code& code,
+ uword new_target_address);
- // Patch instance call to the new target.
- static void PatchInstanceCallAt(uword addr, uword new_target_address);
+ // Patch instance call before return_address in given code to the new target.
+ static void PatchInstanceCallAt(uword return_address,
+ const Code& code,
+ uword new_target_address);
// Patch entry point with a jump as specified in the code's patch region.
static void PatchEntry(const Code& code);
@@ -40,16 +44,15 @@
// that there are no conflicts with object pointers). Used in ASSERTs.
static bool CodeIsPatchable(const Code& code);
- // Returns true if the code before return_address is a static
- // or dynamic Dart call.
- static bool IsDartCall(uword return_address);
+ // Return the target address of the static call before return_address
+ // in given code.
+ static uword GetStaticCallTargetAt(uword return_address, const Code& code);
- static uword GetStaticCallTargetAt(uword return_address);
-
// Get instance call information. Returns the call target and sets each
// of the output parameters ic_data and arguments_descriptor if they are
// non-NULL.
static uword GetInstanceCallAt(uword return_address,
+ const Code& code,
ICData* ic_data,
Array* arguments_descriptor);
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/code_patcher_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698