Text file
src/reflect/asm_wasm32.s
1 // Copyright 2018 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),$24
13 NO_LOCAL_POINTERS
14
15 MOVW CTXT, 0(SP)
16
17 Get SP
18 Get SP
19 I64ExtendI32U
20 I64Const $argframe+0(FP)
21 I64Add
22 I64Store32 $4
23
24 // runtime.argMapInternal reads retValid at 4*PtrSize from SP.
25 MOVB $0, 16(SP)
26 MOVW $16(SP), 8(SP)
27 MOVW $0, 12(SP)
28
29 CALL ·callReflect(SB)
30 RET
31
32 // methodValueCall is the code half of the function returned by makeMethodValue.
33 // See the comment on the declaration of methodValueCall in makefunc.go
34 // for more details.
35 // No arg size here; runtime pulls arg map out of the func value.
36 TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$24
37 NO_LOCAL_POINTERS
38
39 MOVW CTXT, 0(SP)
40
41 Get SP
42 Get SP
43 I64ExtendI32U
44 I64Const $argframe+0(FP)
45 I64Add
46 I64Store32 $4
47
48 MOVB $0, 16(SP)
49 MOVW $16(SP), 8(SP)
50 MOVW $0, 12(SP)
51
52 CALL ·callMethod(SB)
53 RET
54
View as plain text