]> Cypherpunks repositories - gostls13.git/commit
runtime: use register ABI in panicIndex/Slice functions
authorCherry Zhang <cherryyz@google.com>
Thu, 8 Apr 2021 16:13:58 +0000 (12:13 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 8 Apr 2021 18:47:17 +0000 (18:47 +0000)
commit96a67450887314cedbd9e8634ad92b76a0443779
tree5a5f82503e7bf0a2491477a9244b5ffd1f7654e6
parentca8540affd43580772589263951fd01e04f6ad07
runtime: use register ABI in panicIndex/Slice functions

runtime.panicIndex*/panicSlice* functions move the arguments in
the right place then tail calls goPanicIndex*/Slice* using
internal ABI. (It uses internal ABI to avoid wrappers, because
the callee needs to get the caller's PC, to know whether it panics
in the runtime.) This CL makes it to use the register ABI if it
is enabled.

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