]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: functions to create GC shape types/names for a concrete...
authorDan Scales <danscales@google.com>
Tue, 22 Jun 2021 00:04:59 +0000 (17:04 -0700)
committerDan Scales <danscales@google.com>
Wed, 30 Jun 2021 20:51:17 +0000 (20:51 +0000)
commit8767b87ab54acca33c487ee46e237049b663b1c4
tree8b25b008df580260dc1d2fe3509e6b32b33c9f7e
parentb47cbc2ffec163f30690613b3a9c3f7f108cd512
[dev.typeparams] cmd/compile: functions to create GC shape types/names for a concrete type

Created functions to create GC shape type and names, based on a proposal
from Keith. Kept unsigned and signed integer types as different, since
they have different shift operations.

Included adding in alignment fields where padding is
required between fields, even though that seems like it will be fairly
uncommon to use.

Added some extra unusual struct typeparams (for testing the gcshape
names/types) in index.go test.

Change-Id: I8132bbd28098bd933435b8972ac5cc0b39f4c0df
Reviewed-on: https://go-review.googlesource.com/c/go/+/329921
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/noder/stencil.go
test/typeparam/index.go