Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for argSize (0.11 sec)

  1. src/internal/abi/abi.go

    // by the CPU correctly.
    func (r *RegArgs) IntRegArgAddr(reg int, argSize uintptr) unsafe.Pointer {
    	if argSize > goarch.PtrSize || argSize == 0 || argSize&(argSize-1) != 0 {
    		panic("invalid argSize")
    	}
    	offset := uintptr(0)
    	if goarch.BigEndian {
    		offset = goarch.PtrSize - argSize
    	}
    	return unsafe.Pointer(uintptr(unsafe.Pointer(&r.Ints[reg])) + offset)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 23 15:51:32 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. src/reflect/abi.go

    }
    
    // intFromReg loads an argSize sized integer from reg and places it at to.
    //
    // argSize must be non-zero, fit in a register, and a power-of-two.
    func intFromReg(r *abi.RegArgs, reg int, argSize uintptr, to unsafe.Pointer) {
    	memmove(to, r.IntRegArgAddr(reg, argSize), argSize)
    }
    
    // intToReg loads an argSize sized integer and stores it into reg.
    //
    // argSize must be non-zero, fit in a register, and a power-of-two.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. src/runtime/export_debug_test.go

    	}
    	argp := a.data
    	var argSize uintptr
    	if argp != nil {
    		argSize = (*ptrtype)(unsafe.Pointer(a._type)).Elem.Size_
    	}
    
    	h := new(debugCallHandler)
    	h.gp = gp
    	// gp may not be running right now, but we can still get the M
    	// it will run on since it's locked.
    	h.mp = gp.lockedm.ptr()
    	h.fv, h.regArgs, h.argp, h.argSize = fv, regArgs, argp, argSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. src/runtime/export_debug_arm64_test.go

    	// Write the argument frame size.
    	*(*uintptr)(unsafe.Pointer(uintptr(sp - 16))) = h.argSize
    	// Save current registers.
    	h.sigCtxt.savedRegs = *ctxt.regs()
    }
    
    // case 0
    func (h *debugCallHandler) debugCallRun(ctxt *sigctxt) {
    	sp := ctxt.sp()
    	memmove(unsafe.Pointer(uintptr(sp)+8), h.argp, h.argSize)
    	if h.regArgs != nil {
    		storeRegArgs(ctxt.regs(), h.regArgs)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 23 05:38:56 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  5. src/runtime/export_debug_ppc64le_test.go

    	// Write the argument frame size.
    	*(*uintptr)(unsafe.Pointer(uintptr(sp - 32))) = h.argSize
    	// Save current registers.
    	h.sigCtxt.savedRegs = *ctxt.cregs()
    }
    
    // case 0
    func (h *debugCallHandler) debugCallRun(ctxt *sigctxt) {
    	sp := ctxt.sp()
    	memmove(unsafe.Pointer(uintptr(sp)+32), h.argp, h.argSize)
    	if h.regArgs != nil {
    		storeRegArgs(ctxt.cregs(), h.regArgs)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 15:33:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. src/runtime/export_debug_amd64_test.go

    	*(*uintptr)(unsafe.Pointer(uintptr(rsp - 16))) = h.argSize
    	// Save current registers.
    	h.sigCtxt.savedRegs = *ctxt.regs()
    	h.sigCtxt.savedFP = *h.sigCtxt.savedRegs.fpstate
    	h.sigCtxt.savedRegs.fpstate = nil
    }
    
    // case 0
    func (h *debugCallHandler) debugCallRun(ctxt *sigctxt) {
    	rsp := ctxt.rsp()
    	memmove(unsafe.Pointer(uintptr(rsp)), h.argp, h.argSize)
    	if h.regArgs != nil {
    		storeRegArgs(ctxt.regs(), h.regArgs)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 23 05:38:56 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  7. src/reflect/export_test.go

    func FuncLayout(t Type, rcvr Type) (frametype Type, argSize, retOffset uintptr, stack, gc, inReg, outReg []byte, ptrs bool) {
    	var ft *abi.Type
    	var abid abiDesc
    	if rcvr != nil {
    		ft, _, abid = funcLayout((*funcType)(unsafe.Pointer(t.common())), rcvr.common())
    	} else {
    		ft, _, abid = funcLayout((*funcType)(unsafe.Pointer(t.(*rtype))), nil)
    	}
    	// Extract size information.
    	argSize = abid.stackCallArgsSize
    	retOffset = abid.retOffset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/WasmOps.go

    		{name: "LoweredTailCall", argLength: 1, reg: regInfo{clobbers: callerSave}, aux: "CallOff", call: true, tailCall: true},                  // tail call static function aux.(*obj.LSym). arg0=mem, auxint=argsize, returns mem
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/asm.go

    		p.errorf("TEXT %q: ABIInternal requires NOSPLIT", name)
    	}
    
    	// Next operand is the frame and arg size.
    	// Bizarre syntax: $frameSize-argSize is two words, not subtraction.
    	// Both frameSize and argSize must be simple integers; only frameSize
    	// can be negative.
    	// The "-argSize" may be missing; if so, set it to objabi.ArgsSizeUnknown.
    	// Parse left to right.
    	op := operands[next]
    	if len(op) < 2 || op[0].ScanToken != '$' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. src/runtime/funcdata.h

    // no pointers to heap objects in its local stack variables.
    #define NO_LOCAL_POINTERS	FUNCDATA $FUNCDATA_LocalsPointerMaps, no_pointers_stackmap(SB)
    
    // ArgsSizeUnknown is set in Func.argsize to mark all functions
    // whose argument size is unknown (C vararg functions, and
    // assembly code without an explicit specification).
    // This value is generated by the compiler, assembler, or linker.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:28:09 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top