aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/asm_arm.s
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2016-09-22 17:02:22 -0400
committerAustin Clements <austin@google.com>2016-09-26 22:01:32 +0000
commitd211c2d3774d78173e004f0ffb1e2eae9ae19706 (patch)
tree501a7ece9533e110b6d3a4e78c619313ce2eda37 /src/runtime/asm_arm.s
parentaaf4099a5cabfee52b1c481f2a30ee0dd02ef247 (diff)
downloadgo-d211c2d3774d78173e004f0ffb1e2eae9ae19706.tar.gz
go-d211c2d3774d78173e004f0ffb1e2eae9ae19706.zip
runtime: implement getcallersp in Go
This makes it possible to inline getcallersp. getcallersp is on the hot path of defers, so this slightly speeds up defer: name old time/op new time/op delta Defer-4 78.3ns ± 2% 75.1ns ± 1% -4.00% (p=0.000 n=9+8) Updates #14939. Change-Id: Icc1cc4cd2f0a81fc4c8344432d0b2e783accacdd Reviewed-on: https://go-review.googlesource.com/29655 TryBot-Result: Gobot Gobot <gobot@golang.org> Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: David Crawshaw <crawshaw@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/asm_arm.s')
-rw-r--r--src/runtime/asm_arm.s6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s
index 29f39cf15d..d768060af2 100644
--- a/src/runtime/asm_arm.s
+++ b/src/runtime/asm_arm.s
@@ -695,12 +695,6 @@ setbar:
BL runtime·setNextBarrierPC(SB)
RET
-TEXT runtime·getcallersp(SB),NOSPLIT,$-4-8
- MOVW argp+0(FP), R0
- MOVW $-4(R0), R0
- MOVW R0, ret+4(FP)
- RET
-
TEXT runtime·emptyfunc(SB),0,$0-0
RET