Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c4e25ac3fb225a92faf47134e6d8dd0c5b52a756
https://github.com/WebKit/WebKit/commit/c4e25ac3fb225a92faf47134e6d8dd0c5b52a756
Author: Fady Farag <[email protected]>
Date: 2026-01-25 (Sun, 25 Jan 2026)
Changed paths:
M Source/JavaScriptCore/assembler/CPU.cpp
M Source/JavaScriptCore/bytecode/DeleteByStatus.cpp
M Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
M Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
M Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
M Source/JavaScriptCore/parser/Nodes.cpp
M Source/JavaScriptCore/parser/Nodes.h
M Source/JavaScriptCore/parser/Parser.cpp
M Source/JavaScriptCore/runtime/Butterfly.h
M Source/JavaScriptCore/runtime/LiteralParser.cpp
M Source/JavaScriptCore/runtime/Options.cpp
M Source/JavaScriptCore/runtime/VMManager.h
Log Message:
-----------
Drop unnecessary usage of ternary operator in JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=306221
rdar://168876630
Reviewed by Darin Adler.
This improves readability and enforces more idiomatic C++ by resorting to
equivalent binary boolean operations.
* Source/JavaScriptCore/assembler/CPU.cpp:
(JSC::isARM64E_FPAC):
* Source/JavaScriptCore/bytecode/DeleteByStatus.cpp:
(JSC::DeleteByStatus::computeForStubInfoWithoutExitSiteFeedback):
* Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::emitGenericEnumeration):
* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::ShortCircuitReadModifyResolveNode::emitBytecode):
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleIntrinsicCall):
* Source/JavaScriptCore/parser/Nodes.cpp:
(JSC::BlockNode::hasCompletionValue const):
(JSC::BlockNode::hasEarlyBreakOrContinue const):
(JSC::ScopeNode::hasCompletionValue const):
(JSC::ScopeNode::hasEarlyBreakOrContinue const):
* Source/JavaScriptCore/parser/Nodes.h:
* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseFunctionBody):
* Source/JavaScriptCore/runtime/Butterfly.h:
(JSC::Butterfly::totalSize):
* Source/JavaScriptCore/runtime/LiteralParser.cpp:
(JSC::requires):
(JSC::reviverMode>::parse):
* Source/JavaScriptCore/runtime/Options.cpp:
(JSC::OptionRange::isInRange const):
* Source/JavaScriptCore/runtime/VMManager.h:
(JSC::VMManager::isValidVM):
Canonical link: https://commits.webkit.org/306188@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications