Commit 7fe2d885 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

[object-stats] Handle cleared weak values

Bug: v8:7760
Change-Id: I5589b873845d614a4751b12319c61c91aae04a84
Reviewed-on: https://chromium-review.googlesource.com/1070829Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53318}
parent 59719247
......@@ -534,6 +534,8 @@ void ObjectStatsCollectorImpl::RecordVirtualJSObjectDetails(JSObject* object) {
static ObjectStats::VirtualInstanceType GetFeedbackSlotType(
MaybeObject* maybe_obj, FeedbackSlotKind kind, Isolate* isolate) {
if (maybe_obj->IsClearedWeakHeapObject())
return ObjectStats::FEEDBACK_VECTOR_SLOT_OTHER_TYPE;
Object* obj = maybe_obj->GetHeapObjectOrSmi();
switch (kind) {
case FeedbackSlotKind::kCall:
......
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