]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: always use the compile queue
authorMatthew Dempsky <mdempsky@google.com>
Tue, 12 Jan 2021 19:38:32 +0000 (11:38 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 12 Jan 2021 23:22:04 +0000 (23:22 +0000)
commitcc90e7a51e15659ea1a1eb53ca08361b6a77696a
tree2103231742aab67a2be2351ee0f4d8189ada3abe
parentcd5b74d2dfe6009d55c86e90f6c204e58c229c16
[dev.regabi] cmd/compile: always use the compile queue

The compiler currently has two modes for compilation: one where it
compiles each function as it sees them, and another where it enqueues
them all into a work queue. A subsequent CL is going to reorder
function compilation to ensure that functions are always compiled
before any non-trivial function literals they enclose, and this will
be easier if we always use the compile work queue.

Also, fewer compilation modes makes things simpler to reason about.

Change-Id: Ie090e81f7476c49486296f2b90911fa0a466a5dd
Reviewed-on: https://go-review.googlesource.com/c/go/+/283313
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/base/debug.go
src/cmd/compile/internal/gc/compile.go
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/obj.go
src/cmd/compile/internal/liveness/plive.go
test/fixedbugs/issue20250.go