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

Unified Diff: runtime/vm/flow_graph_allocator.h

Issue 10831261: Build and use stack maps in the SSA compiler. (Closed) Base URL: https://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
Index: runtime/vm/flow_graph_allocator.h
diff --git a/runtime/vm/flow_graph_allocator.h b/runtime/vm/flow_graph_allocator.h
index 34cca4575b458447355662d04ac72691ff46e61a..957fb3e4f9ea365217d5737740be8ace67c53d61 100644
--- a/runtime/vm/flow_graph_allocator.h
+++ b/runtime/vm/flow_graph_allocator.h
@@ -220,6 +220,13 @@ class FlowGraphAllocator : public ValueObject {
// become free and can be reused for allocation.
GrowableArray<intptr_t> spill_slots_;
+ // List of safepoints.
+ struct Safepoint {
Vyacheslav Egorov (Google) 2012/08/13 12:54:46 : public ValueObject ?
Kevin Millikin (Google) 2012/08/13 15:10:37 Nah. The comment in that class indicates that Val
+ intptr_t position;
+ BitmapBuilder* stack_bitmap;
+ };
+ GrowableArray<Safepoint> safepoints_;
+
bool blocked_cpu_regs_[kNumberOfCpuRegisters];
DISALLOW_COPY_AND_ASSIGN(FlowGraphAllocator);
@@ -428,6 +435,8 @@ class LiveRange : public ZoneAllocated {
return (Start() <= pos) && (pos < End());
}
+ bool Covers(intptr_t pos) const;
srdjan 2012/08/10 23:11:05 Could you add a brief comment differentiating betw
Vyacheslav Egorov (Google) 2012/08/13 12:54:46 I suggest renaming Covers to Contains to match nam
Kevin Millikin (Google) 2012/08/13 15:10:37 Done.
+
Location spill_slot() const {
return spill_slot_;
}

Powered by Google App Engine
This is Rietveld 408576698