mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd: remove IntSize and Widthint
Use PtrSize and Widthptr instead. CL prepared mostly with sed and uniq. Passes toolstash-check -all. Fixes #19954. Change-Id: I09371bd7128672885cb8bc4e7f534ad56a88d755 Reviewed-on: https://go-review.googlesource.com/40506 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Martin Möhrmann <moehrmann@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
8a07469663
commit
c87520c598
16 changed files with 58 additions and 80 deletions
|
|
@ -333,9 +333,9 @@ func staticcopy(l *Node, r *Node, out *[]*Node) bool {
|
|||
n.Xoffset = l.Xoffset + int64(array_array)
|
||||
gdata(&n, nod(OADDR, a, nil), Widthptr)
|
||||
n.Xoffset = l.Xoffset + int64(array_nel)
|
||||
gdata(&n, r.Right, Widthint)
|
||||
gdata(&n, r.Right, Widthptr)
|
||||
n.Xoffset = l.Xoffset + int64(array_cap)
|
||||
gdata(&n, r.Right, Widthint)
|
||||
gdata(&n, r.Right, Widthptr)
|
||||
return true
|
||||
|
||||
case OARRAYLIT, OSTRUCTLIT:
|
||||
|
|
@ -434,9 +434,9 @@ func staticassign(l *Node, r *Node, out *[]*Node) bool {
|
|||
n.Xoffset = l.Xoffset + int64(array_array)
|
||||
gdata(&n, nod(OADDR, a, nil), Widthptr)
|
||||
n.Xoffset = l.Xoffset + int64(array_nel)
|
||||
gdata(&n, r.Right, Widthint)
|
||||
gdata(&n, r.Right, Widthptr)
|
||||
n.Xoffset = l.Xoffset + int64(array_cap)
|
||||
gdata(&n, r.Right, Widthint)
|
||||
gdata(&n, r.Right, Widthptr)
|
||||
|
||||
// Fall through to init underlying array.
|
||||
l = a
|
||||
|
|
@ -797,9 +797,9 @@ func slicelit(ctxt initContext, n *Node, var_ *Node, init *Nodes) {
|
|||
nam.Xoffset += int64(array_array)
|
||||
gdata(&nam, nod(OADDR, vstat, nil), Widthptr)
|
||||
nam.Xoffset += int64(array_nel) - int64(array_array)
|
||||
gdata(&nam, &v, Widthint)
|
||||
gdata(&nam, &v, Widthptr)
|
||||
nam.Xoffset += int64(array_cap) - int64(array_nel)
|
||||
gdata(&nam, &v, Widthint)
|
||||
gdata(&nam, &v, Widthptr)
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue