[crankshaft] There is no guarantee that allocations are folded in Crankshaft.

BUG=chromium:615770
LOG=N

Review-Url: https://codereview.chromium.org/2022743002
Cr-Commit-Position: refs/heads/master@{#36579}
This commit is contained in:
hpayer 2016-05-30 04:22:29 -07:00 committed by Commit bot
parent 25c2203a8f
commit 359a269a0c

View File

@ -5148,8 +5148,11 @@ inline bool ReceiverObjectNeedsWriteBarrier(HValue* object,
HAllocate* allocate = HAllocate::cast(object);
if (allocate->IsAllocationFolded()) {
HValue* dominator = allocate->allocation_folding_dominator();
DCHECK(HAllocate::cast(dominator)->IsAllocationFoldingDominator());
object = dominator;
// There is no guarantee that all allocations are folded together because
// GVN performs a fixpoint.
if (HAllocate::cast(dominator)->IsAllocationFoldingDominator()) {
object = dominator;
}
}
}