@@ -219,21 +219,21 @@ func (g *groupsReference) group(typ *swissMapType, i uint64) groupReference {
219219 }
220220}
221221
222- type TFlag uint8
223- type Kind uint8
224- type NameOff int32
225- type TypeOff int32
226- type TextOff int32
222+ type abiTFlag uint8
223+ type abiKind uint8
224+ type abiNameOff int32
225+ type abiTypeOff int32
226+ type abiTextOff int32
227227
228228// src/internal/abi/type.go:Type
229229type abiType struct {
230230 Size_ uintptr
231- PtrBytes uintptr // number of (prefix) bytes in the type that can contain pointers
232- Hash uint32 // hash of type; avoids computation in hash tables
233- TFlag TFlag // extra type information flags
234- Align_ uint8 // alignment of variable with this type
235- FieldAlign_ uint8 // alignment of struct field with this type
236- Kind_ Kind // enumeration for C
231+ PtrBytes uintptr // number of (prefix) bytes in the type that can contain pointers
232+ Hash uint32 // hash of type; avoids computation in hash tables
233+ TFlag abiTFlag // extra type information flags
234+ Align_ uint8 // alignment of variable with this type
235+ FieldAlign_ uint8 // alignment of struct field with this type
236+ Kind_ abiKind // enumeration for C
237237 // function for comparing objects of this type
238238 // (ptr to object A, ptr to object B) -> ==?
239239 Equal func (unsafe.Pointer , unsafe.Pointer ) bool
@@ -249,8 +249,8 @@ type abiType struct {
249249 // including when TFlagGCMaskOnDemand is set. The types will, of course,
250250 // have the same pointer layout (but not necessarily the same size).
251251 GCData * byte
252- Str NameOff // string form
253- PtrToThis TypeOff // type for pointer to this type, may be zero
252+ Str abiNameOff // string form
253+ PtrToThis abiTypeOff // type for pointer to this type, may be zero
254254}
255255
256256// src/internal/abi/map_swiss.go:SwissMapType
@@ -285,6 +285,7 @@ const (
285285)
286286
287287func (g * groupReference ) cap (typ * swissMapType ) uint64 {
288+ _ = g
288289 return groupCap (uint64 (typ .GroupSize ), uint64 (typ .SlotSize ))
289290}
290291
0 commit comments