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

Unified Diff: runtime/vm/object.h

Issue 16693006: Initial implementation of on-stack replacement (OSR). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean up for review. 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/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 149b3902023650fbc47f157def27cb1b61ccc075..de7ec7592441d37441fa961efeb0bd037477a1d3 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2535,6 +2535,7 @@ class PcDescriptors : public Object {
kClosureCall, // Closure call.
kRuntimeCall, // Runtime call.
kReturn, // Return from function.
+ kOsrEntry, // OSR entry point in unoptimized code.
kOther
};
@@ -2870,6 +2871,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);
@@ -2957,6 +2960,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).

Powered by Google App Engine
This is Rietveld 408576698