Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 28112c01122b1e2b5c2c4d6f29e4ca75db8878e3
https://github.com/WebKit/WebKit/commit/28112c01122b1e2b5c2c4d6f29e4ca75db8878e3
Author: Yusuke Suzuki <[email protected]>
Date: 2026-05-12 (Tue, 12 May 2026)
Changed paths:
M Source/JavaScriptCore/runtime/JSModuleNamespaceObject.cpp
M Source/JavaScriptCore/runtime/JSModuleNamespaceObject.h
Log Message:
-----------
[JSC] Use OrderedHashMap in JSModuleNamespaceObject
https://bugs.webkit.org/show_bug.cgi?id=314617
rdar://176856028
Reviewed by Sosuke Suzuki.
Let's leverage new OrderedHashMap in JSModuleNamespaceObject, so we do
not need to hold m_names vector additionally. We also set up
OrderedHashMap in the constructor instead of finishCreation so we do not
need to have a lock for GC marking since we can set up and freeze the
map before exposing it to GC.
* Source/JavaScriptCore/runtime/JSModuleNamespaceObject.cpp:
(JSC::JSModuleNamespaceObject::JSModuleNamespaceObject):
(JSC::JSModuleNamespaceObject::finishCreation):
(JSC::JSModuleNamespaceObject::visitChildrenImpl):
(JSC::JSModuleNamespaceObject::getOwnPropertyNames):
* Source/JavaScriptCore/runtime/JSModuleNamespaceObject.h:
Canonical link: https://commits.webkit.org/313085@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications