]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] runtime: update ABIInternal assembly with register ABI on ARM64
authorCherry Mui <cherryyz@google.com>
Sat, 29 May 2021 01:56:50 +0000 (21:56 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 2 Jun 2021 16:52:10 +0000 (16:52 +0000)
commitaa9cfdf775692a9fa6cc4ea9768415d73323c0cc
tree8eeea1341d640e79634f16cfdc9840b456fd273b
parent0c123cdf8ba88991e51fdb3523fdc7df03cf3118
[dev.typeparams] runtime: update ABIInternal assembly with register ABI on ARM64

mcall calls a closure (using ABIInternal) with an argument.
Update it to pass the argument in register.

Panic functions tail-call Go panic functions using ABIInternal.
Update them to pass the arguments in registers.

Race functions are called using ABIInternal from compiler-
instrumented code. Update them to receive the arguments in
registers.

Now all.bash passes with GOEXPERIMENT=regabi on ARM64 (at least on
macOS).

Change-Id: I648f6502c7eeb1422330c6c829181f12e08c7d0e
Reviewed-on: https://go-review.googlesource.com/c/go/+/323937
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/asm_arm64.s
src/runtime/race_arm64.s