]> Cypherpunks repositories - gostls13.git/commit
cmd/compile,runtime: pass elem type to {make,grow}slice
authorKeith Randall <khr@golang.org>
Tue, 19 Apr 2016 22:38:59 +0000 (15:38 -0700)
committerKeith Randall <khr@golang.org>
Wed, 20 Apr 2016 00:31:16 +0000 (00:31 +0000)
commitbfe0cbdc50cbc6a632d1e5ebbdcc625d69451935
tree597404c76de12818dc778adac839aa11aeff8b95
parent0150f15a924a7b4ac0c794012f6b12c8aa406b54
cmd/compile,runtime: pass elem type to {make,grow}slice

No point in passing the slice type to these functions.
All they need is the element type.  One less indirection,
maybe a few less []T type descriptors in the binary.

Change-Id: Ib0b83b5f14ca21d995ecc199ce8ac00c4eb375e6
Reviewed-on: https://go-review.googlesource.com/22275
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/cgen.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/walk.go
src/runtime/slice.go