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

Unified Diff: runtime/vm/flow_graph.cc

Issue 587873003: Pass isolate to BitVector constructor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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
« no previous file with comments | « runtime/vm/bit_vector_test.cc ('k') | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.cc
===================================================================
--- runtime/vm/flow_graph.cc (revision 40526)
+++ runtime/vm/flow_graph.cc (working copy)
@@ -338,9 +338,9 @@
void LivenessAnalysis::Analyze() {
const intptr_t block_count = postorder_.length();
for (intptr_t i = 0; i < block_count; i++) {
- live_out_.Add(new(isolate()) BitVector(variable_count_));
- kill_.Add(new(isolate()) BitVector(variable_count_));
- live_in_.Add(new(isolate()) BitVector(variable_count_));
+ live_out_.Add(new(isolate()) BitVector(isolate(), variable_count_));
+ kill_.Add(new(isolate()) BitVector(isolate(), variable_count_));
+ live_in_.Add(new(isolate()) BitVector(isolate(), variable_count_));
}
ComputeInitialSets();
@@ -451,7 +451,7 @@
void VariableLivenessAnalysis::ComputeInitialSets() {
const intptr_t block_count = postorder_.length();
- BitVector* last_loads = new(isolate()) BitVector(variable_count_);
+ BitVector* last_loads = new(isolate()) BitVector(isolate(), variable_count_);
for (intptr_t i = 0; i < block_count; i++) {
BlockEntryInstr* block = postorder_[i];
@@ -575,7 +575,7 @@
idom.Add(parent_[i]);
semi.Add(i);
label.Add(i);
- dominance_frontier->Add(new(isolate()) BitVector(size));
+ dominance_frontier->Add(new(isolate()) BitVector(isolate(), size));
}
// Loop over the blocks in reverse preorder (not including the graph
@@ -1066,7 +1066,7 @@
// Design & Implementation" (Muchnick) p192.
BitVector* FlowGraph::FindLoop(BlockEntryInstr* m, BlockEntryInstr* n) const {
GrowableArray<BlockEntryInstr*> stack;
- BitVector* loop = new(isolate()) BitVector(preorder_.length());
+ BitVector* loop = new(isolate()) BitVector(isolate(), preorder_.length());
loop->Add(n->preorder_number());
if (n != m) {
@@ -1163,7 +1163,7 @@
const intptr_t block_count = flow_graph->postorder().length();
// Set of blocks that contain side-effects.
- BitVector* kill = new(isolate) BitVector(block_count);
+ BitVector* kill = new(isolate) BitVector(isolate, block_count);
// Per block available-after sets. Block A is available after the block B if
// and only if A is either equal to B or A is available at B and B contains no
@@ -1189,7 +1189,7 @@
}
}
- BitVector* temp = new(isolate) BitVector(block_count);
+ BitVector* temp = new(isolate) BitVector(isolate, block_count);
// Recompute available-at based on predecessors' available-after until the fix
// point is reached.
@@ -1222,9 +1222,9 @@
// Available-at changed: update it and recompute available-after.
if (available_at_[block_num] == NULL) {
current = available_at_[block_num] =
- new(isolate) BitVector(block_count);
+ new(isolate) BitVector(isolate, block_count);
available_after[block_num] =
- new(isolate) BitVector(block_count);
+ new(isolate) BitVector(isolate, block_count);
// Block is always available after itself.
available_after[block_num]->Add(block_num);
}
« no previous file with comments | « runtime/vm/bit_vector_test.cc ('k') | runtime/vm/flow_graph_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698