[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:
parent
25c2203a8f
commit
359a269a0c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user