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

Unified Diff: runtime/vm/object.h

Issue 17233003: Reapply "Initial implementation of on-stack replacement (OSR)." (Closed) Base URL: https://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
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 90e55f802292102dee9f5a59a90834984b566326..1f847b3d2cf320f14d479506ad76626a601190c2 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2542,6 +2542,7 @@ class PcDescriptors : public Object {
kClosureCall, // Closure call.
kRuntimeCall, // Runtime call.
kReturn, // Return from function.
+ kOsrEntry, // OSR entry point in unoptimized code.
kOther
};
@@ -2877,6 +2878,8 @@ class Code : public Object {
// Aborts if there is no static call at 'pc'.
void SetStaticCallTargetCodeAt(uword pc, const Code& code) const;
+ void Disassemble() const;
+
class Comments : public ZoneAllocated {
public:
static Comments& New(intptr_t count);
@@ -2964,6 +2967,7 @@ class Code : public Object {
uword GetLazyDeoptPc() const;
uword GetPcForDeoptId(intptr_t deopt_id, PcDescriptors::Kind kind) const;
+ intptr_t GetDeoptIdForOsr(uword pc) const;
// Returns true if there is an object in the code between 'start_offset'
// (inclusive) and 'end_offset' (exclusive).
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698