Index: src/hydrogen-gvn.cc |
diff --git a/src/hydrogen-gvn.cc b/src/hydrogen-gvn.cc |
index 905fd86c99034175836445d3379ee701f3c387ab..0628ff76fbac5f3ae0bcfee0359972d60ccabd14 100644 |
--- a/src/hydrogen-gvn.cc |
+++ b/src/hydrogen-gvn.cc |
@@ -378,13 +378,13 @@ HGlobalValueNumberingPhase::HGlobalValueNumberingPhase(HGraph* graph) |
void HGlobalValueNumberingPhase::Reset() { |
- block_side_effects_.Clear(); |
- loop_side_effects_.Clear(); |
+ ASSERT(block_side_effects_.length() == graph()->blocks()->length()); |
+ ASSERT(loop_side_effects_.length() == graph()->blocks()->length()); |
+ for (int i = 0; i < graph()->blocks()->length(); ++i) { |
+ block_side_effects_[i] = GVNFlagSet(); |
+ loop_side_effects_[i] = GVNFlagSet(); |
+ } |
visited_on_paths_.Clear(); |
- block_side_effects_.AddBlock(GVNFlagSet(), graph()->blocks()->length(), |
- zone()); |
- loop_side_effects_.AddBlock(GVNFlagSet(), graph()->blocks()->length(), |
- zone()); |
} |