Title: [293393] trunk/Source/_javascript_Core
Revision
293393
Author
keith_mil...@apple.com
Date
2022-04-25 18:36:25 -0700 (Mon, 25 Apr 2022)

Log Message

structureIDToStructureWithScratch should only do things if ADDRESS64
https://bugs.webkit.org/show_bug.cgi?id=239749

Reviewed by Saam Barati.

* llint/LowLevelInterpreter64.asm:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (293392 => 293393)


--- trunk/Source/_javascript_Core/ChangeLog	2022-04-26 01:31:52 UTC (rev 293392)
+++ trunk/Source/_javascript_Core/ChangeLog	2022-04-26 01:36:25 UTC (rev 293393)
@@ -1,3 +1,12 @@
+2022-04-25  Keith Miller  <keith_mil...@apple.com>
+
+        structureIDToStructureWithScratch should only do things if ADDRESS64
+        https://bugs.webkit.org/show_bug.cgi?id=239749
+
+        Reviewed by Saam Barati.
+
+        * llint/LowLevelInterpreter64.asm:
+
 2022-04-22  Yusuke Suzuki  <ysuz...@apple.com>
 
         [JSC] Enable change-array-by-copy

Modified: trunk/Source/_javascript_Core/llint/LowLevelInterpreter64.asm (293392 => 293393)


--- trunk/Source/_javascript_Core/llint/LowLevelInterpreter64.asm	2022-04-26 01:31:52 UTC (rev 293392)
+++ trunk/Source/_javascript_Core/llint/LowLevelInterpreter64.asm	2022-04-26 01:36:25 UTC (rev 293393)
@@ -741,10 +741,12 @@
 end
 
 macro structureIDToStructureWithScratch(structureIDThenStructure, scratch)
-    andq constexpr structureIDMask, structureIDThenStructure
-    leap JSCConfig + constexpr JSC::offsetOfJSCConfigStartOfStructureHeap, scratch
-    loadp [scratch], scratch
-    addp scratch, structureIDThenStructure
+    if ADDRESS64
+        andq constexpr structureIDMask, structureIDThenStructure
+        leap JSCConfig + constexpr JSC::offsetOfJSCConfigStartOfStructureHeap, scratch
+        loadp [scratch], scratch
+        addp scratch, structureIDThenStructure
+    end
 end
 
 macro loadStructureWithScratch(cell, structure, scratch)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to