Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 45 for cgocaller (0.58 sec)

  1. src/runtime/sys_linux_amd64.s

    	TESTQ	CX, CX
    	JZ	sigtramp        // g.m.curg == nil
    	MOVQ	g_syscallsp(CX), CX
    	TESTQ	CX, CX
    	JZ	sigtramp        // g.m.curg.syscallsp == 0
    	MOVQ	m_cgoCallers(AX), R8
    	TESTQ	R8, R8
    	JZ	sigtramp        // g.m.cgoCallers == nil
    	MOVL	m_cgoCallersUse(AX), CX
    	TESTL	CX, CX
    	JNZ	sigtramp	// g.m.cgoCallersUse != 0
    
    	// Jump to a function in runtime/cgo.
    	// That function, written in C, will call the user's traceback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/call.go

    		if x.mode != invalid && x.mode != constant_ {
    			check.hasCallOrRecv = true
    		}
    		return predeclaredFuncs[id].kind
    	}
    
    	// ordinary function/method call
    	// signature may be generic
    	cgocall := x.mode == cgofunc
    
    	// a type parameter may be "called" if all types have the same signature
    	sig, _ := coreType(x.typ).(*Signature)
    	if sig == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  3. src/runtime/asm_riscv64.s

    	MOV	fn+0(FP), X5
    	MOV	arg+8(FP), X10
    	JALR	RA, (X5)
    	RET
    
    // func asmcgocall(fn, arg unsafe.Pointer) int32
    // Call fn(arg) on the scheduler stack,
    // aligned appropriately for the gcc ABI.
    // See cgocall.go for more details.
    TEXT ·asmcgocall(SB),NOSPLIT,$0-20
    	MOV	fn+0(FP), X5
    	MOV	arg+8(FP), X10
    
    	MOV	X2, X8	// save original stack pointer
    	MOV	g, X9
    
    	// Figure out if we need to switch to m->g0 stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 27K bytes
    - Viewed (0)
  4. src/runtime/asm_s390x.s

    	CMPBEQ	R1, $0, 2(PC)
    	BL	runtime·abort(SB)
    	RET
    
    // func asmcgocall(fn, arg unsafe.Pointer) int32
    // Call fn(arg) on the scheduler stack,
    // aligned appropriately for the gcc ABI.
    // See cgocall.go for more details.
    TEXT ·asmcgocall(SB),NOSPLIT,$0-20
    	// R2 = argc; R3 = argv; R11 = temp; R13 = g; R15 = stack pointer
    	// C TLS base pointer in AR0:AR1
    	MOVD	fn+0(FP), R3
    	MOVD	arg+8(FP), R4
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 09:18:28 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. src/runtime/race_amd64.s

    // from Go code without going all the way through cgo.
    // First, it's much faster (up to 50% speedup for real Go programs).
    // Second, it eliminates race-related special cases from cgocall and scheduler.
    // Third, in long-term it will allow to remove cyclic runtime/race dependency on cmd/go.
    
    // A brief recap of the amd64 calling convention.
    // Arguments are passed in DI, SI, DX, CX, R8, R9, the rest is on stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  6. src/runtime/sys_linux_ppc64x.s

    	MOVD	g_syscallsp(R7), R7
    	CMP	$0, R7
    	BEQ	sigtramp    // g.m.curg.syscallsp == 0
    	MOVD	m_cgoCallers(R6), R7 // R7 is the fifth arg in C calling convention.
    	CMP	$0, R7
    	BEQ	sigtramp    // g.m.cgoCallers == nil
    	MOVW	m_cgoCallersUse(R6), R8
    	CMPW	$0, R8
    	BNE	sigtramp    // g.m.cgoCallersUse != 0
    
    	// Jump to a function in runtime/cgo.
    	// That function, written in C, will call the user's traceback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  7. src/runtime/signal_unix.go

    // If the signal handler receives a SIGPROF signal on a non-Go thread,
    // it tries to collect a traceback into sigprofCallers.
    // sigprofCallersUse is set to non-zero while sigprofCallers holds a traceback.
    var sigprofCallers cgoCallers
    var sigprofCallersUse uint32
    
    // sigprofNonGo is called if we receive a SIGPROF signal on a non-Go thread,
    // and the signal handler collected a stack trace in sigprofCallers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  8. src/runtime/asm_loong64.s

    	BEQ	R19, 2(PC)
    	JAL	runtime·abort(SB)
    	RET
    
    // func asmcgocall(fn, arg unsafe.Pointer) int32
    // Call fn(arg) on the scheduler stack,
    // aligned appropriately for the gcc ABI.
    // See cgocall.go for more details.
    TEXT ·asmcgocall(SB),NOSPLIT,$0-20
    	MOVV	fn+0(FP), R25
    	MOVV	arg+8(FP), R4
    
    	MOVV	R3, R12	// save original stack pointer
    	MOVV	g, R13
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  9. src/runtime/asm_mipsx.s

    	BEQ	R1, 2(PC)
    	JAL	runtime·abort(SB)
    	RET
    
    // func asmcgocall(fn, arg unsafe.Pointer) int32
    // Call fn(arg) on the scheduler stack,
    // aligned appropriately for the gcc ABI.
    // See cgocall.go for more details.
    TEXT ·asmcgocall(SB),NOSPLIT,$0-12
    	MOVW	fn+0(FP), R25
    	MOVW	arg+4(FP), R4
    
    	MOVW	R29, R3	// save original stack pointer
    	MOVW	g, R2
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 11:46:29 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  10. src/go/types/call.go

    		if x.mode != invalid && x.mode != constant_ {
    			check.hasCallOrRecv = true
    		}
    		return predeclaredFuncs[id].kind
    	}
    
    	// ordinary function/method call
    	// signature may be generic
    	cgocall := x.mode == cgofunc
    
    	// a type parameter may be "called" if all types have the same signature
    	sig, _ := coreType(x.typ).(*Signature)
    	if sig == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top