Reduce memory usage due to fixpoint iteration of GVN.

R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/153533003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19135 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
bmeurer@chromium.org 2014-02-06 09:54:59 +00:00
parent eb502fe599
commit e02a9d5361

View File

@ -378,13 +378,13 @@ HGlobalValueNumberingPhase::HGlobalValueNumberingPhase(HGraph* graph)
void HGlobalValueNumberingPhase::Reset() { void HGlobalValueNumberingPhase::Reset() {
block_side_effects_.Clear(); ASSERT(block_side_effects_.length() == graph()->blocks()->length());
loop_side_effects_.Clear(); 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(); visited_on_paths_.Clear();
block_side_effects_.AddBlock(GVNFlagSet(), graph()->blocks()->length(),
zone());
loop_side_effects_.AddBlock(GVNFlagSet(), graph()->blocks()->length(),
zone());
} }