]> Cypherpunks repositories - gostls13.git/commit
runtime: clean up runtime.call* frame sizes on ARM64
authorAustin Clements <austin@google.com>
Mon, 5 Oct 2020 16:17:30 +0000 (12:17 -0400)
committerAustin Clements <austin@google.com>
Mon, 5 Oct 2020 17:03:05 +0000 (17:03 +0000)
commita517c3422e808ae51533a0700e05d59e8a799136
treea28298e563f4d394aeb5ea2b3cef5b6c3db30e71
parent40bff82885b8de850f909f38357c53670562f815
runtime: clean up runtime.call* frame sizes on ARM64

ARM64 used to require that all assembly frame sizes were of the form
16*N+8 because ARM64 requires 16-byte SP alignment and the assembler
added an 8 byte LR slot. This made all of the runtime.call* frame
sizes wonky. The assembler now rounds up the frame size appropriately
after adding any additional slots it needs, so this is no longer
necessary.

This CL cleans up the frame sizes of these functions so they look the
way you'd expect and match all other architectures.

Change-Id: I47819092296b8983c43eadf2e66c7c1e0d518555
Reviewed-on: https://go-review.googlesource.com/c/go/+/259448
Trust: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/asm_arm64.s