mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/obj: eagerly initialize assemblers
CL 38662 changed the x86 assembler to be eagerly initialized, for a concurrent backend. This CL puts in place a proper mechanism for doing so, and switches all architectures to use it. Passes toolstash-check -all. Updates #15756 Change-Id: Id2aa527d3a8259c95797d63a2f0d1123e3ca2a1c Reviewed-on: https://go-review.googlesource.com/39917 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
817c1023b0
commit
63c1aff60b
19 changed files with 64 additions and 17 deletions
|
|
@ -1234,6 +1234,7 @@ var unaryDst = map[obj.As]bool{
|
|||
|
||||
var Linkamd64 = obj.LinkArch{
|
||||
Arch: sys.ArchAMD64,
|
||||
Init: instinit,
|
||||
Preprocess: preprocess,
|
||||
Assemble: span6,
|
||||
Progedit: progedit,
|
||||
|
|
@ -1242,6 +1243,7 @@ var Linkamd64 = obj.LinkArch{
|
|||
|
||||
var Linkamd64p32 = obj.LinkArch{
|
||||
Arch: sys.ArchAMD64P32,
|
||||
Init: instinit,
|
||||
Preprocess: preprocess,
|
||||
Assemble: span6,
|
||||
Progedit: progedit,
|
||||
|
|
@ -1250,6 +1252,7 @@ var Linkamd64p32 = obj.LinkArch{
|
|||
|
||||
var Link386 = obj.LinkArch{
|
||||
Arch: sys.Arch386,
|
||||
Init: instinit,
|
||||
Preprocess: preprocess,
|
||||
Assemble: span6,
|
||||
Progedit: progedit,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue