mirror of
https://github.com/golang/go
synced 2024-11-22 20:24:47 -07:00
runtime: remove racefuncenterfp
No longer needed with previous CL. Change-Id: I7c01f9e0e34ecb9553ef1b3d662f33419fd3a244 Reviewed-on: https://go-review.googlesource.com/c/go/+/297932 Trust: Cherry Zhang <cherryyz@google.com> Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
parent
7205a4fbdc
commit
87d29939c8
@ -167,21 +167,13 @@ call:
|
||||
ret:
|
||||
RET
|
||||
|
||||
// func runtime·racefuncenterfp(fp uintptr)
|
||||
// Called from instrumented code.
|
||||
// Like racefuncenter but passes FP, not PC
|
||||
TEXT runtime·racefuncenterfp(SB), NOSPLIT, $0-8
|
||||
MOVQ fp+0(FP), R11
|
||||
MOVQ -8(R11), R11
|
||||
JMP racefuncenter<>(SB)
|
||||
|
||||
// func runtime·racefuncenter(pc uintptr)
|
||||
// Called from instrumented code.
|
||||
TEXT runtime·racefuncenter(SB), NOSPLIT, $0-8
|
||||
MOVQ callpc+0(FP), R11
|
||||
JMP racefuncenter<>(SB)
|
||||
|
||||
// Common code for racefuncenter/racefuncenterfp
|
||||
// Common code for racefuncenter
|
||||
// R11 = caller's return address
|
||||
TEXT racefuncenter<>(SB), NOSPLIT, $0-0
|
||||
MOVQ DX, BX // save function entry context (for closures)
|
||||
|
@ -160,21 +160,13 @@ call:
|
||||
ret:
|
||||
RET
|
||||
|
||||
// func runtime·racefuncenterfp(fp uintptr)
|
||||
// Called from instrumented code.
|
||||
// Like racefuncenter but doesn't passes an arg, uses the caller pc
|
||||
// from the first slot on the stack
|
||||
TEXT runtime·racefuncenterfp(SB), NOSPLIT, $0-0
|
||||
MOVD 0(RSP), R9
|
||||
JMP racefuncenter<>(SB)
|
||||
|
||||
// func runtime·racefuncenter(pc uintptr)
|
||||
// Called from instrumented code.
|
||||
TEXT runtime·racefuncenter(SB), NOSPLIT, $0-8
|
||||
MOVD callpc+0(FP), R9
|
||||
JMP racefuncenter<>(SB)
|
||||
|
||||
// Common code for racefuncenter/racefuncenterfp
|
||||
// Common code for racefuncenter
|
||||
// R9 = caller's return address
|
||||
TEXT racefuncenter<>(SB), NOSPLIT, $0-0
|
||||
load_g
|
||||
|
@ -163,23 +163,13 @@ call:
|
||||
ret:
|
||||
RET
|
||||
|
||||
// func runtime·racefuncenterfp()
|
||||
// Called from instrumented Go code.
|
||||
// Like racefuncenter but doesn't pass an arg, uses the caller pc
|
||||
// from the first slot on the stack.
|
||||
TEXT runtime·racefuncenterfp(SB), NOSPLIT, $0-0
|
||||
MOVD 0(R1), R8
|
||||
BR racefuncenter<>(SB)
|
||||
|
||||
// func runtime·racefuncenter(pc uintptr)
|
||||
// Called from instrumented Go code.
|
||||
// Not used now since gc/racewalk.go doesn't pass the
|
||||
// correct caller pc and racefuncenterfp can do it.
|
||||
TEXT runtime·racefuncenter(SB), NOSPLIT, $0-8
|
||||
MOVD callpc+0(FP), R8
|
||||
BR racefuncenter<>(SB)
|
||||
|
||||
// Common code for racefuncenter/racefuncenterfp
|
||||
// Common code for racefuncenter
|
||||
// R11 = caller's return address
|
||||
TEXT racefuncenter<>(SB), NOSPLIT, $0-0
|
||||
MOVD runtime·tls_g(SB), R10
|
||||
|
Loading…
Reference in New Issue
Block a user