Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 56 for ITab (0.12 sec)

  1. src/cmd/compile/internal/walk/compare.go

    		//   l.tab == type(r)
    		// For non-empty interface, this is:
    		//   l.tab != nil && l.tab._type == type(r)
    		//
    		// TODO(mdempsky): For non-empty interface comparisons, just
    		// compare against the itab address directly?
    		var eqtype ir.Node
    		tab := ir.NewUnaryExpr(base.Pos, ir.OITAB, l)
    		rtyp := reflectdata.CompareRType(base.Pos, n)
    		if l.Type().IsEmptyInterface() {
    			tab.SetType(types.NewPtr(types.Types[types.TUINT8]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "StringPtr", argLength: 1, typ: "BytePtr"}, // ptr(arg0)
    	{name: "StringLen", argLength: 1, typ: "Int"},     // len(arg0)
    
    	// Interfaces
    	{name: "IMake", argLength: 2},                // arg0=itab, arg1=data
    	{name: "ITab", argLength: 1, typ: "Uintptr"}, // arg0=interface, returns itable field
    	{name: "IData", argLength: 1},                // arg0=interface, returns data field
    
    	// Structs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  3. src/reflect/value.go

    			panic("reflect: " + op + " of unexported method")
    		}
    		iface := (*nonEmptyInterface)(v.ptr)
    		if iface.itab == nil {
    			panic("reflect: " + op + " of method on nil interface value")
    		}
    		rcvrtype = iface.itab.Type
    		fn = unsafe.Pointer(&unsafe.Slice(&iface.itab.Fun[0], i+1)[i])
    		t = (*funcType)(unsafe.Pointer(tt.typeOff(m.Typ)))
    	} else {
    		rcvrtype = v.typ()
    		ms := v.typ().ExportedMethods()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/order.go

    			r := r.(*ir.TypeAssertExpr)
    			r.X = o.expr(r.X, nil)
    		case ir.ODYNAMICDOTTYPE2:
    			r := r.(*ir.DynamicTypeAssertExpr)
    			r.X = o.expr(r.X, nil)
    			r.RType = o.expr(r.RType, nil)
    			r.ITab = o.expr(r.ITab, nil)
    		case ir.ORECV:
    			r := r.(*ir.UnaryExpr)
    			r.X = o.expr(r.X, nil)
    		case ir.OINDEXMAP:
    			r := r.(*ir.IndexExpr)
    			r.X = o.expr(r.X, nil)
    			r.Index = o.expr(r.Index, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/func.go

    	n := name.N
    	u := types.Types[types.TUINTPTR]
    	t := types.NewPtr(types.Types[types.TUINT8])
    	// Split this interface up into two separate variables.
    	sfx := ".itab"
    	if n.Type().IsEmptyInterface() {
    		sfx = ".type"
    	}
    	c := f.SplitSlot(name, sfx, 0, u) // see comment in typebits.Set
    	d := f.SplitSlot(name, ".data", u.Size(), t)
    	return c, d
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewrite.go

    				// might be dead.
    				reflectdata.MarkTypeSymUsedInInterface(r.Sym, f.fe.Func().Linksym())
    			} else if strings.HasPrefix(r.Sym.Name, "go:itab") {
    				// Same, but if we're using an itab we need to record that the
    				// itab._type might be put in an interface.
    				reflectdata.MarkTypeSymUsedInInterface(r.Sym, f.fe.Func().Linksym())
    			}
    			return r.Sym
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  7. src/runtime/symtab.go

    	types, etypes         uintptr
    	rodata                uintptr
    	gofunc                uintptr // go.func.*
    
    	textsectmap []textsect
    	typelinks   []int32 // offsets from types
    	itablinks   []*itab
    
    	ptab []ptabEntry
    
    	pluginpath string
    	pkghashes  []modulehash
    
    	// This slice records the initializing tasks that need to be
    	// done to start up the program. It is built by the linker.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/dwarf_test.go

    		"internal/abi.MapType":       true,
    		"internal/abi.PtrType":       true,
    		"internal/abi.SliceType":     true,
    		"internal/abi.StructType":    true,
    		"internal/abi.InterfaceType": true,
    		"internal/abi.ITab":          true,
    	}
    
    	found := findTypes(t, dwarf, want)
    	if len(found) != len(want) {
    		t.Errorf("found %v, want %v", found, want)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/liveness/plive.go

    		types.TCHAN,
    		types.TMAP:
    		clobberPtr(b, v, offset)
    
    	case types.TSTRING:
    		// struct { byte *str; int len; }
    		clobberPtr(b, v, offset)
    
    	case types.TINTER:
    		// struct { Itab *tab; void *data; }
    		// or, when isnilinter(t)==true:
    		// struct { Type *type; void *data; }
    		clobberPtr(b, v, offset)
    		clobberPtr(b, v, offset+int64(types.PtrSize))
    
    	case types.TSLICE:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/dwarf.go

    		"type:internal/abi.MapType",
    		"type:internal/abi.PtrType",
    		"type:internal/abi.SliceType",
    		"type:internal/abi.StructType",
    		"type:internal/abi.InterfaceType",
    		"type:internal/abi.ITab",
    		"type:internal/abi.Imethod"} {
    		d.defgotype(d.lookupOrDiag(typ))
    	}
    
    	// fake root DIE for compile unit DIEs
    	var dwroot dwarf.DWDie
    	flagVariants := make(map[string]bool)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
Back to top