Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for efaceOf (0.18 sec)

  1. src/runtime/export_debug_test.go

    	}
    
    	tid := int(gp.lockedm.ptr().procid)
    	if tid == 0 {
    		return nil, plainError("missing tid")
    	}
    
    	f := efaceOf(&fn)
    	if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func {
    		return nil, plainError("fn must be a function")
    	}
    	fv := (*funcval)(f.data)
    
    	a := efaceOf(&stackArgs)
    	if a._type != nil && a._type.Kind_&abi.KindMask != abi.Pointer {
    		return nil, plainError("args must be a pointer or nil")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. src/runtime/iface.go

    	stringEface any = stringInterfacePtr("")
    	sliceEface  any = sliceInterfacePtr(nil)
    
    	uint16Type *_type = efaceOf(&uint16Eface)._type
    	uint32Type *_type = efaceOf(&uint32Eface)._type
    	uint64Type *_type = efaceOf(&uint64Eface)._type
    	stringType *_type = efaceOf(&stringEface)._type
    	sliceType  *_type = efaceOf(&sliceEface)._type
    )
    
    // The conv and assert functions below do very similar things.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  3. src/runtime/mfinal.go

    					ityp := (*interfacetype)(unsafe.Pointer(f.fint))
    					// set up with empty interface
    					(*eface)(r)._type = &f.ot.Type
    					(*eface)(r).data = f.arg
    					if len(ityp.Methods) != 0 {
    						// convert to interface with methods
    						// this conversion is guaranteed to succeed - we checked in SetFinalizer
    						(*iface)(r).tab = assertE2I(ityp, (*eface)(r)._type)
    					}
    				default:
    					throw("bad kind in runfinq")
    				}
    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/cgocall.go

    		return
    	}
    
    	ep := efaceOf(&ptr)
    	t := ep._type
    
    	top := true
    	if arg != nil && (t.Kind_&abi.KindMask == abi.Pointer || t.Kind_&abi.KindMask == abi.UnsafePointer) {
    		p := ep.data
    		if t.Kind_&abi.KindDirectIface == 0 {
    			p = *(*unsafe.Pointer)(p)
    		}
    		if p == nil || !cgoIsGoPointer(p) {
    			return
    		}
    		aep := efaceOf(&arg)
    		switch aep._type.Kind_ & abi.KindMask {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  5. 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)
  6. src/runtime/error.go

    func printanycustomtype(i any) {
    	eface := efaceOf(&i)
    	typestring := toRType(eface._type).string()
    
    	switch eface._type.Kind_ {
    	case abi.String:
    		print(typestring, `("`)
    		printindented(*(*string)(eface.data))
    		print(`")`)
    	case abi.Bool:
    		print(typestring, "(", *(*bool)(eface.data), ")")
    	case abi.Int:
    		print(typestring, "(", *(*int)(eface.data), ")")
    	case abi.Int8:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/runtime/pinner.go

    	// p.refs' backing store (if it was not backed by refStore).
    	p.refStore = [pinnerRefStoreSize]unsafe.Pointer{}
    	p.refs = p.refStore[:0]
    }
    
    func pinnerGetPtr(i *any) unsafe.Pointer {
    	e := efaceOf(i)
    	etyp := e._type
    	if etyp == nil {
    		panic(errorString("runtime.Pinner: argument is nil"))
    	}
    	if kind := etyp.Kind_ & abi.KindMask; kind != abi.Pointer && kind != abi.UnsafePointer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/runtime/stkframe.go

    		}
    	}
    
    	return
    }
    
    var methodValueCallFrameObjs [1]stackObjectRecord // initialized in stackobjectinit
    
    func stkobjinit() {
    	var abiRegArgsEface any = abi.RegArgs{}
    	abiRegArgsType := efaceOf(&abiRegArgsEface)._type
    	if abiRegArgsType.Kind_&abi.KindGCProg != 0 {
    		throw("abiRegArgsType needs GC Prog, update methodValueCallFrameObjs")
    	}
    	// Set methodValueCallFrameObjs[0].gcdataoff so that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/runtime/heapdump.go

    	}
    	for p := gp._panic; p != nil; p = p.link {
    		dumpint(tagPanic)
    		dumpint(uint64(uintptr(unsafe.Pointer(p))))
    		dumpint(uint64(uintptr(unsafe.Pointer(gp))))
    		eface := efaceOf(&p.arg)
    		dumpint(uint64(uintptr(unsafe.Pointer(eface._type))))
    		dumpint(uint64(uintptr(eface.data)))
    		dumpint(0) // was p->defer, no longer recorded
    		dumpint(uint64(uintptr(unsafe.Pointer(p.link))))
    	}
    }
    
    func dumpgs() {
    	assertWorldStopped()
    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/os_windows.go

    			if mp.resumesema != 0 {
    				stdcall1(_SetEvent, mp.resumesema)
    			}
    		}
    		return 0
    	}
    	params := _DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS{
    		callback: compileCallback(*efaceOf(&fn), true),
    	}
    	handle := uintptr(0)
    	stdcall3(powerRegisterSuspendResumeNotification, _DEVICE_NOTIFY_CALLBACK,
    		uintptr(unsafe.Pointer(&params)), uintptr(unsafe.Pointer(&handle)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
Back to top