[webkit-changes] [WebKit/WebKit] ab6f33: [JSC] Optimize BBQJIT call_indirect

Yusuke Suzuki noreply at github.com
Thu Jun 8 16:15:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ab6f33ed057a30928d4e6e01a8a4e4d5cfa4531f
      https://github.com/WebKit/WebKit/commit/ab6f33ed057a30928d4e6e01a8a4e4d5cfa4531f
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-06-08 (Thu, 08 Jun 2023)

  Changed paths:
    M Source/JavaScriptCore/wasm/WasmBBQJIT.cpp

  Log Message:
  -----------
  [JSC] Optimize BBQJIT call_indirect
https://bugs.webkit.org/show_bug.cgi?id=257864
rdar://110485655

Reviewed by Justin Michaud.

1. Clean up some of call_indirect setup to shrink # of instructions / use cheaper instructions.
2. We should restore memoryBase / memorySize only when we may change it. Adding restoreWebAssemblyGlobalStateAfterWasmCall,
   which avoids costly restoring when it is not changed.

* Source/JavaScriptCore/wasm/WasmBBQJIT.cpp:
(JSC::Wasm::BBQJIT::restoreWebAssemblyGlobalStateAfterWasmCall):
(JSC::Wasm::BBQJIT::addCall):
(JSC::Wasm::BBQJIT::emitIndirectCall):
(JSC::Wasm::BBQJIT::addCallIndirect):

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




More information about the webkit-changes mailing list