mirror of
https://github.com/golang/go
synced 2024-11-17 18:54:42 -07:00
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>
This commit is contained in:
parent
0723f062ff
commit
d446cb7cff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user