summaryrefslogtreecommitdiff
path: root/D139704.diff
diff options
context:
space:
mode:
Diffstat (limited to 'D139704.diff')
-rw-r--r--D139704.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/D139704.diff b/D139704.diff
new file mode 100644
index 0000000..ab1ea42
--- /dev/null
+++ b/D139704.diff
@@ -0,0 +1,21 @@
+diff --git a/js/src/jit/GenerateAtomicOperations.py b/js/src/jit/GenerateAtomicOperations.py
+--- a/js/src/jit/GenerateAtomicOperations.py
++++ b/js/src/jit/GenerateAtomicOperations.py
+@@ -666,12 +666,12 @@
+ insns += fmt_insn("str %x[scratch], [%x[dst], OFFSET]")
+ elif cpu_arch == "arm":
+ if size == 1:
+- insns += fmt_insn("ldrb %[scratch], [%[src], OFFSET]")
+- insns += fmt_insn("strb %[scratch], [%[dst], OFFSET]")
++ insns += fmt_insn("ldrb %[scratch], [%[src], #OFFSET]")
++ insns += fmt_insn("strb %[scratch], [%[dst], #OFFSET]")
+ else:
+ assert size == 4
+- insns += fmt_insn("ldr %[scratch], [%[src], OFFSET]")
+- insns += fmt_insn("str %[scratch], [%[dst], OFFSET]")
++ insns += fmt_insn("ldr %[scratch], [%[src], #OFFSET]")
++ insns += fmt_insn("str %[scratch], [%[dst], #OFFSET]")
+ else:
+ raise Exception("Unexpected arch")
+ insns = insns.replace("OFFSET", str(offset * size))
+
bgstack15