-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add convenience option to enable/disable all Debug JITCode validations.
https://bugs.webkit.org/show_bug.cgi?id=263811 rdar://117609282 Reviewed by Justin Michaud. Sometimes, we just want to have the debuggability of a Debug build without all the JITCode validations cluttering up the generated code. Conversely, sometimes, we want all the available validations enabled for a Release build test run. We should have a jsc shell convenience option to toggle all the JITCode validation options on or off. What changed? 1. Added a Options::useJITAsserts() to allow us to disable all jitAssertXXX code emissions. 2. Changed Options::validateDFGExceptionHandling() to not be forced on for Debug builds. 3. Added a --useJITCodeValidations=<bool value> option to the jsc shell to enable/disable Options::useJITAsserts() and all JITCode validation codegen options. * Source/JavaScriptCore/jit/AssemblyHelpers.cpp: (JSC::AssemblyHelpers::jitAssertIsInt32): (JSC::AssemblyHelpers::jitAssertIsJSInt32): (JSC::AssemblyHelpers::jitAssertIsJSNumber): (JSC::AssemblyHelpers::jitAssertIsJSDouble): (JSC::AssemblyHelpers::jitAssertIsCell): (JSC::AssemblyHelpers::jitAssertTagsInPlace): (JSC::AssemblyHelpers::jitAssertHasValidCallFrame): (JSC::AssemblyHelpers::jitAssertIsNull): (JSC::AssemblyHelpers::jitAssertArgumentCountSane): (JSC::AssemblyHelpers::jitAssertCodeBlockOnCallFrameWithType): (JSC::AssemblyHelpers::jitAssertCodeBlockMatchesCurrentCalleeCodeBlockOnCallFrame): (JSC::AssemblyHelpers::jitAssertCodeBlockOnCallFrameIsOptimizingJIT): * Source/JavaScriptCore/jsc.cpp: (CommandLine::parseArguments): * Source/JavaScriptCore/runtime/Options.cpp: (JSC::Options::setAllJITCodeValidations): (JSC::Options::notifyOptionsChanged): * Source/JavaScriptCore/runtime/Options.h: * Source/JavaScriptCore/runtime/OptionsList.h: Canonical link: https://commits.webkit.org/269879@main
- Loading branch information
Mark Lam
committed
Oct 28, 2023
1 parent
3839864
commit 77b974f
Showing
5 changed files
with
71 additions
and
5 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