]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use symbolic offsets of fields in internal/abi.ITab
authorKeith Randall <khr@golang.org>
Wed, 13 Dec 2023 21:20:01 +0000 (13:20 -0800)
committerKeith Randall <khr@golang.org>
Fri, 16 Feb 2024 20:25:04 +0000 (20:25 +0000)
commitb138b19d2f7d99c462bf53b0dcc1ee98884630ab
treed182c778fb8a56ecb9f3044584035ca47f4c17d6
parentf2db96cd6ca96adf7717761194811dd07019b78e
cmd/compile: use symbolic offsets of fields in internal/abi.ITab

After this CL, we can reorder or pad internal/abi.ITab fields at will
(keeping Fun last, and updating ITabTypeOff correctly) without
breaking anything.

Change-Id: Ib7bb5828519813e0d1aa36be5092f96fcd62b3be
Reviewed-on: https://go-review.googlesource.com/c/go/+/549516
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/walk/switch.go
src/cmd/compile/internal/walk/walk.go
src/internal/abi/iface.go