Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for NewPtr (0.12 sec)

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

    	t.String = types.Types[types.TSTRING]
    	t.BytePtr = types.NewPtr(types.Types[types.TUINT8])
    	t.Int32Ptr = types.NewPtr(types.Types[types.TINT32])
    	t.UInt32Ptr = types.NewPtr(types.Types[types.TUINT32])
    	t.IntPtr = types.NewPtr(types.Types[types.TINT])
    	t.UintptrPtr = types.NewPtr(types.Types[types.TUINTPTR])
    	t.Float32Ptr = types.NewPtr(types.Types[types.TFLOAT32])
    	t.Float64Ptr = types.NewPtr(types.Types[types.TFLOAT64])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/builtin.go

    	{"asanregisterglobals", funcTag, 124},
    }
    
    func runtimeTypes() []*types.Type {
    	var typs [156]*types.Type
    	typs[0] = types.ByteType
    	typs[1] = types.NewPtr(typs[0])
    	typs[2] = types.Types[types.TANY]
    	typs[3] = types.NewPtr(typs[2])
    	typs[4] = newSig(params(typs[1]), params(typs[3]))
    	typs[5] = types.Types[types.TUINTPTR]
    	typs[6] = types.Types[types.TBOOL]
    	typs[7] = types.Types[types.TUNSAFEPTR]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/expand_calls.go

    		a := x.prAssignForArg(v)
    		aux := x.f.OwnAux
    		regs := a.Registers
    		var offset int64
    		if len(regs) == 0 {
    			offset = a.FrameOffset(aux.abiInfo)
    		}
    		auxBase := x.offsetFrom(x.f.Entry, x.sp, offset, types.NewPtr(v.Type))
    		rc.init(regs, aux.abiInfo, nil, auxBase, 0)
    		x.rewriteSelectOrArg(f.Entry.Pos, f.Entry, v, v, m0, v.Type, rc)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/walk.go

    func itabType(itab ir.Node) ir.Node {
    	if itabTypeField == nil {
    		// internal/abi.ITab's Type field
    		itabTypeField = runtimeField("Type", rttype.ITab.OffsetOf("Type"), types.NewPtr(types.Types[types.TUINT8]))
    	}
    	return boundedDotPtr(base.Pos, itab, itabTypeField)
    }
    
    var itabTypeField *types.Field
    
    // boundedDotPtr returns a selector expression representing ptr.field
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/expr.go

    	if t == nil {
    		n.SetType(nil)
    		return n
    	}
    	if !t.IsSlice() && !t.IsString() {
    		base.Fatalf("OSPTR of %v", t)
    	}
    	if t.IsString() {
    		n.SetType(types.NewPtr(types.Types[types.TUINT8]))
    	} else {
    		n.SetType(types.NewPtr(t.Elem()))
    	}
    	return n
    }
    
    // tcSlice typechecks an OSLICE or OSLICE3 node.
    func tcSlice(n *ir.SliceExpr) ir.Node {
    	n.X = DefaultLit(Expr(n.X), nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/convert.go

    		data.SetType(types.Types[types.TUINT8].PtrTo()) // Type is generic pointer - we're just passing it through.
    		data.SetTypecheck(1)
    
    		typeWord := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewPtr(types.Types[types.TUINT8]))
    		init.Append(ir.NewAssignStmt(base.Pos, typeWord, typecheck.Conv(typecheck.Conv(itab, types.Types[types.TUNSAFEPTR]), typeWord.Type())))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/abiutils_test.go

    	//   (r1 [7]*s1, r2 float64, r3 int64)
    	i16 := types.Types[types.TINT16]
    	i64 := types.Types[types.TINT64]
    	f64 := types.Types[types.TFLOAT64]
    	s1 := mkstruct(i16, i16, i16)
    	ps1 := types.NewPtr(s1)
    	a7 := types.NewArray(ps1, 7)
    	ft := mkFuncType(s1, []*types.Type{ps1, a7, f64, i16, i16, i16},
    		[]*types.Type{a7, f64, i64})
    
    	exp := makeExpectedDump(`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/func.go

    		base.Fatalf("missing argument to new")
    	}
    	l := n.X
    	l = typecheck(l, ctxType)
    	t := l.Type()
    	if t == nil {
    		n.SetType(nil)
    		return n
    	}
    	n.X = l
    	n.SetType(types.NewPtr(t))
    	return n
    }
    
    // tcPanic typechecks an OPANIC node.
    func tcPanic(n *ir.UnaryExpr) ir.Node {
    	n.X = Expr(n.X)
    	n.X = AssignConv(n.X, types.Types[types.TINTER], "argument to panic")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/range.go

    		key := ir.NewStarExpr(base.Pos, typecheck.ConvNop(ir.NewSelectorExpr(base.Pos, ir.ODOT, hit, keysym), types.NewPtr(t.Key())))
    		if v1 == nil {
    			body = nil
    		} else if v2 == nil {
    			body = []ir.Node{rangeAssign(nrange, key)}
    		} else {
    			elem := ir.NewStarExpr(base.Pos, typecheck.ConvNop(ir.NewSelectorExpr(base.Pos, ir.ODOT, hit, elemsym), types.NewPtr(t.Elem())))
    			body = []ir.Node{rangeAssign2(nrange, key, elem)}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/func.go

    		a = new(LocalSlot)
    		*a = slot // don't escape slot
    		f.CanonicalLocalSlots[slot] = a
    	}
    	return a
    }
    
    func (f *Func) SplitString(name *LocalSlot) (*LocalSlot, *LocalSlot) {
    	ptrType := types.NewPtr(types.Types[types.TUINT8])
    	lenType := types.Types[types.TINT]
    	// Split this string up into two separate variables.
    	p := f.SplitSlot(name, ".ptr", 0, ptrType)
    	l := f.SplitSlot(name, ".len", ptrType.Size(), lenType)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top