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

Unified Diff: runtime/vm/deopt_instructions.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/deopt_instructions.h
===================================================================
--- runtime/vm/deopt_instructions.h (revision 44707)
+++ runtime/vm/deopt_instructions.h (working copy)
@@ -85,6 +85,7 @@
dest_frame_ = dest_frame;
}
+ Thread* thread() const { return thread_; }
Zone* zone() const { return thread_->zone(); }
intptr_t source_frame_size() const { return source_frame_size_; }
@@ -153,6 +154,27 @@
deferred_slots_);
}
+ void DeferRetAddrMaterialization(intptr_t index,
+ intptr_t deopt_id,
+ intptr_t* slot) {
+ deferred_slots_ = new DeferredRetAddr(
+ index,
+ deopt_id,
+ reinterpret_cast<RawObject**>(slot),
+ deferred_slots_);
+ }
+
+ void DeferPcMarkerMaterialization(intptr_t index, intptr_t* slot) {
+ deferred_slots_ = new DeferredPcMarker(
+ index,
+ reinterpret_cast<RawObject**>(slot),
+ deferred_slots_);
+ }
+
+ void DeferPpMaterialization(intptr_t index, RawObject** slot) {
+ deferred_slots_ = new DeferredPp(index, slot, deferred_slots_);
+ }
+
DeferredObject* GetDeferredObject(intptr_t idx) const {
return deferred_objects_[idx];
}
@@ -409,14 +431,14 @@
const GrowableObjectArray& object_table() { return object_table_; }
// Return address before instruction.
- void AddReturnAddress(const Code& code,
+ void AddReturnAddress(const Function& function,
intptr_t deopt_id,
intptr_t dest_index);
// Copy from optimized frame to unoptimized.
void AddCopy(Value* value, const Location& source_loc, intptr_t dest_index);
- void AddPcMarker(const Code& code, intptr_t dest_index);
- void AddPp(const Code& code, intptr_t dest_index);
+ void AddPcMarker(const Function& function, intptr_t dest_index);
+ void AddPp(const Function& function, intptr_t dest_index);
void AddCallerFp(intptr_t dest_index);
void AddCallerPp(intptr_t dest_index);
void AddCallerPc(intptr_t dest_index);

Powered by Google App Engine
This is Rietveld 408576698