Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for gofunc (0.12 sec)

  1. src/time/sleep.go

    // compare linknamed symbol definitions happier.
    //
    //go:linkname newTimer
    func newTimer(when, period int64, f func(any, uintptr, int64), arg any, cp unsafe.Pointer) *Timer
    
    //go:linkname stopTimer
    func stopTimer(*Timer) bool
    
    //go:linkname resetTimer
    func resetTimer(t *Timer, when, period int64) bool
    
    // Note: The runtime knows the layout of struct Timer, since newTimer allocates it.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/pcln.go

    }
    
    // writeFuncs writes the func structures and pcdata to runtime.functab.
    func writeFuncs(ctxt *Link, sb *loader.SymbolBuilder, funcs []loader.Sym, inlSyms map[loader.Sym]loader.Sym, startLocations, cuOffsets []uint32, nameOffsets map[loader.Sym]uint32) {
    	ldr := ctxt.loader
    	deferReturnSym := ldr.Lookup("runtime.deferreturn", abiInternalVer)
    	gofunc := ldr.Lookup("go:func.*", 0)
    	gofuncBase := ldr.SymValue(gofunc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  3. src/runtime/symtab.go

    }
    
    func (f *Func) raw() *_func {
    	return (*_func)(unsafe.Pointer(f))
    }
    
    func (f *Func) funcInfo() funcInfo {
    	return f.raw().funcInfo()
    }
    
    func (f *_func) funcInfo() funcInfo {
    	// Find the module containing fn. fn is located in the pclntable.
    	// The unsafe.Pointer to uintptr conversions and arithmetic
    	// are safe because we are working with module addresses.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  4. src/runtime/stkframe.go

    	// stackObjectRecord.gcdata() will work correctly with it.
    	ptr := uintptr(unsafe.Pointer(&methodValueCallFrameObjs[0]))
    	var mod *moduledata
    	for datap := &firstmoduledata; datap != nil; datap = datap.next {
    		if datap.gofunc <= ptr && ptr < datap.end {
    			mod = datap
    			break
    		}
    	}
    	if mod == nil {
    		throw("methodValueCallFrameObjs is not in a module")
    	}
    	methodValueCallFrameObjs[0] = stackObjectRecord{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. src/runtime/runtime2.go

    	// that index's table. e.g.,
    	// &moduledata.pctab[_func.pcdata[_PCDATA_UnsafePoint]] is the start of
    	// the unsafe point table.
    	//
    	// An offset of 0 indicates that there is no table.
    	//
    	// pcdata [npcdata]uint32
    
    	// funcdata contains the offset past moduledata.gofunc which contains a
    	// pointer to that index's funcdata. e.g.,
    	// *(moduledata.gofunc +  _func.funcdata[_FUNCDATA_ArgsPointerMaps]) is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  6. src/runtime/stack.go

    	gcdataoff uint32 // offset to gcdata from moduledata.rodata
    }
    
    func (r *stackObjectRecord) useGCProg() bool {
    	return r._ptrdata < 0
    }
    
    func (r *stackObjectRecord) ptrdata() uintptr {
    	x := r._ptrdata
    	if x < 0 {
    		return uintptr(-x)
    	}
    	return uintptr(x)
    }
    
    // gcdata returns pointer map or GC prog of the type.
    func (r *stackObjectRecord) gcdata() *byte {
    	ptr := uintptr(unsafe.Pointer(r))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  7. src/cmd/link/internal/sym/symkind.go

    var ReadOnly = []SymKind{
    	STYPE,
    	SSTRING,
    	SGOSTRING,
    	SGOFUNC,
    	SGCBITS,
    	SRODATA,
    	SFUNCTAB,
    }
    
    // RelROMap describes the transformation of read-only symbols to rel-ro
    // symbols.
    var RelROMap = map[SymKind]SymKind{
    	STYPE:     STYPERELRO,
    	SSTRING:   SSTRINGRELRO,
    	SGOSTRING: SGOSTRINGRELRO,
    	SGOFUNC:   SGOFUNCRELRO,
    	SGCBITS:   SGCBITSRELRO,
    	SRODATA:   SRODATARELRO,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ir/func.go

    	fn.SetTypecheck(1)
    
    	name.Func = fn
    
    	return fn
    }
    
    func (f *Func) isStmt() {}
    
    func (n *Func) copy() Node                                  { panic(n.no("copy")) }
    func (n *Func) doChildren(do func(Node) bool) bool          { return doNodes(n.Body, do) }
    func (n *Func) editChildren(edit func(Node) Node)           { editNodes(n.Body, edit) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/go/types/operand.go

    //
    // commaerr   <expr> (<untyped kind> <mode>                    )
    // commaerr   <expr> (               <mode>       of type <typ>)
    //
    // cgofunc    <expr> (<untyped kind> <mode>                    )
    // cgofunc    <expr> (               <mode>       of type <typ>)
    func operandString(x *operand, qf Qualifier) string {
    	// special-case nil
    	if isTypes2 {
    		if x.mode == nilvalue {
    			switch x.typ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/func.cc

    // Returns true iff the function's symbol is public.
    bool IsPublicFuncOp(func::FuncOp func_op) {
      return SymbolTable::getSymbolVisibility(&*func_op) ==
             SymbolTable::Visibility::Public;
    }
    
    }  // namespace
    
    func::FuncOp FindMainFuncOp(ModuleOp module_op) {
      if (const auto main_func_op = module_op.lookupSymbol<func::FuncOp>(
              kImportModelDefaultGraphFuncName);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top