diff options
author | Austin Clements <austin@google.com> | 2016-09-22 17:02:22 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2016-09-26 22:01:32 +0000 |
commit | d211c2d3774d78173e004f0ffb1e2eae9ae19706 (patch) | |
tree | 501a7ece9533e110b6d3a4e78c619313ce2eda37 /src/runtime/asm_arm64.s | |
parent | aaf4099a5cabfee52b1c481f2a30ee0dd02ef247 (diff) | |
download | go-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_arm64.s')
-rw-r--r-- | src/runtime/asm_arm64.s | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/runtime/asm_arm64.s b/src/runtime/asm_arm64.s index 066b534900..c46569f68c 100644 --- a/src/runtime/asm_arm64.s +++ b/src/runtime/asm_arm64.s @@ -731,12 +731,6 @@ setbar: BL runtime·setNextBarrierPC(SB) RET -TEXT runtime·getcallersp(SB),NOSPLIT,$0-16 - MOVD argp+0(FP), R0 - SUB $8, R0 - MOVD R0, ret+8(FP) - RET - TEXT runtime·abort(SB),NOSPLIT,$-8-0 B (ZR) UNDEF |