[webkit-changes] [WebKit/WebKit] 5fe28d: [JSC] Reduce unnecessary function and scope alloca...
Yusuke Suzuki
noreply at github.com
Mon Sep 9 12:15:54 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5fe28de3ddab1a007c885085fd8a51f9706e5f0a
https://github.com/WebKit/WebKit/commit/5fe28de3ddab1a007c885085fd8a51f9706e5f0a
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-09-09 (Mon, 09 Sep 2024)
Changed paths:
M Source/JavaScriptCore/builtins/InternalPromiseConstructor.js
M Source/JavaScriptCore/builtins/PromiseConstructor.js
Log Message:
-----------
[JSC] Reduce unnecessary function and scope allocations in Promise builtins
https://bugs.webkit.org/show_bug.cgi?id=279311
rdar://135495572
Reviewed by Keith Miller.
Inline some of promise handler creation functions and use `let` so that this patch
reduces unnecessary function creation like `newResolveElement`.
We also remove repeated promise capabilities property accesses.
* Source/JavaScriptCore/builtins/InternalPromiseConstructor.js:
(internalAll):
(internalAll.newResolveElement): Deleted.
* Source/JavaScriptCore/builtins/PromiseConstructor.js:
(linkTimeConstant.promiseAllSlow):
(allSettled):
(any):
(linkTimeConstant.promiseAllSlow.newResolveElement): Deleted.
(any.newRejectElement): Deleted.
Canonical link: https://commits.webkit.org/283358@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list