]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: introduce OMETHEXPR instead of overloading ONAME
authorRuss Cox <rsc@golang.org>
Wed, 18 Nov 2020 16:25:29 +0000 (11:25 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 24 Nov 2020 20:58:29 +0000 (20:58 +0000)
commitee6132a698172a063ad2aa5b8d603f589c16e019
tree59b715d2887891f95b9eb79b47ac207ecc75bc64
parent4f9d54e41d80f06b8806bcbb23c015572b78d9fc
[dev.regabi] cmd/compile: introduce OMETHEXPR instead of overloading ONAME

A method expression today is an ONAME that has none of the
invariants or properties of other ONAMEs and is always a special case
(hence the Node.IsMethodExpression method).
Remove the special cases by making a separate Op.

Passes toolstash -cmp.

Change-Id: I7667693c9155d5486a6924dbf75ebb59891c4afc
Reviewed-on: https://go-review.googlesource.com/c/go/+/272867
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/escape.go
src/cmd/compile/internal/gc/fmt.go
src/cmd/compile/internal/gc/iexport.go
src/cmd/compile/internal/gc/initorder.go
src/cmd/compile/internal/gc/inl.go
src/cmd/compile/internal/gc/scc.go
src/cmd/compile/internal/gc/sinit.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/syntax.go
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/gc/walk.go