]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: hide NodeList details in evconst
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 10 Jun 2015 01:37:26 +0000 (18:37 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 6 Mar 2016 16:12:33 +0000 (16:12 +0000)
commit6bd63ca3468290003609ba3244f2aa3bede4e36a
treec742d9abae9d48f5534f8d5694d8ae4d79cc5875
parent1d40e2b14b67f74681d71255ae833c6748d47b3f
cmd/compile: hide NodeList details in evconst

The new code is a bit less efficient,
but it does not involve altering the structure
of any linked lists.
This will make it easier to replace NodeLists
with Node slices.
We can return to a more efficient algorithm
when NodeLists have been replaced.

Passes toolstash -cmp.

Change-Id: I0bb5ee75e7c0646e6d37fe558c8f0548729d8aa1
Reviewed-on: https://go-review.googlesource.com/20277
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/const.go