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

Unified Diff: runtime/vm/deopt_instructions.h

Issue 10913031: Split deopt-after and deopt-before handling: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « no previous file | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/deopt_instructions.h
===================================================================
--- runtime/vm/deopt_instructions.h (revision 11719)
+++ runtime/vm/deopt_instructions.h (working copy)
@@ -88,7 +88,8 @@
protected:
enum Kind {
- kSetRetAddress,
+ kSetRetAfterAddress,
+ kSetRetBeforeAddress,
kCopyConstant,
kCopyRegister,
kCopyXmmRegister,
@@ -123,10 +124,16 @@
object_table_(object_table),
num_args_(num_args) {}
- // Will be neeeded for inlined functions, currently trivial.
- void AddReturnAddress(const Function& function,
- intptr_t deopt_id,
- intptr_t to_index);
+ // Return address before instruction.
+ void AddReturnAddressBefore(const Function& function,
+ intptr_t deopt_id,
+ intptr_t to_index);
+
+ // Return address after instruction.
+ void AddReturnAddressAfter(const Function& function,
+ intptr_t deopt_id,
+ intptr_t to_index);
+
// Copy from optimized frame to unoptimized.
void AddCopy(const Location& from_loc,
const Value& from_value,
« no previous file with comments | « no previous file | runtime/vm/deopt_instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698