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);
return this;
} else if (dominated_index_ < length_) {
return push(zone,
block_->dominated_blocks()->at(dominated_index_),
dominators());
return push(zone, block_->dominated_blocks()->at(dominated_index_));
} else {
return NULL;
}
}
GvnBasicBlockState* push(Zone* zone,
HBasicBlock* block,
HSideEffectMap* dominators) {
GvnBasicBlockState* push(Zone* zone, HBasicBlock* block) {
if (next_ == NULL) {
next_ =
new(zone) GvnBasicBlockState(this, block, map(), dominators, zone);
new(zone) GvnBasicBlockState(this, block, map(), dominators(), zone);
} else {
next_->Initialize(block, map(), dominators, true, zone);
next_->Initialize(block, map(), dominators(), true, zone);
}
return next_;
}