...
Text file src/reflect/asm_arm64.s
1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 #include "textflag.h"
6 #include "funcdata.h"
7
8 // makeFuncStub is the code half of the function returned by MakeFunc.
9 // See the comment on the declaration of makeFuncStub in makefunc.go
10 // for more details.
11 // No arg size here, runtime pulls arg map out of the func value.
12 TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$40
13 NO_LOCAL_POINTERS
14 MOVD R26, 8(RSP)
15 MOVD $argframe+0(FP), R3
16 MOVD R3, 16(RSP)
17 MOVB $0, 32(RSP)
18 ADD $32, RSP, R3
19 MOVD R3, 24(RSP)
20 BL ·callReflect(SB)
21 RET
22
23 // methodValueCall is the code half of the function returned by makeMethodValue.
24 // See the comment on the declaration of methodValueCall in makefunc.go
25 // for more details.
26 // No arg size here; runtime pulls arg map out of the func value.
27 TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$40
28 NO_LOCAL_POINTERS
29 MOVD R26, 8(RSP)
30 MOVD $argframe+0(FP), R3
31 MOVD R3, 16(RSP)
32 MOVB $0, 32(RSP)
33 ADD $32, RSP, R3
34 MOVD R3, 24(RSP)
35 BL ·callMethod(SB)
36 RET
View as plain text