diff options
Diffstat (limited to 'src/pkg/runtime/mgc0.h')
-rw-r--r-- | src/pkg/runtime/mgc0.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/runtime/mgc0.h b/src/pkg/runtime/mgc0.h index 87b604a36..d14fb37c2 100644 --- a/src/pkg/runtime/mgc0.h +++ b/src/pkg/runtime/mgc0.h @@ -16,6 +16,9 @@ // len Length of an array // elemsize Size (in bytes) of an element // size Size (in bytes) +// +// NOTE: There is a copy of these in ../reflect/type.go. +// They must be kept in sync. enum { GC_END, // End of object, loop or subroutine. Args: none GC_PTR, // A typed pointer. Args: (off, objgc) @@ -24,6 +27,7 @@ enum { GC_ARRAY_NEXT, // The next element of an array. Args: none GC_CALL, // Call a subroutine. Args: (off, objgcrel) GC_MAP_PTR, // Go map. Args: (off, MapType*) + GC_CHAN_PTR, // Go channel. Args: (off, ChanType*) GC_STRING, // Go string. Args: (off) GC_EFACE, // interface{}. Args: (off) GC_IFACE, // interface{...}. Args: (off) |