[webkit-changes] [WebKit/WebKit] e2606b: [JSC] Sort opcodes to remove padding from metadata...

Tadeu Zagallo noreply at github.com
Mon Feb 13 04:29:56 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e2606b1940c67a766d810a5ad54c114298f37036
      https://github.com/WebKit/WebKit/commit/e2606b1940c67a766d810a5ad54c114298f37036
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-02-13 (Mon, 13 Feb 2023)

  Changed paths:
    M Source/JavaScriptCore/bytecode/BytecodeList.rb
    M Source/JavaScriptCore/bytecode/UnlinkedMetadataTable.cpp

  Log Message:
  -----------
  [JSC] Sort opcodes to remove padding from metadata table
https://bugs.webkit.org/show_bug.cgi?id=252055
rdar://105276503

Reviewed by Yusuke Suzuki.

Sort the opcodes by metadata alignment requirements. We start with 8-byte aligned,
followed by 4-byte, etc. The memory savings are minimal (too small to measure with
confidence), but they are also free.

* Source/JavaScriptCore/bytecode/BytecodeList.rb:
* Source/JavaScriptCore/bytecode/UnlinkedMetadataTable.cpp:
(JSC::UnlinkedMetadataTable::finalize):

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




More information about the webkit-changes mailing list