Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JSC] Remove DeprecatedCallFrameForDebugger
https://bugs.webkit.org/show_bug.cgi?id=239045 Reviewed by Devin Rousso. We should not enlarge sizeof(JSGlobalObject) by having DeprecatedCallFrameForDebugger which is only used for Debugger, and it is used only when we have an error when evaluating top-level SyntaxError. This patch removes it: we introduce EmptyTopLevelCallFrameForDebugger which can be constructed on stack and we use it instead of DeprecatedCallFrameForDebugger. * Source/JavaScriptCore/debugger/Debugger.cpp: (JSC::Debugger::updateCallFrame): (JSC::EmptyTopLevelCallFrameForDebugger::EmptyTopLevelCallFrameForDebugger): (JSC::EmptyTopLevelCallFrameForDebugger::asCallFrame): (JSC::Debugger::exception): * Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp: (JSC::DebuggerCallFrame::create): (JSC::DebuggerCallFrame::positionForCallFrame): * Source/JavaScriptCore/interpreter/CallFrame.cpp: (JSC::CallFrame::convertToStackOverflowFrame): (JSC::CallFrame::initDeprecatedCallFrameForDebugger): Deleted. * Source/JavaScriptCore/interpreter/CallFrame.h: (JSC::CallFrame::isEmptyTopLevelCallFrameForDebugger const): (JSC::CallFrame::isDeprecatedCallFrameForDebugger const): Deleted. * Source/JavaScriptCore/interpreter/Interpreter.cpp: (JSC::Interpreter::notifyDebuggerOfExceptionToBeThrown): * Source/JavaScriptCore/runtime/JSGlobalObject.cpp: (JSC::JSGlobalObject::init): (JSC::JSGlobalObject::deprecatedCallFrameForDebugger): Deleted. * Source/JavaScriptCore/runtime/JSGlobalObject.h: * Source/JavaScriptCore/runtime/VM.cpp: (JSC::VM::throwException): Canonical link: https://commits.webkit.org/249603@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
d11ee60
commit 2aa55cf595edfef2ffd838a0f5079d6b2a1d603a
Showing
9 changed files
with
72 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters