You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 59c35e2
Browse filesBrowse the repository at this point in the historyBrowse files
Mark Lam
committed
Replace uses of CallFrame::iterate() with StackVisitor::visit().
https://bugs.webkit.org/show_bug.cgi?id=250751
<rdar://problem/104363671>
Reviewed by Yusuke Suzuki.
An assertion in CallFrame::iterate() is blocking StackVisitor from dumping the JS stack
when we encounter Wasm frames. The assertion was from back when Wasm frames didn't exist.
This patch removes CallFrame::iterate() completely, and changes all callsites to call
StackVisitor::visit() instead.
* Source/JavaScriptCore/API/JSContextRef.cpp:
(JSContextCreateBacktrace):
* Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::CodeBlock::noticeIncomingCall):
* Source/JavaScriptCore/inspector/ScriptCallStackFactory.cpp:
(Inspector::createScriptCallStack):
(Inspector::createScriptCallStackForConsole):
* Source/JavaScriptCore/interpreter/CallFrame.h:
(JSC::CallFrame::iterate): Deleted.
* Source/JavaScriptCore/jsc.cpp:
(JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/FunctionPrototype.cpp:
(JSC::retrieveArguments):
(JSC::retrieveCallerFunction):
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
* Source/JavaScriptCore/runtime/NullSetterFunction.cpp:
(JSC::callerIsStrict):
* Source/JavaScriptCore/tools/JSDollarVM.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/tools/VMInspector.cpp:
(JSC::VMInspector::codeBlockForFrame):
(JSC::VMInspector::dumpCallFrame):
(JSC::VMInspector::dumpRegisters):
(JSC::VMInspector::dumpStack):
* Source/WebCore/bindings/js/JSDOMGlobalObject.cpp:
(WebCore::callerGlobalObject):
* Source/WebCore/testing/Internals.cpp:
(WebCore::Internals::parserMetaData):
Canonical link: https://commits.webkit.org/259027@main
0 commit comments