mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
internal/abi: refactor (basic) type struct into one definition
This touches a lot of files, which is bad, but it is also good, since there's N copies of this information commoned into 1. The new files in internal/abi are copied from the end of the stack; ultimately this will all end up being used. Change-Id: Ia252c0055aaa72ca569411ef9f9e96e3d610889e Reviewed-on: https://go-review.googlesource.com/c/go/+/462995 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org> Run-TryBot: David Chase <drchase@google.com> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
dace96b9a1
commit
bdc6ae579a
46 changed files with 1479 additions and 711 deletions
|
|
@ -277,7 +277,7 @@ func (l *dlogger) p(x any) *dlogger {
|
|||
l.w.uvarint(0)
|
||||
} else {
|
||||
v := efaceOf(&x)
|
||||
switch v._type.kind & kindMask {
|
||||
switch v._type.Kind_ & kindMask {
|
||||
case kindChan, kindFunc, kindMap, kindPtr, kindUnsafePointer:
|
||||
l.w.uvarint(uint64(uintptr(v.data)))
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue