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:
parent
11a38ed875
commit
f8f5be2366
@ -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_;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user