Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d4e7e6dacaa86556d56b6ae87a39479d9c126e0e
https://github.com/WebKit/WebKit/commit/d4e7e6dacaa86556d56b6ae87a39479d9c126e0e
Author: Yusuke Suzuki <[email protected]>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M Source/JavaScriptCore/builtins/TypedArrayConstructor.js
M Source/JavaScriptCore/runtime/JSGlobalObject.h
M Source/JavaScriptCore/runtime/JSGlobalObjectInlines.h
M Source/JavaScriptCore/runtime/JSTypedArrayViewConstructor.cpp
Log Message:
-----------
[JSC] Move TypedArray.of from builtin JS to C++
https://bugs.webkit.org/show_bug.cgi?id=319332
rdar://182148177
Reviewed by Sosuke Suzuki.
This patch moves TypedArray.of from builtin JS to C++.
This is trivially convertible as it is not involving callbacks etc.
We have a fast path for normal TypedArray constructors and we store
arguments quickly by using type-specialized path.
* Source/JavaScriptCore/builtins/TypedArrayConstructor.js:
(of): Deleted.
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
* Source/JavaScriptCore/runtime/JSGlobalObjectInlines.h:
(JSC::JSGlobalObject::typedArrayConstructorConcurrently const):
* Source/JavaScriptCore/runtime/JSTypedArrayViewConstructor.cpp:
(JSC::JSTypedArrayViewConstructor::finishCreation):
(JSC::typedArrayOfSetElements):
(JSC::typedArrayOfFast):
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/317162@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications