Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for ptrTo (0.06 sec)

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

    	// result: (Store {t.FieldType(2)} (OffPtr <t.FieldType(2).PtrTo()> [t.FieldOff(2)] dst) f2 (Store {t.FieldType(1)} (OffPtr <t.FieldType(1).PtrTo()> [t.FieldOff(1)] dst) f1 (Store {t.FieldType(0)} (OffPtr <t.FieldType(0).PtrTo()> [0] dst) f0 mem)))
    	for {
    		dst := v_0
    		if v_1.Op != OpStructMake3 {
    			break
    		}
    		t := v_1.Type
    		f2 := v_1.Args[2]
    		f0 := v_1.Args[0]
    		f1 := v_1.Args[1]
    		mem := v_2
    		v.reset(OpStore)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  2. callbacks/associations.go

    				isPtr := fieldType.Kind() == reflect.Ptr
    				if !isPtr {
    					fieldType = reflect.PtrTo(fieldType)
    				}
    				elems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    				distinctElems := reflect.MakeSlice(reflect.SliceOf(fieldType), 0, 10)
    				joins := reflect.MakeSlice(reflect.SliceOf(reflect.PtrTo(rel.JoinTable.ModelType)), 0, 10)
    				objs := []reflect.Value{}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Apr 11 03:06:13 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/convert.go

    		//    res = res.type
    		// }
    
    		// Grab its parts.
    		itab := ir.NewUnaryExpr(base.Pos, ir.OITAB, c)
    		itab.SetType(types.Types[types.TUINTPTR].PtrTo())
    		itab.SetTypecheck(1)
    		data := ir.NewUnaryExpr(n.Pos(), ir.OIDATA, c)
    		data.SetType(types.Types[types.TUINT8].PtrTo()) // Type is generic pointer - we're just passing it through.
    		data.SetTypecheck(1)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  4. scan.go

    				values[idx] = reflect.New(reflect.PtrTo(field.FieldType)).Interface()
    				continue
    			}
    			values[idx] = new(interface{})
    		}
    	} else if len(columnTypes) > 0 {
    		for idx, columnType := range columnTypes {
    			if columnType.ScanType() != nil {
    				values[idx] = reflect.New(reflect.PtrTo(columnType.ScanType())).Interface()
    			} else {
    				values[idx] = new(interface{})
    			}
    		}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/writebarrier.go

    		addEntry := func(pos src.XPos, v *Value) {
    			if curCall == nil || curCall.AuxInt == maxEntries {
    				t := types.NewTuple(types.Types[types.TUINTPTR].PtrTo(), types.TypeMem)
    				curCall = bThen.NewValue1(pos, OpWB, t, memThen)
    				curPtr = bThen.NewValue1(pos, OpSelect0, types.Types[types.TUINTPTR].PtrTo(), curCall)
    				memThen = bThen.NewValue1(pos, OpSelect1, types.TypeMem, curCall)
    			}
    			// Store value in write buffer
    			num := curCall.AuxInt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/testdata/v1reflect.gox

     func (t <type 39>) NumIn () <type -11>;
     func (t <type 39>) NumOut () <type -11>;
     func (t <type 39>) Out (i <type -11>) <type 26>;
     func (t <type 39>) .reflect.runtimeType () <type 21>;
     func (ct <type 39>) .reflect.ptrTo () <type 39>;
     func (t <type 39>) Implements (u <type 26>) <type -15>;
     func (t <type 39>) AssignableTo (u <type 26>) <type -15>;
    >>; .reflect.val <type 7>; ? <type 42 ".reflect.flag" <type -13>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/range.go

    		hpVal.SetCheckPtr(true) // disable checkptr on this conversion
    		hpVal = ir.NewConvExpr(base.Pos, ir.OCONVNOP, elem.PtrTo(), hpVal)
    		hp := typecheck.TempAt(base.Pos, ir.CurFunc, elem.PtrTo())
    		body = append(body, ir.NewAssignStmt(base.Pos, hp, hpVal))
    
    		// Assign variables on the LHS of the range statement. Use *hp to get the element.
    		e := ir.NewStarExpr(base.Pos, hp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/walk.go

    		base.Fatalf("backingArrayPtrLen not cheap: %v", n)
    	}
    	ptr = ir.NewUnaryExpr(base.Pos, ir.OSPTR, n)
    	if n.Type().IsString() {
    		ptr.SetType(types.Types[types.TUINT8].PtrTo())
    	} else {
    		ptr.SetType(n.Type().Elem().PtrTo())
    	}
    	ptr.SetTypecheck(1)
    	length = ir.NewUnaryExpr(base.Pos, ir.OLEN, n)
    	length.SetType(types.Types[types.TINT])
    	length.SetTypecheck(1)
    	return ptr, length
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/dec64.rules

    (Store {t} dst (Int64Make hi lo) mem) && t.Size() == 8 && !config.BigEndian =>
    	(Store {hi.Type}
    		(OffPtr <hi.Type.PtrTo()> [4] dst)
    		hi
    		(Store {lo.Type} dst lo mem))
    
    (Store {t} dst (Int64Make hi lo) mem) && t.Size() == 8 && config.BigEndian =>
    	(Store {lo.Type}
    		(OffPtr <lo.Type.PtrTo()> [4] dst)
    		lo
    		(Store {hi.Type} dst hi mem))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:35:46 UTC 2022
    - 14.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/switch.go

    	// Get interface descriptor word.
    	// For empty interfaces this will be the type.
    	// For non-empty interfaces this will be the itab.
    	srcItab := ir.NewUnaryExpr(base.Pos, ir.OITAB, s.srcName)
    	srcData := ir.NewUnaryExpr(base.Pos, ir.OIDATA, s.srcName)
    	srcData.SetType(types.Types[types.TUINT8].PtrTo())
    	srcData.SetTypecheck(1)
    
    	// For empty interfaces, do:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
Back to top