[webkit-changes] [WebKit/WebKit] 05eebf: [JSC] Micro-optimize stricteq in Baseline JIT with...
Yusuke Suzuki
noreply at github.com
Mon Apr 22 19:00:54 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 05eebf3077771836e4602ceaac0926ba9d5367b7
https://github.com/WebKit/WebKit/commit/05eebf3077771836e4602ceaac0926ba9d5367b7
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-04-22 (Mon, 22 Apr 2024)
Changed paths:
A JSTests/stress/jstrict-eq-constant-simple.js
A JSTests/stress/jstrict-neq-constant-simple.js
A JSTests/stress/strict-eq-constant-simple.js
A JSTests/stress/strict-neq-constant-simple.js
M Source/JavaScriptCore/jit/JITOpcodes.cpp
Log Message:
-----------
[JSC] Micro-optimize stricteq in Baseline JIT with bitwise-comparable constants
https://bugs.webkit.org/show_bug.cgi?id=272948
rdar://126726702
Reviewed by Keith Miller.
We observed stricteq with true / false / void 0 / null cases in the wild, so let's have some optimized code generation even in baseline JIT since it is simple.
* JSTests/stress/jstrict-eq-constant-simple.js: Added.
(shouldBe):
(test1):
(test2):
(test3):
(test4):
* JSTests/stress/jstrict-neq-constant-simple.js: Added.
(shouldBe):
(test1):
(test2):
(test3):
(test4):
* JSTests/stress/strict-eq-constant-simple.js: Added.
(shouldBe):
(test1):
(test2):
(test3):
(test4):
* JSTests/stress/strict-neq-constant-simple.js: Added.
(shouldBe):
(test1):
(test2):
(test3):
(test4):
* Source/JavaScriptCore/jit/JITOpcodes.cpp:
(JSC::JIT::compileOpStrictEq):
(JSC::JIT::compileOpStrictEqJump):
Canonical link: https://commits.webkit.org/277852@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list