Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for stackArgs (0.8 sec)

  1. src/runtime/stubs.go

    func call16(typ, fn, stackArgs unsafe.Pointer, stackArgsSize, stackRetOffset, frameSize uint32, regArgs *abi.RegArgs)
    func call32(typ, fn, stackArgs unsafe.Pointer, stackArgsSize, stackRetOffset, frameSize uint32, regArgs *abi.RegArgs)
    func call64(typ, fn, stackArgs unsafe.Pointer, stackArgsSize, stackRetOffset, frameSize uint32, regArgs *abi.RegArgs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  2. src/runtime/debug_test.go

    	g, after := startDebugCallWorker(t)
    	defer after()
    
    	type stackArgs struct {
    		x0    int
    		x1    float64
    		y0Ret int
    		y1Ret float64
    	}
    
    	// Inject a call into the debugCallWorker goroutine and test
    	// basic argument and result passing.
    	fn := func(x int, y float64) (y0Ret int, y1Ret float64) {
    		return x + 1, y + 1.0
    	}
    	var args *stackArgs
    	var regs abi.RegArgs
    	intRegs := regs.Ints[:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 15:08:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. src/runtime/export_debug_test.go

    // running.
    //
    // On success, InjectDebugCall returns the panic value of fn or nil.
    // If fn did not panic, its results will be available in args.
    func InjectDebugCall(gp *g, fn any, regArgs *abi.RegArgs, stackArgs any, tkill func(tid int) error, returnOnUnsafePoint bool) (any, error) {
    	if gp.lockedm == 0 {
    		return nil, plainError("goroutine not locked to thread")
    	}
    
    	tid := int(gp.lockedm.ptr().procid)
    	if tid == 0 {
    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/sys_windows_arm64.s

    	// R7: scratch
    	// R8: copy of RSP - (R2)(RSP) assembles as (R2)(ZR)
    	SUB	$8, R0, R4
    	LSL	$3, R4
    	ADD	$(8*8), R12, R5
    	MOVD	$0, R6
    	MOVD	RSP, R8
    stackargs:
    	MOVD	(R6)(R5), R7
    	MOVD	R7, (R6)(R8)
    	ADD	$8, R6
    	CMP	R6, R4
    	BNE	stackargs
    
    _8args:
    	MOVD	(7*8)(R12), R7
    _7args:
    	MOVD	(6*8)(R12), R6
    _6args:
    	MOVD	(5*8)(R12), R5
    _5args:
    	MOVD	(4*8)(R12), R4
    _4args:
    	MOVD	(3*8)(R12), R3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. src/runtime/sys_windows_arm.s

    	// R3: scratch
    	// R4: pointer to libcall struct
    	// R12: libcall->args
    	MOVW	$0, R2
    stackargs:
    	ADD	$4, R2, R3		// r3 = args[4 + i]
    	MOVW	R3<<2(R12), R3
    	MOVW	R3, R2<<2(R13)		// stack[i] = r3
    
    	ADD	$1, R2			// i++
    	SUB	$4, R0, R3		// while (i < (n - 4))
    	CMP	R3, R2
    	BLT	stackargs
    
    loadregs:
    	CMP	$3, R0
    	MOVW.GT 12(R12), R3
    
    	CMP	$2, R0
    	MOVW.GT 8(R12), R2
    
    	CMP	$1, R0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  6. src/runtime/asm_wasm.s

    	Not; \
    	If; \
    		Get SP; \
    		I64Load stackArgs+16(FP); \
    		I32WrapI64; \
    		I64Load stackArgsSize+24(FP); \
    		I32WrapI64; \
    		MemoryCopy; \
    	End; \
    	\
    	MOVD f+8(FP), CTXT; \
    	Get CTXT; \
    	I32WrapI64; \
    	I64Load $0; \
    	CALL; \
    	\
    	I64Load32U stackRetOffset+28(FP); \
    	Set R0; \
    	\
    	MOVD stackArgsType+0(FP), RET0; \
    	\
    	I64Load stackArgs+16(FP); \
    	Get R0; \
    	I64Add; \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:26:51 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  7. src/runtime/asm_riscv64.s

    	JALR	ZERO, T2
    // Note: can't just "BR NAME(SB)" - bad inlining results.
    
    // func call(stackArgsType *rtype, fn, stackArgs unsafe.Pointer, stackArgsSize, stackRetOffset, frameSize uint32, regArgs *abi.RegArgs).
    TEXT reflect·call(SB), NOSPLIT, $0-0
    	JMP	·reflectcall(SB)
    
    // func call(stackArgsType *_type, fn, stackArgs unsafe.Pointer, stackArgsSize, stackRetOffset, frameSize uint32, regArgs *abi.RegArgs).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 27K bytes
    - Viewed (0)
  8. src/reflect/value.go

    	}
    
    	// Call.
    	call(frametype, fn, stackArgs, uint32(frametype.Size()), uint32(abid.retOffset), uint32(frameSize), &regArgs)
    
    	// For testing; see TestCallMethodJump.
    	if callGC {
    		runtime.GC()
    	}
    
    	var ret []Value
    	if nout == 0 {
    		if stackArgs != nil {
    			typedmemclr(frametype, stackArgs)
    			framePool.Put(stackArgs)
    		}
    	} else {
    		if stackArgs != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  9. src/runtime/asm_mips64x.s

    	MOVV	R29, R29
    
    	MOVV	R0, REGCTXT
    	JMP	runtime·morestack(SB)
    
    // reflectcall: call a function with the given argument list
    // func call(stackArgsType *_type, f *FuncVal, stackArgs *byte, stackArgsSize, stackRetOffset, frameSize uint32, regArgs *abi.RegArgs).
    // we don't have variable-sized frames, so we use a small number
    // of constant-sized-frame functions to encode a few bits of size in the pc.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 19:45:59 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  10. src/runtime/asm_s390x.s

    	MOVD	R15, R15
    
    	MOVD	$0, R12
    	BR	runtime·morestack(SB)
    
    // reflectcall: call a function with the given argument list
    // func call(stackArgsType *_type, f *FuncVal, stackArgs *byte, stackArgsSize, stackRetOffset, frameSize uint32, regArgs *abi.RegArgs).
    // we don't have variable-sized frames, so we use a small number
    // of constant-sized-frame functions to encode a few bits of size in the pc.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 09:18:28 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top