]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: compare type descriptors for interface satisfaction analysis
authorCherry Zhang <cherryyz@google.com>
Wed, 3 Jun 2020 17:28:18 +0000 (13:28 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 4 Jun 2020 18:53:03 +0000 (18:53 +0000)
commite4d6bfdbdf6037326633a7826293c848dc0d4228
treec25d826b0613afce4884c49c91d8f314dd8123fe
parent7bc3b6e5e4b6061ebfa267fcb27731ac94ae7f4d
[dev.link] cmd/link: compare type descriptors for interface satisfaction analysis

Currently, in the deadcode pass, when checking whether a defined
method satisfies an interface, it compares the string
representation of the defined method and the interface method.
In fact, it can simply compare the method name and the type
descriptor (as we do in runtime). Make it so.

Change-Id: Ideb2b2410e5eedcd20ac31e3af41f5499fc90225
Reviewed-on: https://go-review.googlesource.com/c/go/+/236564
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/deadcode.go
src/cmd/link/internal/ld/decodesym.go