Skip to content

Commit 6e46df3

Browse files
author
WebKit ARM64 Builder
committed
Revert "Remove .previous directives from ARM64 StackPointer assembly"
This reverts commit 1664261.
1 parent 1664261 commit 6e46df3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Source/WTF/wtf/StackPointer.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ asm (
5050
"movl %esp, %eax" "\n"
5151
"addl $4, %eax" "\n"
5252
"ret" "\n"
53+
".previous" "\n"
5354
);
5455

5556
#elif CPU(X86_64) && OS(WINDOWS)
@@ -79,6 +80,7 @@ asm (
7980
"movq %rsp, %rax" "\n"
8081
"addq $8, %rax" "\n" // Account for return address.
8182
"ret" "\n"
83+
".previous" "\n"
8284
);
8385

8486
#elif CPU(ARM64E)
@@ -91,6 +93,7 @@ asm (
9193
"pacibsp" "\n"
9294
"mov x0, sp" "\n"
9395
"retab" "\n"
96+
".previous" "\n"
9497
);
9598

9699
#elif CPU(ARM64)
@@ -102,6 +105,7 @@ asm (
102105

103106
"mov x0, sp" "\n"
104107
"ret" "\n"
108+
".previous" "\n"
105109
);
106110

107111
#elif CPU(ARM_THUMB2)
@@ -115,6 +119,7 @@ asm (
115119

116120
"mov r0, sp" "\n"
117121
"bx lr" "\n"
122+
".previous" "\n"
118123
);
119124

120125
#elif CPU(MIPS)
@@ -130,6 +135,7 @@ asm (
130135
"jr $ra" "\n"
131136
"nop" "\n"
132137
".set pop" "\n"
138+
".previous" "\n"
133139
);
134140

135141
#elif CPU(RISCV64)
@@ -140,7 +146,8 @@ asm (
140146

141147
"mv x10, sp" "\n"
142148
"ret" "\n"
143-
);
149+
".previous" "\n"
150+
);
144151

145152
#elif CPU(LOONGARCH64)
146153
asm (
@@ -150,7 +157,8 @@ asm (
150157

151158
"move $r4, $r3" "\n"
152159
"jr $r1" "\n"
153-
);
160+
".previous" "\n"
161+
);
154162

155163
#else
156164
#error "Unsupported platform: need implementation of currentStackPointer."

0 commit comments

Comments
 (0)