]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] runtime: use internal/abi.FuncPCABI0 to take address of assembly...
authorCherry Mui <cherryyz@google.com>
Thu, 20 May 2021 22:55:47 +0000 (18:55 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 21 May 2021 21:52:38 +0000 (21:52 +0000)
commitfb42fb705df4832a76165f9a36f3a8d5d7ca8f49
treea76a3165314395e42aa19f25eb720323f568e843
parent21db1d193cc3d830e1a7d53a04271631ce1198cd
[dev.typeparams] runtime: use internal/abi.FuncPCABI0 to take address of assembly functions

There are a few assembly functions in the runtime that are marked
as ABIInternal, solely because funcPC can get the right address.
The functions themselves do not actually follow ABIInternal (or
irrelevant). Now we have internal/abi.FuncPCABI0, use that, and
un-mark the functions.

Also un-mark assembly functions that are only called in assembly.
For them, it only matters if the caller and callee are consistent.

Change-Id: I240e126ac13cb362f61ff8482057ee9f53c24097
Reviewed-on: https://go-review.googlesource.com/c/go/+/321950
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>
33 files changed:
src/reflect/asm_amd64.s
src/runtime/asm.s
src/runtime/asm_amd64.s
src/runtime/mkpreempt.go
src/runtime/os3_plan9.go
src/runtime/os_linux.go
src/runtime/os_windows.go
src/runtime/preempt.go
src/runtime/preempt_386.s
src/runtime/preempt_amd64.s
src/runtime/preempt_arm.s
src/runtime/preempt_arm64.s
src/runtime/preempt_mips64x.s
src/runtime/preempt_mipsx.s
src/runtime/preempt_ppc64x.s
src/runtime/preempt_riscv64.s
src/runtime/preempt_s390x.s
src/runtime/preempt_wasm.s
src/runtime/race.go
src/runtime/race_amd64.s
src/runtime/signal_amd64.go
src/runtime/signal_unix.go
src/runtime/signal_windows.go
src/runtime/sys_linux_amd64.s
src/runtime/sys_windows_386.s
src/runtime/sys_windows_amd64.s
src/runtime/sys_windows_arm.s
src/runtime/sys_windows_arm64.s
src/runtime/syscall_windows.go
src/runtime/wincallback.go
src/runtime/zcallback_windows.s
src/runtime/zcallback_windows_arm.s
src/runtime/zcallback_windows_arm64.s