]> Cypherpunks repositories - gostls13.git/commitdiff
getcallerpc and setcallerpc
authorKai Backman <kaib@golang.org>
Tue, 20 Oct 2009 04:58:16 +0000 (21:58 -0700)
committerKai Backman <kaib@golang.org>
Tue, 20 Oct 2009 04:58:16 +0000 (21:58 -0700)
go/test: passes 87% (303/345)

R=rsc
APPROVED=rsc
DELTA=19  (5 added, 6 deleted, 8 changed)
OCL=35903
CL=35906

src/pkg/runtime/arm/asm.s
test/arm-pass.txt

index 4052bccba1ee603b0aa3a5d9bdb5205781c230fc..d8b5a120ccd89f6d2d3aea3acabc4abe4e14459b 100644 (file)
@@ -240,18 +240,14 @@ TEXT      runtime·memclr(SB),7,$20
        MOVW    -4(SP), g
        RET
 
-TEXT   runtime·getcallerpc+0(SB),7,$0
-       BL      abort(SB)
-//     MOVL    x+0(FP),AX              // addr of first arg
-//     MOVL    -4(AX),AX               // get calling pc
-//     RET
+TEXT   runtime·getcallerpc+0(SB),7,$-4
+       MOVW    0(SP), R0
+       RET
 
-TEXT   runtime·setcallerpc+0(SB),7,$0
-       BL      abort(SB)
-//     MOVL    x+0(FP),AX              // addr of first arg
-//     MOVL    x+4(FP), BX
-//     MOVL    BX, -4(AX)              // set calling pc
-//     RET
+TEXT   runtime·setcallerpc+0(SB),7,$-4
+       MOVW    x+4(FP), R0
+       MOVW    R0, 0(SP)
+       RET
 
 // runcgo(void(*fn)(void*), void *arg)
 // Just call fn(arg), but first align the stack
index 6930db1a9c07b1ff50d487d2b9e88cf492c956e0..fabe039ce82cd18f4b97062f9ca9534ddc0501e0 100644 (file)
@@ -6,12 +6,12 @@ blank.go
 blank1.go
 bugs/bug136.go
 bugs/bug162.go
-bugs/bug169.go
-bugs/bug190.go
 bugs/bug193.go
 bugs/bug196.go
 chan/perm.go
+chan/select.go
 char_lit.go
+closedchan.go
 cmp1.go
 cmp2.go
 cmp3.go
@@ -176,6 +176,7 @@ fixedbugs/bug165.go
 fixedbugs/bug166.go
 fixedbugs/bug167.go
 fixedbugs/bug168.go
+fixedbugs/bug169.go
 fixedbugs/bug170.go
 fixedbugs/bug171.go
 fixedbugs/bug172.go
@@ -194,6 +195,7 @@ fixedbugs/bug186.go
 fixedbugs/bug187.go
 fixedbugs/bug188.go
 fixedbugs/bug189.go
+fixedbugs/bug190.go
 fixedbugs/bug191.go
 fixedbugs/bug192.go
 fixedbugs/bug194.go
@@ -210,6 +212,7 @@ fixedbugs/bug205.go
 fixedbugs/bug206.go
 fixedbugs/bug208.go
 fixedbugs/bug209.go
+fixedbugs/bug211.go
 float_lit.go
 for.go
 func.go