Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 57 for funcType (0.43 sec)

  1. src/reflect/abi.go

    	println()
    }
    
    func dumpPtrBitMap(b abi.IntArgRegBitmap) {
    	for i := 0; i < intArgRegs; i++ {
    		x := 0
    		if b.Get(i) {
    			x = 1
    		}
    		print(" ", x)
    	}
    }
    
    func newAbiDesc(t *funcType, rcvr *abi.Type) abiDesc {
    	// We need to add space for this argument to
    	// the frame so that it can spill args into it.
    	//
    	// The size of this space is just the sum of the sizes
    	// of each register-allocated type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. src/runtime/syscall_windows.go

    		cdecl = false
    	}
    
    	if fn._type == nil || (fn._type.Kind_&abi.KindMask) != abi.Func {
    		panic("compileCallback: expected function with one uintptr-sized result")
    	}
    	ft := (*functype)(unsafe.Pointer(fn._type))
    
    	// Check arguments and construct ABI translation.
    	var abiMap abiDesc
    	for _, t := range ft.InSlice() {
    		abiMap.assignArg(t)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/deadcode.go

    	switch decodetypeKind(arch, p) {
    	case abi.Struct: // reflect.structType
    		off += 4 * arch.PtrSize
    	case abi.Pointer: // reflect.ptrType
    		off += arch.PtrSize
    	case abi.Func: // reflect.funcType
    		off += arch.PtrSize // 4 bytes, pointer aligned
    	case abi.Slice: // reflect.sliceType
    		off += arch.PtrSize
    	case abi.Array: // reflect.arrayType
    		off += 3 * arch.PtrSize
    	case abi.Chan: // reflect.chanType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/runtime/mfinal.go

    			removefinalizer(e.data)
    		})
    		return
    	}
    
    	if ftyp.Kind_&abi.KindMask != abi.Func {
    		throw("runtime.SetFinalizer: second argument is " + toRType(ftyp).string() + ", not a function")
    	}
    	ft := (*functype)(unsafe.Pointer(ftyp))
    	if ft.IsVariadic() {
    		throw("runtime.SetFinalizer: cannot pass " + toRType(etyp).string() + " to finalizer " + toRType(ftyp).string() + " because dotdotdot")
    	}
    	if ft.InCount != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/go/types/expr.go

    		*ast.FuncLit,
    		*ast.CompositeLit,
    		*ast.IndexExpr,
    		*ast.SliceExpr,
    		*ast.TypeAssertExpr,
    		*ast.StarExpr,
    		*ast.KeyValueExpr,
    		*ast.ArrayType,
    		*ast.StructType,
    		*ast.FuncType,
    		*ast.InterfaceType,
    		*ast.MapType,
    		*ast.ChanType:
    		// These expression are never untyped - nothing to do.
    		// The respective sub-expressions got their final types
    		// upon assignment or use.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/expr.go

    		*syntax.IndexExpr,
    		*syntax.SliceExpr,
    		*syntax.AssertExpr,
    		*syntax.ListExpr,
    		//*syntax.StarExpr,
    		*syntax.KeyValueExpr,
    		*syntax.ArrayType,
    		*syntax.StructType,
    		*syntax.FuncType,
    		*syntax.InterfaceType,
    		*syntax.MapType,
    		*syntax.ChanType:
    		// These expression are never untyped - nothing to do.
    		// The respective sub-expressions got their final types
    		// upon assignment or use.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  7. src/reflect/value.go

    }
    
    var callGC bool // for testing; see TestCallMethodJump and TestCallArgLive
    
    const debugReflectCall = false
    
    func (v Value) call(op string, in []Value) []Value {
    	// Get function pointer, type.
    	t := (*funcType)(unsafe.Pointer(v.typ()))
    	var (
    		fn       unsafe.Pointer
    		rcvr     Value
    		rcvrtype *abi.Type
    	)
    	if v.flag&flagMethod != 0 {
    		rcvr = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/decl.go

    	// its methods, and we don't want a cycle error in that case.
    	// TODO(gri) review if this is correct and/or whether we still need this?
    	saved := obj.color_
    	obj.color_ = black
    	fdecl := decl.fdecl
    	check.funcType(sig, fdecl.Recv, fdecl.TParamList, fdecl.Type)
    	obj.color_ = saved
    
    	// Set the scope's extent to the complete "func (...) { ... }"
    	// so that Scope.Innermost works correctly.
    	sig.scope.pos = fdecl.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  9. src/go/types/decl.go

    	// its methods, and we don't want a cycle error in that case.
    	// TODO(gri) review if this is correct and/or whether we still need this?
    	saved := obj.color_
    	obj.color_ = black
    	fdecl := decl.fdecl
    	check.funcType(sig, fdecl.Recv, fdecl.Type)
    	obj.color_ = saved
    
    	// Set the scope's extent to the complete "func (...) { ... }"
    	// so that Scope.Innermost works correctly.
    	sig.scope.pos = fdecl.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	}
    
    	ft = simplify(ft)
    
    	// For a local name, discard the return type, so that it
    	// doesn't get confused with the top level return type.
    	if local == forLocalName {
    		if functype, ok := ft.(*FunctionType); ok {
    			functype.ForLocalName = true
    		}
    	}
    
    	// Any top-level qualifiers belong to the function type.
    	if mwq != nil {
    		a = mwq.Method
    		mwq.Method = ft
    		ft = mwq
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
Back to top