Commit f8c40484 authored by ulan's avatar ulan Committed by Commit bot

Fix IsWeakObjectInOptimizedCode predicate to also include property cells.

BUG=v8:3882
LOG=NO

Review URL: https://codereview.chromium.org/909123002

Cr-Commit-Position: refs/heads/master@{#26549}
parent f27de256
......@@ -5242,7 +5242,9 @@ bool Code::IsWeakObjectInOptimizedCode(Object* object) {
return Map::cast(object)->CanTransition() &&
FLAG_weak_embedded_maps_in_optimized_code;
}
if (object->IsCell()) object = Cell::cast(object)->value();
if (object->IsCell() || object->IsPropertyCell()) {
object = Cell::cast(object)->value();
}
if (object->IsJSObject()) {
return FLAG_weak_embedded_objects_in_optimized_code;
}
......
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