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

Unified Diff: runtime/vm/deferred_objects.h

Issue 1052563003: VM: Add infrastructure to support deferred generation of unoptimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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/deferred_objects.h
===================================================================
--- runtime/vm/deferred_objects.h (revision 44707)
+++ runtime/vm/deferred_objects.h (working copy)
@@ -140,6 +140,58 @@
};
+class DeferredRetAddr : public DeferredSlot {
+ public:
+ DeferredRetAddr(intptr_t index,
+ intptr_t deopt_id,
+ RawObject** slot,
+ DeferredSlot* next)
+ : DeferredSlot(slot, next), index_(index), deopt_id_(deopt_id) { }
+
+ virtual void Materialize(DeoptContext* deopt_context);
+
+ intptr_t index() const { return index_; }
+
+ private:
+ const intptr_t index_;
+ const intptr_t deopt_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(DeferredRetAddr);
+};
+
+
+class DeferredPcMarker : public DeferredSlot {
+ public:
+ DeferredPcMarker(intptr_t index, RawObject** slot, DeferredSlot* next)
+ : DeferredSlot(slot, next), index_(index) { }
+
+ virtual void Materialize(DeoptContext* deopt_context);
+
+ intptr_t index() const { return index_; }
+
+ private:
+ const intptr_t index_;
+
+ DISALLOW_COPY_AND_ASSIGN(DeferredPcMarker);
+};
+
+
+class DeferredPp : public DeferredSlot {
+ public:
+ DeferredPp(intptr_t index, RawObject** slot, DeferredSlot* next)
+ : DeferredSlot(slot, next), index_(index) { }
+
+ virtual void Materialize(DeoptContext* deopt_context);
+
+ intptr_t index() const { return index_; }
+
+ private:
+ const intptr_t index_;
+
+ DISALLOW_COPY_AND_ASSIGN(DeferredPp);
+};
+
+
// Describes an object which allocation was removed by AllocationSinking pass.
// Arguments for materialization are stored as a part of expression stack
// for the bottommost deoptimized frame so that GC could discover them.

Powered by Google App Engine
This is Rietveld 408576698