github.com/rohankumardubey/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/pkg/reflect/asm_amd64.s (about)

     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 "../../cmd/ld/textflag.h"
     6  
     7  // makeFuncStub is the code half of the function returned by MakeFunc.
     8  // See the comment on the declaration of makeFuncStub in makefunc.go
     9  // for more details.
    10  // No argsize here, gc generates argsize info at call site.
    11  TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$16
    12  	MOVQ	DX, 0(SP)
    13  	LEAQ	argframe+0(FP), CX
    14  	MOVQ	CX, 8(SP)
    15  	CALL	·callReflect(SB)
    16  	RET
    17  
    18  // methodValueCall is the code half of the function returned by makeMethodValue.
    19  // See the comment on the declaration of methodValueCall in makefunc.go
    20  // for more details.
    21  // No argsize here, gc generates argsize info at call site.
    22  TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$16
    23  	MOVQ	DX, 0(SP)
    24  	LEAQ	argframe+0(FP), CX
    25  	MOVQ	CX, 8(SP)
    26  	CALL	·callMethod(SB)
    27  	RET