Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e0644034f46ee296707fdcab9dc3b022083156c1
      
https://github.com/WebKit/WebKit/commit/e0644034f46ee296707fdcab9dc3b022083156c1
  Author: Tadeu Zagallo <[email protected]>
  Date:   2026-01-14 (Wed, 14 Jan 2026)

  Changed paths:
    M Source/JavaScriptCore/API/tests/testapi.mm
    M Source/JavaScriptCore/runtime/CachedTypes.cpp

  Log Message:
  -----------
  [JSC] Loading from bytecode cache does not set threshold for jitting
https://bugs.webkit.org/show_bug.cgi?id=305335
rdar://168002124

Reviewed by Yusuke Suzuki and Justin Michaud.

When reconstructing UnlinkedCodeBlocks from the bytecode cache we go through
a different constructor in CachedTypes.cpp. That constructor doesn't need to
do most of the things that the regular constructor does, but it should set
the JIT threshold for the code block. As it is, any function loaded from the
cache will be compiled when it's first executed.

Test: Source/JavaScriptCore/API/tests/testapi.mm
* Source/JavaScriptCore/API/tests/testapi.mm:
(testBytecodeCachedFunctionsDontJITImmediately):
(testObjectiveCAPI):
* Source/JavaScriptCore/runtime/CachedTypes.cpp:
(JSC::UnlinkedCodeBlock::UnlinkedCodeBlock):

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



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

Reply via email to