mirror of
https://github.com/golang/go
synced 2024-11-25 15:57:57 -07:00
getcallerpc and setcallerpc
go/test: passes 87% (303/345) R=rsc APPROVED=rsc DELTA=19 (5 added, 6 deleted, 8 changed) OCL=35903 CL=35906
This commit is contained in:
parent
a15648658f
commit
33a7bcf315
@ -240,18 +240,14 @@ TEXT runtime·memclr(SB),7,$20
|
|||||||
MOVW -4(SP), g
|
MOVW -4(SP), g
|
||||||
RET
|
RET
|
||||||
|
|
||||||
TEXT runtime·getcallerpc+0(SB),7,$0
|
TEXT runtime·getcallerpc+0(SB),7,$-4
|
||||||
BL abort(SB)
|
MOVW 0(SP), R0
|
||||||
// MOVL x+0(FP),AX // addr of first arg
|
RET
|
||||||
// MOVL -4(AX),AX // get calling pc
|
|
||||||
// RET
|
|
||||||
|
|
||||||
TEXT runtime·setcallerpc+0(SB),7,$0
|
TEXT runtime·setcallerpc+0(SB),7,$-4
|
||||||
BL abort(SB)
|
MOVW x+4(FP), R0
|
||||||
// MOVL x+0(FP),AX // addr of first arg
|
MOVW R0, 0(SP)
|
||||||
// MOVL x+4(FP), BX
|
RET
|
||||||
// MOVL BX, -4(AX) // set calling pc
|
|
||||||
// RET
|
|
||||||
|
|
||||||
// runcgo(void(*fn)(void*), void *arg)
|
// runcgo(void(*fn)(void*), void *arg)
|
||||||
// Just call fn(arg), but first align the stack
|
// Just call fn(arg), but first align the stack
|
||||||
|
@ -6,12 +6,12 @@ blank.go
|
|||||||
blank1.go
|
blank1.go
|
||||||
bugs/bug136.go
|
bugs/bug136.go
|
||||||
bugs/bug162.go
|
bugs/bug162.go
|
||||||
bugs/bug169.go
|
|
||||||
bugs/bug190.go
|
|
||||||
bugs/bug193.go
|
bugs/bug193.go
|
||||||
bugs/bug196.go
|
bugs/bug196.go
|
||||||
chan/perm.go
|
chan/perm.go
|
||||||
|
chan/select.go
|
||||||
char_lit.go
|
char_lit.go
|
||||||
|
closedchan.go
|
||||||
cmp1.go
|
cmp1.go
|
||||||
cmp2.go
|
cmp2.go
|
||||||
cmp3.go
|
cmp3.go
|
||||||
@ -176,6 +176,7 @@ fixedbugs/bug165.go
|
|||||||
fixedbugs/bug166.go
|
fixedbugs/bug166.go
|
||||||
fixedbugs/bug167.go
|
fixedbugs/bug167.go
|
||||||
fixedbugs/bug168.go
|
fixedbugs/bug168.go
|
||||||
|
fixedbugs/bug169.go
|
||||||
fixedbugs/bug170.go
|
fixedbugs/bug170.go
|
||||||
fixedbugs/bug171.go
|
fixedbugs/bug171.go
|
||||||
fixedbugs/bug172.go
|
fixedbugs/bug172.go
|
||||||
@ -194,6 +195,7 @@ fixedbugs/bug186.go
|
|||||||
fixedbugs/bug187.go
|
fixedbugs/bug187.go
|
||||||
fixedbugs/bug188.go
|
fixedbugs/bug188.go
|
||||||
fixedbugs/bug189.go
|
fixedbugs/bug189.go
|
||||||
|
fixedbugs/bug190.go
|
||||||
fixedbugs/bug191.go
|
fixedbugs/bug191.go
|
||||||
fixedbugs/bug192.go
|
fixedbugs/bug192.go
|
||||||
fixedbugs/bug194.go
|
fixedbugs/bug194.go
|
||||||
@ -210,6 +212,7 @@ fixedbugs/bug205.go
|
|||||||
fixedbugs/bug206.go
|
fixedbugs/bug206.go
|
||||||
fixedbugs/bug208.go
|
fixedbugs/bug208.go
|
||||||
fixedbugs/bug209.go
|
fixedbugs/bug209.go
|
||||||
|
fixedbugs/bug211.go
|
||||||
float_lit.go
|
float_lit.go
|
||||||
for.go
|
for.go
|
||||||
func.go
|
func.go
|
||||||
|
Loading…
Reference in New Issue
Block a user