[webkit-changes] [WebKit/WebKit] aebb1b: [JSC] Add toArgumentIndex to GPRInfo and FPRInfo

Ross Kirsling noreply at github.com
Thu Sep 26 10:27:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: aebb1b2ef24cb6ab41663ccbe8c468665d9ea1a8
      https://github.com/WebKit/WebKit/commit/aebb1b2ef24cb6ab41663ccbe8c468665d9ea1a8
  Author: Ross Kirsling <ross.kirsling at sony.com>
  Date:   2024-09-26 (Thu, 26 Sep 2024)

  Changed paths:
    M Source/JavaScriptCore/jit/FPRInfo.h
    M Source/JavaScriptCore/jit/GPRInfo.h
    M Source/JavaScriptCore/wasm/WasmOperations.cpp

  Log Message:
  -----------
  [JSC] Add toArgumentIndex to GPRInfo and FPRInfo
https://bugs.webkit.org/show_bug.cgi?id=280390

Reviewed by Yusuke Suzuki.

As Keith suggested in #34218, let's add GPRInfo::toArgumentIndex (and FPRInfo::toArgumentIndex)
so that we can use them in WasmOperations instead of looping over toArgumentRegister.

* Source/JavaScriptCore/jit/FPRInfo.h:
(JSC::FPRInfo::toArgumentIndex): Added.
(JSC::FPRInfo::toIndex):
* Source/JavaScriptCore/jit/GPRInfo.h:
(JSC::GPRInfo::toArgumentIndex): Added.
(JSC::GPRInfo::toIndex):
* Source/JavaScriptCore/wasm/WasmOperations.cpp:
(JSC::Wasm::JSC_DEFINE_JIT_OPERATION):
(JSC::Wasm::gprToIndex): Deleted.
(JSC::Wasm::fprToIndex): Deleted.

Canonical link: https://commits.webkit.org/284299@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