]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: move stringtoslicebytetmp to the backend
authorMartin Möhrmann <martisch@uos.de>
Thu, 27 Oct 2016 21:31:38 +0000 (23:31 +0200)
committerMartin Möhrmann <martisch@uos.de>
Fri, 28 Oct 2016 07:58:47 +0000 (07:58 +0000)
commitb679665a182bd6ec2989ae759df6b11142921cfb
tree95a7d3f23fb430c9cdcfe803c4feb648c1253987
parentf595848e9a1e1d0f64a7018d847167d85f6e83a4
cmd/compile: move stringtoslicebytetmp to the backend

- removes the runtime function stringtoslicebytetmp
- removes the generation of calls to stringtoslicebytetmp from the frontend
- adds handling of OSTRARRAYBYTETMP in the backend

This reduces binary sizes and avoids function call overhead.

Change-Id: Ib9988d48549cee663b685b4897a483f94727b940
Reviewed-on: https://go-review.googlesource.com/32158
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Martin Möhrmann <martisch@uos.de>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/builtin.go
src/cmd/compile/internal/gc/builtin/runtime.go
src/cmd/compile/internal/gc/racewalk.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/walk.go
src/runtime/string.go
test/range.go