Skip to content

Commit f94c785

Browse files
committed
Align ARM64 assembly to 4-bytes multiple addresses.
1 parent 62e6116 commit f94c785

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

JavaScriptCore/llint/LowLevelInterpreter.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,13 @@ JSValue CLoop::execute(CallFrame* callFrame, Opcode entryOpcode, bool isInitiali
536536
".thumb\n" \
537537
".thumb_func " THUMB_FUNC_PARAM(label) "\n" \
538538
SYMBOL_STRING(label) ":\n"
539+
#elif CPU(ARM64)
540+
#define OFFLINE_ASM_GLOBAL_LABEL(label) \
541+
".text\n" \
542+
".align 4\n" \
543+
".globl " SYMBOL_STRING(label) "\n" \
544+
HIDE_SYMBOL(label) "\n" \
545+
SYMBOL_STRING(label) ":\n"
539546
#else
540547
#define OFFLINE_ASM_GLOBAL_LABEL(label) \
541548
".text\n" \

0 commit comments

Comments
 (0)