Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: b750a5abaa781f9442aa2f3ad68f404362da7bec https://github.com/WebKit/WebKit/commit/b750a5abaa781f9442aa2f3ad68f404362da7bec Author: Yusuke Suzuki <ysuz...@apple.com> Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths: A JSTests/microbenchmarks/double-to-string.js A JSTests/stress/double-to-string.js M Source/JavaScriptCore/dfg/DFGFixupPhase.cpp M Source/JavaScriptCore/runtime/NumberPrototype.cpp M Source/JavaScriptCore/runtime/NumericStrings.h Log Message: ----------- [JSC] Extend double string cache https://bugs.webkit.org/show_bug.cgi?id=276165 rdar://131021443 Reviewed by Keith Miller and Michael Saboff. This patch adds optimizations for double string. 1. Handle "string" + double + "string" well in DFG / FTL by converting double via ToString node and use MakeRope for them. 2. Add JSString cache for doubles. * JSTests/microbenchmarks/double-to-string.js: Added. (test): * JSTests/stress/double-to-string.js: Added. (shouldBe): (test): * Source/JavaScriptCore/dfg/DFGFixupPhase.cpp: (JSC::DFG::FixupPhase::attemptToMakeFastStringAdd): * Source/JavaScriptCore/runtime/NumberPrototype.cpp: (JSC::NumericStrings::addJSString): (JSC::numberToStringInternal): (JSC::int52ToString): * Source/JavaScriptCore/runtime/NumericStrings.h: (JSC::NumericStrings::add): (JSC::NumericStrings::clearOnGarbageCollection): (JSC::NumericStrings::visitAggregate): (JSC::NumericStrings::lookup): Canonical link: https://commits.webkit.org/280628@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes