Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 630d3beef73a73b24ab79bc171779e0db404b601
      
https://github.com/WebKit/WebKit/commit/630d3beef73a73b24ab79bc171779e0db404b601
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-04-30 (Thu, 30 Apr 2026)

  Changed paths:
    M Source/JavaScriptCore/runtime/AbstractModuleRecord.cpp

  Log Message:
  -----------
  [JSC] Populate Module resolution cache only when it is star-resolution / 
indirect-resolution
https://bugs.webkit.org/show_bug.cgi?id=313619
rdar://175826413

Reviewed by Yijia Huang.

m_exportEntries is already offering a hashmap for Local and Namespace
resolutions. The cache is only useful when we have star-resolution /
indirect-resolution since they are costly. We can stop populating a
cache for Local / Namespace and we can cache only when star-resolution
/ indirect-resolution resolutions are found.

* Source/JavaScriptCore/runtime/AbstractModuleRecord.cpp:
(JSC::AbstractModuleRecord::resolveImport):
(JSC::AbstractModuleRecord::resolveExportImpl):
(JSC::AbstractModuleRecord::resolveExport):
(JSC::AbstractModuleRecord::getModuleNamespace):

Canonical link: https://commits.webkit.org/312416@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to