1. 11 Apr, 2018 14 commits
  2. 10 Apr, 2018 23 commits
  3. 09 Apr, 2018 3 commits
    • Matthew Dempsky's avatar
      cmd/compile: add package height to export data · 07029254
      Matthew Dempsky authored
      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: default avatarRobert Griesemer <gri@golang.org>
      07029254
    • Matthew Dempsky's avatar
      cmd/compile: fix constant pointer comparison failure · fe77a541
      Matthew Dempsky authored
      Previously, constant pointer-typed expressions could use either Mpint
      or NilVal as their Val depending on their construction, but const.go
      expects each type to have a single corresponding Val kind.
      
      This CL changes pointer-typed expressions to exclusively use Mpint.
      
      Fixes #21221.
      
      Change-Id: I6ba36c9b11eb19a68306f0b296acb11a8c254c41
      Reviewed-on: https://go-review.googlesource.com/105315
      Run-TryBot: Matthew Dempsky <mdempsky@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
      fe77a541
    • Matthew Dempsky's avatar
      cmd/compile: refactor symbol sorting logic · c3473c4f
      Matthew Dempsky authored
      This used to be duplicated in methcmp and siglt, because Sig used its
      own representation for Syms. Instead, just use Syms, and add a
      (*Sym).Less method that both methcmp and siglt can use.
      
      Also, prune some impossible cases purportedly related to blank
      methods: the Go spec disallows blank methods in interface method sets,
      and addmethod drops blank methods without actually recording them in
      the type's method set.
      
      Passes toolstash-check.
      
      Updates #24693.
      
      Change-Id: I24e981659b68504d71518160486989a82505f513
      Reviewed-on: https://go-review.googlesource.com/105936Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Matthew Dempsky <mdempsky@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      c3473c4f