[xray][AArch64] Rewrite trampoline
authorFangrui Song <i@maskray.me>
Tue, 20 Jun 2023 06:02:45 +0000 (23:02 -0700)
committerFangrui Song <i@maskray.me>
Tue, 20 Jun 2023 06:02:45 +0000 (23:02 -0700)
commitf8a4cd0f07e0f16b1a09c6c746cf627fc71f16bd
tree6ebe26088f4cd5085ab81d2ecaf5567faa3f3f86
parenta18b17b1befd833165ec34da581cb83ebab43ace
[xray][AArch64] Rewrite trampoline

Optimize (cmp+beq => cbz), duduplicate code (SAVE_REGISTERS/RESTORE_REGISTERS),
improve portability (use ASM_SYMBOL to be compatible with Mach-O), and fix style
issues.
Also, port D37965 (x86 tail call) to __xray_FunctionTailExit.
compiler-rt/lib/xray/xray_trampoline_AArch64.S