]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] cmd/compile: write RTTI into unified IR export data
authorMatthew Dempsky <mdempsky@google.com>
Sat, 23 Jul 2022 06:33:30 +0000 (23:33 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 28 Jul 2022 07:13:28 +0000 (07:13 +0000)
commit9b70178d58060764cbaedf3d4542bd67f9aafede
treed5ff314135b507a20b29028459f23bd576a296db
parentfc72b7705d67f432fb6a570f84df9e8840eec226
[dev.unified] cmd/compile: write RTTI into unified IR export data

This CL adds `rtype` methods for unified IR for writing/reading types
that need to have their *runtime._type value available.

For now, this just builds on the existing type writing/reading
mechanics and calling reflectdata.TypePtrAt; but longer term, reading
of derived types can be changed to use dictionary lookups instead.

Change-Id: I6f803b84546fa7df2877a8a3bcbf2623e4b03449
Reviewed-on: https://go-review.googlesource.com/c/go/+/419456
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/noder/reader.go
src/cmd/compile/internal/noder/writer.go
src/internal/pkgbits/sync.go