Title: [295519] trunk/Source/_javascript_Core
- Revision
- 295519
- Author
- commit-qu...@webkit.org
- Date
- 2022-06-14 03:01:45 -0700 (Tue, 14 Jun 2022)
Log Message
[RISC-V] Build fixes after 251455@main
https://bugs.webkit.org/show_bug.cgi?id=241591
Patch by Žan Doberšek <zdober...@igalia.com> on 2022-06-14
Unreviewed, adding missing RISCV64 build guards alongside guards for other
64-bit platforms to get the build back up and running.
* Source/_javascript_Core/llint/WebAssembly.asm:
* Source/_javascript_Core/wasm/WasmMemoryInformation.cpp:
(JSC::Wasm::PinnedRegisterInfo::get):
Canonical link: https://commits.webkit.org/251524@main
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/llint/WebAssembly.asm (295518 => 295519)
--- trunk/Source/_javascript_Core/llint/WebAssembly.asm 2022-06-14 08:28:49 UTC (rev 295518)
+++ trunk/Source/_javascript_Core/llint/WebAssembly.asm 2022-06-14 10:01:45 UTC (rev 295519)
@@ -47,7 +47,7 @@
# All callee saves must match the definition in WasmCallee.cpp
# These must match the definition in WasmMemoryInformation.cpp
-if X86_64 or ARM64 or ARM64E
+if X86_64 or ARM64 or ARM64E or RISCV64
const wasmInstance = csr0
const memoryBase = csr3
const boundsCheckingSize = csr4
Modified: trunk/Source/_javascript_Core/wasm/WasmMemoryInformation.cpp (295518 => 295519)
--- trunk/Source/_javascript_Core/wasm/WasmMemoryInformation.cpp 2022-06-14 08:28:49 UTC (rev 295518)
+++ trunk/Source/_javascript_Core/wasm/WasmMemoryInformation.cpp 2022-06-14 10:01:45 UTC (rev 295519)
@@ -41,7 +41,7 @@
unsigned numberOfPinnedRegisters = 2;
if (!Context::useFastTLS())
++numberOfPinnedRegisters;
-#if CPU(X86_64) || CPU(ARM64)
+#if CPU(X86_64) || CPU(ARM64) || CPU(RISCV64)
GPRReg baseMemoryPointer = GPRInfo::regCS3;
GPRReg boundsCheckingSizeRegister = GPRInfo::regCS4;
#elif CPU(ARM)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes