[webkit-changes] [WebKit/WebKit] 3df15f: [JSC] Avoid allocations in BinarySwitch
Yusuke Suzuki
noreply at github.com
Fri Apr 26 11:29:55 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3df15f02c1078c2c1257c865e1772f21d61d3a8d
https://github.com/WebKit/WebKit/commit/3df15f02c1078c2c1257c865e1772f21d61d3a8d
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-04-26 (Fri, 26 Apr 2024)
Changed paths:
M Source/JavaScriptCore/bytecode/InlineCacheCompiler.cpp
M Source/JavaScriptCore/bytecode/Repatch.cpp
M Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
M Source/JavaScriptCore/jit/BinarySwitch.cpp
M Source/JavaScriptCore/jit/BinarySwitch.h
M Source/JavaScriptCore/wasm/WasmBBQJIT.cpp
Log Message:
-----------
[JSC] Avoid allocations in BinarySwitch
https://bugs.webkit.org/show_bug.cgi?id=273291
rdar://127081651
Reviewed by Keith Miller.
This patch adds some initial capacity to the Vector of BinarySwitch so that we can cover most of cases without allocations.
* Source/JavaScriptCore/bytecode/InlineCacheCompiler.cpp:
(JSC::InlineCacheCompiler::regenerate):
* Source/JavaScriptCore/bytecode/Repatch.cpp:
(JSC::linkPolymorphicCall):
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
* Source/JavaScriptCore/jit/BinarySwitch.cpp:
(JSC::BinarySwitch::BinarySwitch):
(JSC::BinarySwitch::build):
(JSC::BinarySwitch::~BinarySwitch): Deleted.
* Source/JavaScriptCore/jit/BinarySwitch.h:
* Source/JavaScriptCore/wasm/WasmBBQJIT.cpp:
(JSC::Wasm::BBQJITImpl::BBQJIT::addSwitch):
Canonical link: https://commits.webkit.org/278049@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list