Do not remove write barriers for stores of old space references in most recent old space allocation.
BUG=chromium:561449 LOG=n Review URL: https://codereview.chromium.org/1478113002 Cr-Commit-Position: refs/heads/master@{#32368}
This commit is contained in:
parent
8e54a667b2
commit
369778ec55
@ -5692,15 +5692,6 @@ inline bool ReceiverObjectNeedsWriteBarrier(HValue* object,
|
||||
if (value->IsConstant() && HConstant::cast(value)->NotInNewSpace()) {
|
||||
return false;
|
||||
}
|
||||
// Stores to old space allocations require no write barriers if the value is
|
||||
// an old space allocation.
|
||||
while (value->IsInnerAllocatedObject()) {
|
||||
value = HInnerAllocatedObject::cast(value)->base_object();
|
||||
}
|
||||
if (value->IsAllocate() &&
|
||||
!HAllocate::cast(value)->IsNewSpaceAllocation()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user