Commit b3f0cc09 authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[weakref] Fix another MaybeObject conversion in ObjectStats

Change-Id: I2afefab5bf43abee5e5dc66224cea1c68fb85179
Reviewed-on: https://chromium-review.googlesource.com/1049973Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53075}
parent 4c5926d5
......@@ -479,10 +479,9 @@ void ObjectStatsCollectorImpl::RecordVirtualFeedbackVectorDetails(
// Log the monomorphic/polymorphic helper objects that this slot owns.
for (int i = 0; i < it.entry_size(); i++) {
Object* raw_object =
vector->get(slot.ToInt() + i)->GetHeapObjectOrSmi();
if (!raw_object->IsHeapObject()) continue;
HeapObject* object = HeapObject::cast(raw_object);
MaybeObject* raw_object = vector->get(slot.ToInt() + i);
if (!raw_object->IsStrongOrWeakHeapObject()) continue;
HeapObject* object = raw_object->GetHeapObject();
if (object->IsCell() || object->IsWeakFixedArray()) {
RecordSimpleVirtualObjectStats(
vector, object, ObjectStats::FEEDBACK_VECTOR_ENTRY_TYPE);
......
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