1
0
mirror of https://github.com/golang/go synced 2024-09-24 03:10:16 -06: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:
Cherry Zhang 2021-03-02 13:22:21 -05:00
parent 7205a4fbdc
commit 87d29939c8
3 changed files with 3 additions and 29 deletions

View File

@ -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)

View File

@ -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

View File

@ -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