mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: track pragmas in lexer rather than global variables
By using a Pragma bit set (8 bits) rather than 8 booleans, also reduce Func type size by 8 bytes (208B -> 200B on 64bit platforms, 116B -> 108B on 32bit platforms). Change-Id: Ibb7e1f8c418a0b5bc6ff813cbdde7bc6f0013b5a Reviewed-on: https://go-review.googlesource.com/19966 Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
parent
071e43a958
commit
3c0fae5306
10 changed files with 50 additions and 67 deletions
|
|
@ -616,23 +616,10 @@ var flag_largemodel int
|
|||
// when the race detector is enabled.
|
||||
var instrumenting bool
|
||||
|
||||
// Pending annotations for next func declaration.
|
||||
var (
|
||||
noescape bool
|
||||
noinline bool
|
||||
norace bool
|
||||
nosplit bool
|
||||
nowritebarrier bool
|
||||
nowritebarrierrec bool
|
||||
systemstack bool
|
||||
)
|
||||
|
||||
var debuglive int
|
||||
|
||||
var Ctxt *obj.Link
|
||||
|
||||
var nointerface bool
|
||||
|
||||
var writearchive int
|
||||
|
||||
var bstdout obj.Biobuf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue