]> Cypherpunks.ru repositories - gostls13.git/commit
reflect, runtime: drop RegabiArgs conditions
authorCherry Mui <cherryyz@google.com>
Wed, 16 Mar 2022 16:12:50 +0000 (12:12 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 18 Mar 2022 15:17:37 +0000 (15:17 +0000)
commitd8bee94be2fc2afa6418f0bf2d474c103d38c094
treeb13ecfa8100041787c4af29768cd272c9fc514ab
parent3684abbf6c82d7f151a30cce6f435ee203908b2c
reflect, runtime: drop RegabiArgs conditions

With the previous CL, internal/abi.IntArgRegs and FloatArgRegs
is controlled by RegabiArgs (or always enabled), so there is no
need to check for that goexperiment.

There are a few places we guard register-ABI specific code and
tests with the RegabiArgs flag. Switch to checking for the number
of argument registers instead.

Change-Id: I79fff9fd1e919684ffaf73aba9e7e85d5a9e1629
Reviewed-on: https://go-review.googlesource.com/c/go/+/393363
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/reflect/abi.go
src/runtime/debug_test.go
src/runtime/stubs.go
src/runtime/traceback_test.go