aboutsummaryrefslogtreecommitdiff
path: root/src/reflect
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2021-04-04 12:10:32 -0400
committerCherry Zhang <cherryyz@google.com>2021-04-05 22:43:42 +0000
commitd446cb7cff024412c0a80c3971dac3049db9f18c (patch)
tree17513ccb6621c2febfd4e807c90e2debcae37e4e /src/reflect
parent0723f062ff906902c44086476f95016e50164c53 (diff)
downloadgo-d446cb7cff024412c0a80c3971dac3049db9f18c.tar.gz
go-d446cb7cff024412c0a80c3971dac3049db9f18c.zip
reflect: call ABI0 callReflect/callMethod
Currently the assembly code marshals arguments in ABI0 layout. Call the ABI0 functions. We may want to move to ABIInternal at some point (maybe when register args is always enabled). Updates #40724. Change-Id: I23bb3073f3f6420a8d0c119b65ae3e577578aadb Reviewed-on: https://go-review.googlesource.com/c/go/+/307237 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/reflect')
-rw-r--r--src/reflect/asm_amd64.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reflect/asm_amd64.s b/src/reflect/asm_amd64.s
index 29693042b6..22d95f2a7e 100644
--- a/src/reflect/asm_amd64.s
+++ b/src/reflect/asm_amd64.s
@@ -43,7 +43,7 @@ TEXT ·makeFuncStub<ABIInternal>(SB),(NOSPLIT|WRAPPER),$312
MOVQ AX, 16(SP)
LEAQ LOCAL_REGARGS(SP), AX
MOVQ AX, 24(SP)
- CALL ·callReflect<ABIInternal>(SB)
+ CALL ·callReflect(SB)
LEAQ LOCAL_REGARGS(SP), R12
CALL runtime·unspillArgs<ABIInternal>(SB)
RET
@@ -71,7 +71,7 @@ TEXT ·methodValueCall<ABIInternal>(SB),(NOSPLIT|WRAPPER),$312
MOVQ AX, 16(SP)
LEAQ LOCAL_REGARGS(SP), AX
MOVQ AX, 24(SP)
- CALL ·callMethod<ABIInternal>(SB)
+ CALL ·callMethod(SB)
LEAQ LOCAL_REGARGS(SP), R12
CALL runtime·unspillArgs<ABIInternal>(SB)
RET