You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5031c90
Browse filesBrowse the repository at this point in the historyBrowse files
https://bugs.webkit.org/show_bug.cgi?id=319012
rdar://181857218
Reviewed by Keith Miller.
This patch implements String.raw in C++, which removes builtin JS
version of String.raw. Since array is frozen, builtin JS iteration does
not offer much in fact. We can write all array types in an efficient way
in C++.
ToT Patched
string-raw 38.3499+-0.2422 ^ 33.8134+-0.3764 ^ definitely 1.1342x faster
string-raw-large 144.9109+-3.1563 ^ 118.7783+-2.5823 ^ definitely 1.2200x faster
Tests: JSTests/microbenchmarks/string-raw-large.js
JSTests/microbenchmarks/string-raw.js
* JSTests/microbenchmarks/string-raw-large.js: Added.
(test):
* JSTests/microbenchmarks/string-raw.js: Added.
(test):
* Source/JavaScriptCore/CMakeLists.txt:
* Source/JavaScriptCore/DerivedSources.make:
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/builtins/StringConstructor.js: Removed.
* Source/JavaScriptCore/runtime/JSString.cpp:
(JSC::JSRopeString::RopeBuilder<RecordOverflow>::expand):
* Source/JavaScriptCore/runtime/JSString.h:
* Source/JavaScriptCore/runtime/StringConstructor.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/317009@main
0 commit comments