mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
3 changed files with 3 additions and 29 deletions
|
|
@ -167,21 +167,13 @@ call:
|
||||||
ret:
|
ret:
|
||||||
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)
|
// func runtime·racefuncenter(pc uintptr)
|
||||||
// Called from instrumented code.
|
// Called from instrumented code.
|
||||||
TEXT runtime·racefuncenter(SB), NOSPLIT, $0-8
|
TEXT runtime·racefuncenter(SB), NOSPLIT, $0-8
|
||||||
MOVQ callpc+0(FP), R11
|
MOVQ callpc+0(FP), R11
|
||||||
JMP racefuncenter<>(SB)
|
JMP racefuncenter<>(SB)
|
||||||
|
|
||||||
// Common code for racefuncenter/racefuncenterfp
|
// Common code for racefuncenter
|
||||||
// R11 = caller's return address
|
// R11 = caller's return address
|
||||||
TEXT racefuncenter<>(SB), NOSPLIT, $0-0
|
TEXT racefuncenter<>(SB), NOSPLIT, $0-0
|
||||||
MOVQ DX, BX // save function entry context (for closures)
|
MOVQ DX, BX // save function entry context (for closures)
|
||||||
|
|
|
||||||
|
|
@ -160,21 +160,13 @@ call:
|
||||||
ret:
|
ret:
|
||||||
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)
|
// func runtime·racefuncenter(pc uintptr)
|
||||||
// Called from instrumented code.
|
// Called from instrumented code.
|
||||||
TEXT runtime·racefuncenter(SB), NOSPLIT, $0-8
|
TEXT runtime·racefuncenter(SB), NOSPLIT, $0-8
|
||||||
MOVD callpc+0(FP), R9
|
MOVD callpc+0(FP), R9
|
||||||
JMP racefuncenter<>(SB)
|
JMP racefuncenter<>(SB)
|
||||||
|
|
||||||
// Common code for racefuncenter/racefuncenterfp
|
// Common code for racefuncenter
|
||||||
// R9 = caller's return address
|
// R9 = caller's return address
|
||||||
TEXT racefuncenter<>(SB), NOSPLIT, $0-0
|
TEXT racefuncenter<>(SB), NOSPLIT, $0-0
|
||||||
load_g
|
load_g
|
||||||
|
|
|
||||||
|
|
@ -163,23 +163,13 @@ call:
|
||||||
ret:
|
ret:
|
||||||
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)
|
// func runtime·racefuncenter(pc uintptr)
|
||||||
// Called from instrumented Go code.
|
// 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
|
TEXT runtime·racefuncenter(SB), NOSPLIT, $0-8
|
||||||
MOVD callpc+0(FP), R8
|
MOVD callpc+0(FP), R8
|
||||||
BR racefuncenter<>(SB)
|
BR racefuncenter<>(SB)
|
||||||
|
|
||||||
// Common code for racefuncenter/racefuncenterfp
|
// Common code for racefuncenter
|
||||||
// R11 = caller's return address
|
// R11 = caller's return address
|
||||||
TEXT racefuncenter<>(SB), NOSPLIT, $0-0
|
TEXT racefuncenter<>(SB), NOSPLIT, $0-0
|
||||||
MOVD runtime·tls_g(SB), R10
|
MOVD runtime·tls_g(SB), R10
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue