Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 286f7a92228f99778ad6f36a638af622e5fe2450
https://github.com/WebKit/WebKit/commit/286f7a92228f99778ad6f36a638af622e5fe2450
Author: Yusuke Suzuki <[email protected]>
Date: 2026-04-24 (Fri, 24 Apr 2026)
Changed paths:
M Source/JavaScriptCore/runtime/ArrayPrototype.cpp
M Source/JavaScriptCore/runtime/JSArray.cpp
M Source/JavaScriptCore/runtime/JSArray.h
Log Message:
-----------
[JSC] Add JSArray::fastShift
https://bugs.webkit.org/show_bug.cgi?id=313196
rdar://175472870
Reviewed by Sosuke Suzuki.
Add simple fast path JSArray::fastShift to `Array.prototype.shift`
function which is avoiding a bit generic shiftCount based approach.
The original code is generic because it was used for `splice` too.
* Source/JavaScriptCore/runtime/ArrayPrototype.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/JSArray.cpp:
(JSC::JSArray::fastShift):
* Source/JavaScriptCore/runtime/JSArray.h:
Canonical link: https://commits.webkit.org/311929@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications