Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for ptrType (0.24 sec)

  1. src/cmd/compile/internal/ssa/nilcheck_test.go

    			If("bool1", "b1", "b2")),
    		Bloc("b1",
    			Valu("ptr1", OpAddr, ptrType, 0, nil, "sb"),
    			Goto("checkPtr")),
    		Bloc("b2",
    			Valu("ptr2", OpAddr, ptrType, 0, nil, "sb"),
    			Goto("checkPtr")),
    		// both ptr1 and ptr2 are guaranteed non-nil here
    		Bloc("checkPtr",
    			Valu("phi", OpPhi, ptrType, 0, nil, "ptr1", "ptr2"),
    			Valu("bool2", OpIsNonNil, c.config.Types.Bool, 0, nil, "phi"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/decompose.go

    	}
    }
    
    func decomposeStringPhi(v *Value) {
    	types := &v.Block.Func.Config.Types
    	ptrType := types.BytePtr
    	lenType := types.Int
    
    	ptr := v.Block.NewValue0(v.Pos, OpPhi, ptrType)
    	len := v.Block.NewValue0(v.Pos, OpPhi, lenType)
    	for _, a := range v.Args {
    		ptr.AddArg(a.Block.NewValue1(v.Pos, OpStringPtr, ptrType, a))
    		len.AddArg(a.Block.NewValue1(v.Pos, OpStringLen, lenType, a))
    	}
    	v.reset(OpStringMake)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  3. src/runtime/mfinal.go

    	arg  unsafe.Pointer // ptr to object (may be a heap pointer)
    	nret uintptr        // bytes of return values from fn
    	fint *_type         // type of first argument of fn
    	ot   *ptrtype       // type of ptr to object (may be a heap pointer)
    }
    
    var finalizer1 = [...]byte{
    	// Each Finalizer is 5 words, ptr ptr INT ptr ptr (INT = uintptr here)
    	// Each byte describes 8 words.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/runtime/type.go

    type maptype = abi.MapType
    
    type arraytype = abi.ArrayType
    
    type chantype = abi.ChanType
    
    type slicetype = abi.SliceType
    
    type functype = abi.FuncType
    
    type ptrtype = abi.PtrType
    
    type name = abi.Name
    
    type structtype = abi.StructType
    
    func pkgPath(n name) string {
    	if n.Bytes == nil || *n.Data(0)&(1<<2) == 0 {
    		return ""
    	}
    	i, l := n.ReadVarint(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. src/debug/dwarf/type.go

    // A VoidType represents the C void type.
    type VoidType struct {
    	CommonType
    }
    
    func (t *VoidType) String() string { return "void" }
    
    // A PtrType represents a pointer type.
    type PtrType struct {
    	CommonType
    	Type Type
    }
    
    func (t *PtrType) String() string { return "*" + t.Type.String() }
    
    // A StructType represents a struct, union, or C++ class type.
    type StructType struct {
    	CommonType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/func.go

    	return c, d
    }
    
    func (f *Func) SplitSlice(name *LocalSlot) (*LocalSlot, *LocalSlot, *LocalSlot) {
    	ptrType := types.NewPtr(name.Type.Elem())
    	lenType := types.Types[types.TINT]
    	p := f.SplitSlot(name, ".ptr", 0, ptrType)
    	l := f.SplitSlot(name, ".len", ptrType.Size(), lenType)
    	c := f.SplitSlot(name, ".cap", ptrType.Size()+lenType.Size(), lenType)
    	return p, l, c
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. src/internal/reflectlite/type.go

    type arrayType = abi.ArrayType
    
    // chanType represents a channel type.
    type chanType = abi.ChanType
    
    type funcType = abi.FuncType
    
    type interfaceType = abi.InterfaceType
    
    // ptrType represents a pointer type.
    type ptrType = abi.PtrType
    
    // sliceType represents a slice type.
    type sliceType = abi.SliceType
    
    // structType represents a struct type.
    type structType = abi.StructType
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. src/internal/abi/type.go

    	if t.TFlag&TFlagUncommon == 0 {
    		return nil
    	}
    	switch t.Kind() {
    	case Struct:
    		return &(*structTypeUncommon)(unsafe.Pointer(t)).u
    	case Pointer:
    		type u struct {
    			PtrType
    			u UncommonType
    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	case Func:
    		type u struct {
    			FuncType
    			u UncommonType
    		}
    		return &(*u)(unsafe.Pointer(t)).u
    	case Slice:
    		type u struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  9. src/runtime/heapdump.go

    func dumpotherroot(description string, to unsafe.Pointer) {
    	dumpint(tagOtherRoot)
    	dumpstr(description)
    	dumpint(uint64(uintptr(to)))
    }
    
    func dumpfinalizer(obj unsafe.Pointer, fn *funcval, fint *_type, ot *ptrtype) {
    	dumpint(tagFinalizer)
    	dumpint(uint64(uintptr(obj)))
    	dumpint(uint64(uintptr(unsafe.Pointer(fn))))
    	dumpint(uint64(uintptr(unsafe.Pointer(fn.fn))))
    	dumpint(uint64(uintptr(unsafe.Pointer(fint))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. src/runtime/arena.go

    func arena_arena_New(arena unsafe.Pointer, typ any) any {
    	t := (*_type)(efaceOf(&typ).data)
    	if t.Kind_&abi.KindMask != abi.Pointer {
    		throw("arena_New: non-pointer type")
    	}
    	te := (*ptrtype)(unsafe.Pointer(t)).Elem
    	x := ((*userArena)(arena)).new(te)
    	var result any
    	e := efaceOf(&result)
    	e._type = t
    	e.data = x
    	return result
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top