Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9c6d0178060ce865f17fbd08dc658a965d9d0c6e
      
https://github.com/WebKit/WebKit/commit/9c6d0178060ce865f17fbd08dc658a965d9d0c6e
  Author: Sosuke Suzuki <[email protected]>
  Date:   2026-09-17 (Thu, 17 Sep 2026)

  Changed paths:
    M Source/JavaScriptCore/bytecode/CodeBlock.cpp
    M Source/JavaScriptCore/bytecode/CodeBlock.h
    M Source/JavaScriptCore/bytecode/InlineCacheCompiler.cpp
    M Source/JavaScriptCore/bytecode/PropertyInlineCache.cpp
    M Source/JavaScriptCore/bytecode/PropertyInlineCache.h
    M Source/JavaScriptCore/dfg/DFGInlineCacheWrapperInlines.h
    M Source/JavaScriptCore/dfg/DFGJITCode.h
    M Source/JavaScriptCore/dfg/DFGOSRExitCompilerCommon.cpp
    M Source/JavaScriptCore/jit/BaselineJITCode.cpp
    M Source/JavaScriptCore/jit/BaselineJITCode.h
    M Source/JavaScriptCore/jit/JIT.cpp
    M Source/JavaScriptCore/jit/JITInlineCacheGenerator.cpp
    M Source/JavaScriptCore/jit/JITInlineCacheGenerator.h

  Log Message:
  -----------
  [JSC] Remove `doneLocation` from `HandlerPropertyInlineCache`
https://bugs.webkit.org/show_bug.cgi?id=324424

Reviewed by Yusuke Suzuki.

Only RepatchingPropertyInlineCache and BaselineUnlinkedPropertyInlineCache
need doneLocation, but the other inline cache structs had the field too.
Remove it from them.

Also reorder some fields to pack the structs.

                                          Before   After

    HandlerPropertyInlineCache              88 B    80 B
    BaselineUnlinkedPropertyInlineCache     32 B    24 B
    DFG::UnlinkedPropertyInlineCache        40 B    24 B

* Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::CodeBlock::findPropertyCache): Deleted.
* Source/JavaScriptCore/bytecode/CodeBlock.h:
* Source/JavaScriptCore/bytecode/InlineCacheCompiler.cpp:
(JSC::InlineCacheCompiler::succeed):
* Source/JavaScriptCore/bytecode/PropertyInlineCache.cpp:
(JSC::HandlerPropertyInlineCache::initializeFromUnlinkedPropertyInlineCache):
(JSC::HandlerPropertyInlineCache::initializeFromDFGUnlinkedPropertyInlineCache):
* Source/JavaScriptCore/bytecode/PropertyInlineCache.h:
(JSC::PropertyInlineCache::offsetOfInlineHolder):
(JSC::PropertyInlineCache::offsetOfDoneLocation): Deleted.
* Source/JavaScriptCore/dfg/DFGInlineCacheWrapperInlines.h:
(JSC::DFG::InlineCacheWrapper<GeneratorType>::finalize):
* Source/JavaScriptCore/dfg/DFGJITCode.h:
* Source/JavaScriptCore/dfg/DFGOSRExitCompilerCommon.cpp:
(JSC::DFG::callerReturnPC):
* Source/JavaScriptCore/jit/BaselineJITCode.cpp:
(JSC::BaselineJITCode::getPropertyInlineCacheDoneLocationForBytecodeIndex 
const):
* Source/JavaScriptCore/jit/BaselineJITCode.h:
* Source/JavaScriptCore/jit/JIT.cpp:
(JSC::JIT::link):
* Source/JavaScriptCore/jit/JITInlineCacheGenerator.cpp:
(JSC::JITInlineCacheGenerator::finalize):

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



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

Reply via email to