Minor cleanup of GVN state pushing.

R=hpayer@chromium.org, hpayer@google.com

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15685 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
mstarzinger@chromium.org 2013-07-16 08:37:49 +00:00
parent 11a38ed875
commit f8f5be2366

View File

@ -712,22 +712,18 @@ class GvnBasicBlockState: public ZoneObject {
zone); zone);
return this; return this;
} else if (dominated_index_ < length_) { } else if (dominated_index_ < length_) {
return push(zone, return push(zone, block_->dominated_blocks()->at(dominated_index_));
block_->dominated_blocks()->at(dominated_index_),
dominators());
} else { } else {
return NULL; return NULL;
} }
} }
GvnBasicBlockState* push(Zone* zone, GvnBasicBlockState* push(Zone* zone, HBasicBlock* block) {
HBasicBlock* block,
HSideEffectMap* dominators) {
if (next_ == NULL) { if (next_ == NULL) {
next_ = next_ =
new(zone) GvnBasicBlockState(this, block, map(), dominators, zone); new(zone) GvnBasicBlockState(this, block, map(), dominators(), zone);
} else { } else {
next_->Initialize(block, map(), dominators, true, zone); next_->Initialize(block, map(), dominators(), true, zone);
} }
return next_; return next_;
} }