]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/reflectdata: share hmap and hiter types
authorMatthew Dempsky <mdempsky@google.com>
Mon, 21 Aug 2023 18:26:15 +0000 (11:26 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 21 Aug 2023 23:29:33 +0000 (23:29 +0000)
commit42f4ccb6f9c2f64f3ebe684c6bc81a6f286dd164
treeb549d6b36204fcffa0fab5b07fcf96ef8e5958ab
parentba6fe5172d5dbd604ef6f535ce54fc70f0c0d1d5
cmd/compile/internal/reflectdata: share hmap and hiter types

There's no need for distinct hmap and hiter types for each map.

Shaves 9kB off cmd/go binary size.

Change-Id: I7bc3b2d8ec82e7fcd78c1cb17733ebd8b615990a
Reviewed-on: https://go-review.googlesource.com/c/go/+/521615
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
12 files changed:
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/typecheck/subr.go
src/cmd/compile/internal/types/fmt.go
src/cmd/compile/internal/types/sizeof_test.go
src/cmd/compile/internal/types/type.go
src/cmd/compile/internal/walk/builtin.go
src/cmd/compile/internal/walk/order.go
src/cmd/compile/internal/walk/range.go
test/live.go
test/live2.go
test/live_regabi.go