Commit 7bf9b23c authored by ulan's avatar ulan Committed by Commit bot

Reland r26549 "Fix IsWeakObjectInOptimizedCode predicate to also include property cells."

BUG=v8:3882
LOG=NO

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

Cr-Commit-Position: refs/heads/master@{#26573}
parent bf49be39
......@@ -5242,7 +5242,11 @@ 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 = Cell::cast(object)->value();
} else if (object->IsPropertyCell()) {
object = PropertyCell::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