OLD | NEW |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // makeFuncStub is the code half of the function returned by MakeFunc. | 5 // makeFuncStub is the code half of the function returned by MakeFunc. |
6 // See the comment on the declaration of makeFuncStub in makefunc.go | 6 // See the comment on the declaration of makeFuncStub in makefunc.go |
7 // for more details. | 7 // for more details. |
| 8 // No argsize here, gc generates argsize info at call site. |
8 TEXT ·makeFuncStub(SB),7,$16 | 9 TEXT ·makeFuncStub(SB),7,$16 |
9 MOVQ DX, 0(SP) | 10 MOVQ DX, 0(SP) |
10 LEAQ argframe+0(FP), CX | 11 LEAQ argframe+0(FP), CX |
11 MOVQ CX, 8(SP) | 12 MOVQ CX, 8(SP) |
12 CALL ·callReflect(SB) | 13 CALL ·callReflect(SB) |
13 RET | 14 RET |
14 | 15 |
15 // methodValueCall is the code half of the function returned by makeMethodValue. | 16 // methodValueCall is the code half of the function returned by makeMethodValue. |
16 // See the comment on the declaration of methodValueCall in makefunc.go | 17 // See the comment on the declaration of methodValueCall in makefunc.go |
17 // for more details. | 18 // for more details. |
| 19 // No argsize here, gc generates argsize info at call site. |
18 TEXT ·methodValueCall(SB),7,$16 | 20 TEXT ·methodValueCall(SB),7,$16 |
19 MOVQ DX, 0(SP) | 21 MOVQ DX, 0(SP) |
20 LEAQ argframe+0(FP), CX | 22 LEAQ argframe+0(FP), CX |
21 MOVQ CX, 8(SP) | 23 MOVQ CX, 8(SP) |
22 CALL ·callMethod(SB) | 24 CALL ·callMethod(SB) |
23 RET | 25 RET |
OLD | NEW |