fixup node-12 riscv64 support

Change-Id: I6e2929ca69a1e0089f2118163c56f8f35f5a1ff4
This commit is contained in:
Efraim Flashner
2025-03-13 08:07:55 +02:00
parent 420978037d
commit 856ac4ee6f

View File

@@ -10302,10 +10302,10 @@ index 00000000000..aad09378f99
+#endif // V8_TARGET_ARCH_RISCV64
diff --git a/deps/v8/src/codegen/riscv64/interface-descriptors-riscv64.cc b/deps/v8/src/codegen/riscv64/interface-descriptors-riscv64.cc
new file mode 100644
index 00000000000..b27dd88ea80
index 00000000000..805205adf20
--- /dev/null
+++ b/deps/v8/src/codegen/riscv64/interface-descriptors-riscv64.cc
@@ -0,0 +1,327 @@
@@ -0,0 +1,329 @@
+// Copyright 2021 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
@@ -10340,9 +10340,11 @@ index 00000000000..b27dd88ea80
+void WasmI64AtomicWaitDescriptor::InitializePlatformSpecific(
+ CallInterfaceDescriptorData* data) {
+ const Register default_stub_registers[] = {a0, a1, a2, a3};
+ CHECK_EQ(static_cast<size_t>(kParameterCount - kStackArgumentsCount),
+ //CHECK_EQ(static_cast<size_t>(kParameterCount - kStackArgumentsCount),
+ CHECK_EQ(static_cast<size_t>(kParameterCount),
+ arraysize(default_stub_registers));
+ data->InitializePlatformSpecific(kParameterCount - kStackArgumentsCount,
+ //data->InitializePlatformSpecific(kParameterCount - kStackArgumentsCount,
+ data->InitializePlatformSpecific(kParameterCount,
+ default_stub_registers);
+}
+