Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7fa06d6a9b3d7e5d8ed5109310e1168678594948
      
https://github.com/WebKit/WebKit/commit/7fa06d6a9b3d7e5d8ed5109310e1168678594948
  Author: Yusuke Suzuki <[email protected]>
  Date:   2025-03-01 (Sat, 01 Mar 2025)

  Changed paths:
    M Source/JavaScriptCore/bytecode/InlineCacheCompiler.h
    M Source/JavaScriptCore/jit/JITOperations.cpp
    M Source/JavaScriptCore/runtime/StringPrototype.cpp
    M Source/JavaScriptCore/runtime/Structure.h

  Log Message:
  -----------
  [JSC] Relax megamorphic IC condition for 2 digits integers
https://bugs.webkit.org/show_bug.cgi?id=288927
rdar://145934723

Reviewed by Mark Lam.

This patch relaxes disabling megamorphic IC when it encounters 2-digits
integer strings as keys. When using an object, there is a legit chance
that integers are also used for keys. So let's not pessimise the IC when
(1) an object is already a cacheable dictionary or (2) key is 2-digit
integer string.

* Source/JavaScriptCore/bytecode/InlineCacheCompiler.h:
(JSC::canUseMegamorphicGetByIdExcludingIndex):
(JSC::canUseMegamorphicGetById):
* Source/JavaScriptCore/jit/JITOperations.cpp:
(JSC::getByValMegamorphic):
* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::replaceUsingRegExpSearchWithCache):
* Source/JavaScriptCore/runtime/Structure.h:
(JSC::Structure::isCacheableDictionary const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to