[webkit-changes] [WebKit/WebKit] b8cd89: [JSC] Reduce sizeof(CodeBlock) from 232 to 224
Yusuke Suzuki
noreply at github.com
Wed Nov 29 06:22:44 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b8cd89e4b5ebad42a64776eabff6cbeb992a0992
https://github.com/WebKit/WebKit/commit/b8cd89e4b5ebad42a64776eabff6cbeb992a0992
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2023-11-29 (Wed, 29 Nov 2023)
Changed paths:
M Source/JavaScriptCore/bytecode/CodeBlock.cpp
M Source/JavaScriptCore/bytecode/CodeBlock.h
Log Message:
-----------
[JSC] Reduce sizeof(CodeBlock) from 232 to 224
https://bugs.webkit.org/show_bug.cgi?id=265508
rdar://118917365
Reviewed by Mark Lam.
This patch reduces sizeof(CodeBlock) by using float for m_previousCounter.
This is OK since BaselineExecutableCounter is anyway keeping m_totalCount as float,
so it is aligned to that precision.
* Source/JavaScriptCore/bytecode/CodeBlock.cpp:
(JSC::CodeBlock::finalizeUnconditionally):
* Source/JavaScriptCore/bytecode/CodeBlock.h:
Canonical link: https://commits.webkit.org/271273@main
More information about the webkit-changes
mailing list