]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: add derived-type dictionaries to unified IR
authorMatthew Dempsky <mdempsky@google.com>
Tue, 29 Jun 2021 05:41:50 +0000 (22:41 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 30 Jun 2021 04:31:37 +0000 (04:31 +0000)
commitf503740ccf6302ed13c7722ea50c6880a17703fb
tree30f68c9fb92446cf5998aaba96895b21155006fb
parent6a5f7e8498b7cd53bb5461fbf777aa83aea067a8
[dev.typeparams] cmd/compile: add derived-type dictionaries to unified IR

This CL updates the unified IR export data serialization to explicitly
and separately record the derived types used by a declaration. The
readers currently just use this data to construct types/IR the same as
before, but eventually we can use it for emitting GC-shape
dictionaries.

Change-Id: I7d67ad9b3f1fbe69664bf19e056bc94f73507220
Reviewed-on: https://go-review.googlesource.com/c/go/+/331829
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Trust: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/noder/linker.go
src/cmd/compile/internal/noder/reader.go
src/cmd/compile/internal/noder/reader2.go
src/cmd/compile/internal/noder/reloc.go
src/cmd/compile/internal/noder/unified.go
src/cmd/compile/internal/noder/writer.go