ssa: closure use specific struct field name { $f ftype, $data unsafe.pointer }

This commit is contained in:
visualfc
2024-12-21 21:37:46 +08:00
parent 070d64f365
commit a6a3c09c05
14 changed files with 238 additions and 190 deletions

View File

@@ -486,10 +486,6 @@ func isDirectIface(t *_type) bool {
return t.Kind_&abi.KindDirectIface != 0
}
func SetClosure(t *abi.Type) {
t.TFlag |= abi.TFlagClosure
}
func interfaceStr(ft *abi.InterfaceType) string {
repr := make([]byte, 0, 64)
repr = append(repr, "interface {"...)