Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 986543b9d0e8d703e20936ad8b1d1211b5edb30c
https://github.com/WebKit/WebKit/commit/986543b9d0e8d703e20936ad8b1d1211b5edb30c
Author: Sosuke Suzuki <[email protected]>
Date: 2026-01-19 (Mon, 19 Jan 2026)
Changed paths:
A JSTests/microbenchmarks/string-codePointAt-constant-folding.js
A JSTests/stress/string-codePointAt-constant-folding.js
M Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h
M Source/JavaScriptCore/runtime/StringPrototype.cpp
M Source/JavaScriptCore/runtime/StringPrototypeInlines.h
Log Message:
-----------
[JSC] Handle `StringCodePointAt` in Abastract Interpreter
https://bugs.webkit.org/show_bug.cgi?id=305629
Reviewed by Yusuke Suzuki.
This patch changes to handle `String#codePointAt` in DFGAbstractInterpreter.
TipOfTree Patched
string-codePointAt-constant-folding 1.4612+-0.0974 ^
1.0053+-0.0306 ^ definitely 1.4535x faster
Tests: JSTests/microbenchmarks/string-codePointAt-constant-folding.js
JSTests/stress/string-codePointAt-constant-folding.js
* JSTests/microbenchmarks/string-codePointAt-constant-folding.js: Added.
* JSTests/stress/string-codePointAt-constant-folding.js: Added.
(shouldBe):
* Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::codePointAt): Deleted.
* Source/JavaScriptCore/runtime/StringPrototypeInlines.h:
(JSC::codePointAt):
Canonical link: https://commits.webkit.org/305839@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications