]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: test register ABI for method, interface, closure calls
authorDavid Chase <drchase@google.com>
Fri, 5 Mar 2021 19:24:41 +0000 (14:24 -0500)
committerDavid Chase <drchase@google.com>
Fri, 12 Mar 2021 21:18:15 +0000 (21:18 +0000)
commit7240a18adbfcff5cfe750a1fa4af0fd42ade4381
treecadceff330a0668aea23d23aad0a6667435e0b8f
parentcdd08e615a9b92742b21a94443720b6d70452510
cmd/compile: test register ABI for method, interface, closure calls

This is enabled with a ridiculous magic name for method,
or for last input type passed, that needs to be changed
to something inutterable before actual release.

Ridiculous method name: MagicMethodNameForTestingRegisterABI
Ridiculous last (input) type name: MagicLastTypeNameForTestingRegisterABI

RLTN is tested with strings.Contains, so you can have
MagicLastTypeNameForTestingRegisterABI1
and
MagicLastTypeNameForTestingRegisterABI2
if that is helpful

Includes test test/abi/fibish2.go

Updates #44816.

Change-Id: I592a6edc71ca9bebdd1d00e24edee1ceebb3e43f
Reviewed-on: https://go-review.googlesource.com/c/go/+/299410
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
12 files changed:
src/cmd/compile/internal/ssa/expand_calls.go
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/genericOps.go
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssagen/ssa.go
test/abi/fibish2.go [new file with mode: 0644]
test/abi/fibish2.out [new file with mode: 0644]
test/abi/fibish_closure.go [new file with mode: 0644]
test/abi/fibish_closure.out [new file with mode: 0644]
test/abi/methods.go [new file with mode: 0644]
test/abi/methods.out [new file with mode: 0644]