]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add package height to export data
authorMatthew Dempsky <mdempsky@google.com>
Thu, 5 Apr 2018 21:29:32 +0000 (14:29 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 9 Apr 2018 23:36:46 +0000 (23:36 +0000)
commit07029254a0f8991fb93f0838e469d2fcff514e0f
treedf04a9a829dff02e2da0509d1b31d647f2c65b1a
parentfe77a5413e64049af456b14ae911102681bee006
cmd/compile: add package height to export data

A package's height is defined as the length of the longest import path
between itself and a leaf package (i.e., package with no imports).

We can't rely on knowing the path of the package being compiled, so
package height is useful for defining a package ordering.

Updates #24693.

Change-Id: I965162c440b6c5397db91b621ea0be7fa63881f1
Reviewed-on: https://go-review.googlesource.com/105038
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/bexport.go
src/cmd/compile/internal/gc/bimport.go
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/noder.go
src/cmd/compile/internal/types/pkg.go
src/go/internal/gcimporter/bimport.go