aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2023-09-11 21:13:10 -0700
committerGopher Robot <gobot@golang.org>2023-09-13 18:34:00 +0000
commitc0e2a9dffdb6af116ec5184a680cb3b4e904d0fa (patch)
tree72686b92289cb27e932b9260772441053aac68f7 /src/os/exec/exec.go
parentc80a9f172bbab2b19fa3680c7928fcedf3088e4d (diff)
downloadgo-c0e2a9dffdb6af116ec5184a680cb3b4e904d0fa.tar.xz
cmd/compile/internal/abi: use Type.Registers
Now that types can self-report how many registers they need, it's much easier to determine whether a parameter will fit into the available registers: simply compare the number of registers needed against the number of registers still available. This also eliminates the need for the NumParamRegs cache. Also, the new code in NumParamRegs is stricter in only allowing it to be called on types that can actually be passed in registers, which requires a test to be corrected for that. While here, change mkstruct to a variadic function, so the call sites require less boilerplate. Change-Id: Iebe1a0456a8053a10e551e5da796014e5b1b695b Reviewed-on: https://go-review.googlesource.com/c/go/+/527339 Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Auto-Submit: Matthew Dempsky <mdempsky@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Heschi Kreinick <heschi@google.com>
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions