Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Source/JavaScriptCore/jit/PolymorphicCallStubRoutine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ PolymorphicCallNode::~PolymorphicCallNode()

void PolymorphicCallNode::unlink(VM& vm)
{
// We first remove itself from the linked-list before unlinking m_callLinkInfo.
// The reason is that m_callLinkInfo can potentially link PolymorphicCallNode's stub itself, and it may destroy |this| (the other CallLinkInfo
// does not do it since it is not chained in PolymorphicCallStubRoutine).
if (isOnList())
remove();

if (m_callLinkInfo) {
dataLogLnIf(Options::dumpDisassembly(), "Unlinking polymorphic call at ", m_callLinkInfo->doneLocation(), ", bc#", m_callLinkInfo->codeOrigin().bytecodeIndex());
m_callLinkInfo->unlink(vm);
}

if (isOnList())
remove();
}

void PolymorphicCallNode::clearCallLinkInfo()
Expand Down