mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/obj: convert fields of LSym from uint8 to bool
No performance regression measurable: name old time/op new time/op delta Template 432ms ± 3% 422ms ± 2% -2.34% (p=0.010 n=10+9) GoTypes 1.46s ± 1% 1.46s ± 1% ~ (p=0.796 n=10+10) Compiler 7.15s ± 1% 7.14s ± 1% ~ (p=0.447 n=10+9) Change-Id: I21b93cb989017b6fec2215de2423d87f25cf538c Reviewed-on: https://go-review.googlesource.com/21220 Reviewed-by: David Crawshaw <crawshaw@golang.org> Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
8eec2bbfbc
commit
2326c24cc7
8 changed files with 54 additions and 42 deletions
|
|
@ -309,12 +309,12 @@ type LSym struct {
|
|||
Name string
|
||||
Type int16
|
||||
Version int16
|
||||
Dupok uint8
|
||||
Cfunc uint8
|
||||
Nosplit uint8
|
||||
Leaf uint8
|
||||
Seenglobl uint8
|
||||
Onlist uint8
|
||||
Dupok bool
|
||||
Cfunc bool
|
||||
Nosplit bool
|
||||
Leaf bool
|
||||
Seenglobl bool
|
||||
Onlist bool
|
||||
|
||||
// ReflectMethod means the function may call reflect.Type.Method or
|
||||
// reflect.Type.MethodByName. Matching is imprecise (as reflect.Type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue