Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4d1e380621d4df47c82344c0ca20d2162169d6a1
https://github.com/WebKit/WebKit/commit/4d1e380621d4df47c82344c0ca20d2162169d6a1
Author: Yusuke Suzuki <[email protected]>
Date: 2024-07-26 (Fri, 26 Jul 2024)
Changed paths:
M Source/JavaScriptCore/bytecode/InlineCacheCompiler.cpp
M Source/JavaScriptCore/runtime/Structure.cpp
M Source/JavaScriptCore/runtime/StructureInlines.h
M Source/JavaScriptCore/runtime/StructureTransitionTable.h
Log Message:
-----------
[JSC] Add ChangePrototype transition
https://bugs.webkit.org/show_bug.cgi?id=277061
rdar://132453886
Reviewed by Keith Miller.
This patch adds transition tracking for changing [[Prototype]]. Some code is
frequently changing [[Prototype]] to create a class,
and this patch teaches the code to use the same Structure by tracing the
transition chain to leverage this characteristics in IC and other optimizations.
* Source/JavaScriptCore/bytecode/InlineCacheCompiler.cpp:
(JSC::InlineCacheCompiler::compileOneAccessCaseHandler):
* Source/JavaScriptCore/runtime/Structure.cpp:
(JSC::StructureTransitionTable::contains const):
(JSC::StructureTransitionTable::add):
(JSC::Structure::materializePropertyTable):
(JSC::Structure::changePrototypeTransition):
(JSC::dumpTransitionKind):
* Source/JavaScriptCore/runtime/StructureInlines.h:
(JSC::StructureTransitionTable::Hash::createFromStructure):
(JSC::StructureTransitionTable::get const):
* Source/JavaScriptCore/runtime/StructureTransitionTable.h:
(JSC::StructureTransitionTable::PointerKey::PointerKey):
(JSC::StructureTransitionTable::PointerKey::raw const):
(JSC::StructureTransitionTable::PointerKey::pointer const):
(JSC::StructureTransitionTable::PointerKey::fromRaw):
(JSC::StructureTransitionTable::Hash::Key::Key):
(JSC::StructureTransitionTable::Hash::Key::impl const):
(JSC::StructureTransitionTable::Hash::createKey):
(JSC::StructureTransitionTable::Hash::hash):
Canonical link: https://commits.webkit.org/281414@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