]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add newnamel, use in tempAt
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 31 Mar 2017 18:10:01 +0000 (11:10 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 31 Mar 2017 20:05:20 +0000 (20:05 +0000)
commit3d90378df5bb97ecadf4a4436fbbf2ca6746a99f
tree167547af651abadc5fcab8e3f104d0979ed12dce
parent4927b9a9ffeb5e33f6586b0f9000387d8ea20730
cmd/compile: add newnamel, use in tempAt

newnamel is newname but with no dependency on lineno or Curfn.
This makes it suitable for use in a concurrent back end.
Use it now to make tempAt global-free.

The decision to push the assignment to n.Name.Curfn
to the caller of newnamel is based on mdempsky's
comments in #19683 that he'd like to do that
for callers of newname as well.

Passes toolstash-check. No compiler performance impact.

Updates #19683
Updates #15756

Change-Id: Idc461a1716916d268c9ff323129830d9a6e4a4d9
Reviewed-on: https://go-review.googlesource.com/39191
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/gen.go
src/cmd/compile/internal/gc/subr.go