]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: move Node.Walkdef into flags
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 26 Apr 2017 00:30:08 +0000 (17:30 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 26 Apr 2017 00:43:48 +0000 (00:43 +0000)
commitd2863996416fed7f90bdc4b76249f8c62d065bd0
tree13f530ff1793f966a722552a6b3da66e517eaabf
parent804784c8ba34d3951ae9993ba569aaa518902f60
cmd/compile: move Node.Walkdef into flags

Node.Walkdef is 0, 1, or 2, so it only requires two bits.
Add support for 2-bit values to bitset,
and use it for Node.Walkdef.

Class, Embedded, Typecheck, and Initorder will follow suit
in subsequent CLs.

The multi-bit flags will go at the beginning,
since that generates (marginally) more efficient code.

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