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

Unified Diff: runtime/vm/flow_graph_optimizer.h

Issue 184523002: Allocation sinking for contexts. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: added new test Created 6 years, 1 month 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_optimizer.h
===================================================================
--- runtime/vm/flow_graph_optimizer.h (revision 41687)
+++ runtime/vm/flow_graph_optimizer.h (working copy)
@@ -435,7 +435,7 @@
candidates_(5),
materializations_(5) { }
- const GrowableArray<AllocateObjectInstr*>& candidates() const {
+ const GrowableArray<Definition*>& candidates() const {
return candidates_;
}
@@ -480,21 +480,20 @@
void DiscoverFailedCandidates();
- void InsertMaterializations(AllocateObjectInstr* alloc);
+ void InsertMaterializations(Definition* alloc);
void CreateMaterializationAt(
Instruction* exit,
- AllocateObjectInstr* alloc,
- const Class& cls,
+ Definition* alloc,
const ZoneGrowableArray<const Object*>& fields);
- void EliminateAllocation(AllocateObjectInstr* alloc);
+ void EliminateAllocation(Definition* alloc);
Isolate* isolate() const { return flow_graph_->isolate(); }
FlowGraph* flow_graph_;
- GrowableArray<AllocateObjectInstr*> candidates_;
+ GrowableArray<Definition*> candidates_;
GrowableArray<MaterializeObjectInstr*> materializations_;
ExitsCollector exits_collector_;

Powered by Google App Engine
This is Rietveld 408576698