Skip to content

Commit

Permalink
Workaround attempt for #696
Browse files Browse the repository at this point in the history
  • Loading branch information
guijemont committed Feb 25, 2021
1 parent df1c8f5 commit 4a13a5c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Source/JavaScriptCore/heap/SlotVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,17 @@ ALWAYS_INLINE void SlotVisitor::visitChildren(const JSCell* cell)
break;

default:
// FIXME: This could be so much better.
// https://bugs.webkit.org/show_bug.cgi?id=162462
cell->methodTable(vm())->visitChildren(const_cast<JSCell*>(cell), *this);
if (cell->type() > LastJSCObjectType) {
dataLogF("SlotVisitor::visitChildren(): Cell %p has inconsistent type %d. We won't attempt to visit its children.\n", cell, cell->type());
} else if (!cell->structure(vm())) {
dataLogF("SlotVisitor::visitChildren(): Cell %p has null structure? We won't attempt to visit its children.\n", cell);
} else if (!cell->methodTable(vm())) {
dataLogF("SlotVisitor::visitChildren(): Cell %p has null methodTable? We won't attempt to visit its children.\n", cell);
} else {
// FIXME: This could be so much better.
// https://bugs.webkit.org/show_bug.cgi?id=162462
cell->methodTable(vm())->visitChildren(const_cast<JSCell*>(cell), *this);
}
break;
}

Expand Down

0 comments on commit 4a13a5c

Please sign in to comment.