Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 073f85a35f31b911c5ad533a7f1b77a5475baecb
https://github.com/WebKit/WebKit/commit/073f85a35f31b911c5ad533a7f1b77a5475baecb
Author: Yusuke Suzuki <[email protected]>
Date: 2024-04-23 (Tue, 23 Apr 2024)
Changed paths:
M Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
M Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h
M Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
Log Message:
-----------
[JSC] Extend call_ignore_result coverage
https://bugs.webkit.org/show_bug.cgi?id=273112
rdar://126903588
Reviewed by Justin Michaud.
This patch extends coverage of call_ignore_result. We replace emitNode +
ignoredResult with emitNodeInIgnoreResultPosition.
In particular, CommaNode's change is important since it allows us to eliminate
many unnecessary results in minified JS code.
* Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::BytecodeGenerator):
* Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:
(JSC::BytecodeGenerator::emitNodeInIgnoreResultPosition):
* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::DeleteValueNode::emitBytecode):
(JSC::VoidNode::emitBytecode):
(JSC::TypeOfValueNode::emitBytecode):
(JSC::CommaNode::emitBytecode):
(JSC::ForNode::emitBytecode):
(JSC::ForInNode::emitBytecode):
Canonical link: https://commits.webkit.org/277866@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes