Title: [293093] trunk/Source/_javascript_Core
Revision
293093
Author
[email protected]
Date
2022-04-20 06:51:24 -0700 (Wed, 20 Apr 2022)

Log Message

Unreviewed, RISC-V build fix.

* assembler/MacroAssemblerRISCV64.h:
(JSC::MacroAssemblerRISCV64::store64):
Add the store64(TrustedImmPtr, Address) overload required after 249798@main.
It constructs a 32-bit or 64-bit TrustedImm value, based on the detected
pointer size, and relays it to the appropriate store64() method.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (293092 => 293093)


--- trunk/Source/_javascript_Core/ChangeLog	2022-04-20 13:36:57 UTC (rev 293092)
+++ trunk/Source/_javascript_Core/ChangeLog	2022-04-20 13:51:24 UTC (rev 293093)
@@ -1,5 +1,15 @@
 2022-04-20  Zan Dobersek  <[email protected]>
 
+        Unreviewed, RISC-V build fix.
+
+        * assembler/MacroAssemblerRISCV64.h:
+        (JSC::MacroAssemblerRISCV64::store64):
+        Add the store64(TrustedImmPtr, Address) overload required after 249798@main.
+        It constructs a 32-bit or 64-bit TrustedImm value, based on the detected
+        pointer size, and relays it to the appropriate store64() method.
+
+2022-04-20  Zan Dobersek  <[email protected]>
+
         [JSC] Accommodate the RISCV64 C calling convention
         https://bugs.webkit.org/show_bug.cgi?id=236367
         <rdar://problem/89026012>

Modified: trunk/Source/_javascript_Core/assembler/MacroAssemblerRISCV64.h (293092 => 293093)


--- trunk/Source/_javascript_Core/assembler/MacroAssemblerRISCV64.h	2022-04-20 13:36:57 UTC (rev 293092)
+++ trunk/Source/_javascript_Core/assembler/MacroAssemblerRISCV64.h	2022-04-20 13:51:24 UTC (rev 293093)
@@ -1147,6 +1147,15 @@
         m_assembler.sdInsn(resolution.base, immRegister, Imm::S(resolution.offset));
     }
 
+    void store64(TrustedImmPtr imm, Address address)
+    {
+        intptr_t value = imm.asIntptr();
+        if constexpr (sizeof(intptr_t) == sizeof(int64_t))
+            store64(TrustedImm64(int64_t(value)), address);
+        else
+            store64(TrustedImm32(int32_t(value)), address);
+    }
+
     void store64(TrustedImm64 imm, BaseIndex address)
     {
         auto temp = temps<Data, Memory>();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to