Commit 369778ec authored by hpayer's avatar hpayer Committed by Commit bot

Do not remove write barriers for stores of old space references in most recent...

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}
parent 8e54a667
...@@ -5692,15 +5692,6 @@ inline bool ReceiverObjectNeedsWriteBarrier(HValue* object, ...@@ -5692,15 +5692,6 @@ inline bool ReceiverObjectNeedsWriteBarrier(HValue* object,
if (value->IsConstant() && HConstant::cast(value)->NotInNewSpace()) { if (value->IsConstant() && HConstant::cast(value)->NotInNewSpace()) {
return false; 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; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment