diff options
author | Austin Clements <austin@google.com> | 2017-09-22 15:16:26 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2017-09-22 22:17:15 +0000 |
commit | 229aaac19e041ac74ab043d6ef09c8406bb0a9e7 (patch) | |
tree | bfe5daa095c648c67152a4cfdc7365b55c203876 /src/runtime/asm_arm64.s | |
parent | 8cb2952f2f9c80246572b951e2663e79962796c0 (diff) | |
download | go-229aaac19e041ac74ab043d6ef09c8406bb0a9e7.tar.gz go-229aaac19e041ac74ab043d6ef09c8406bb0a9e7.zip |
runtime: remove getcallerpc argument
Now that getcallerpc is a compiler intrinsic on x86 and non-x86
platforms don't need the argument, we can drop it.
Sadly, this doesn't let us remove any dummy arguments since all of
those cases also use getcallersp, which still takes the argument
pointer, but this is at least an improvement.
Change-Id: I9c34a41cf2c18cba57f59938390bf9491efb22d2
Reviewed-on: https://go-review.googlesource.com/65474
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/asm_arm64.s')
-rw-r--r-- | src/runtime/asm_arm64.s | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/asm_arm64.s b/src/runtime/asm_arm64.s index 4a68b4ab23..64311be479 100644 --- a/src/runtime/asm_arm64.s +++ b/src/runtime/asm_arm64.s @@ -704,9 +704,9 @@ TEXT setg_gcc<>(SB),NOSPLIT,$8 MOVD savedR27-8(SP), R27 RET -TEXT runtime·getcallerpc(SB),NOSPLIT,$8-16 - MOVD 16(RSP), R0 // LR saved by caller - MOVD R0, ret+8(FP) +TEXT runtime·getcallerpc(SB),NOSPLIT,$-8-8 + MOVD 0(RSP), R0 // LR saved by caller + MOVD R0, ret+0(FP) RET TEXT runtime·abort(SB),NOSPLIT,$-8-0 |