Black Lives Matter. Support the Equal Justice Initiative.

Text file src/reflect/asm_ppc64x.s

Documentation: reflect

     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  //go:build ppc64 || ppc64le
     6  // +build ppc64 ppc64le
     7  
     8  #include "textflag.h"
     9  #include "funcdata.h"
    10  #include "asm_ppc64x.h"
    11  
    12  // makeFuncStub is the code half of the function returned by MakeFunc.
    13  // See the comment on the declaration of makeFuncStub in makefunc.go
    14  // for more details.
    15  // No arg size here, runtime pulls arg map out of the func value.
    16  TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$40
    17  	NO_LOCAL_POINTERS
    18  	MOVD	R11, FIXED_FRAME+0(R1)
    19  	MOVD	$argframe+0(FP), R3
    20  	MOVD	R3, FIXED_FRAME+8(R1)
    21  	MOVB	R0, FIXED_FRAME+32(R1)
    22  	ADD	$FIXED_FRAME+32, R1, R3
    23  	MOVD	R3, FIXED_FRAME+16(R1)
    24  	MOVD	R0, FIXED_FRAME+24(R1)
    25  	BL	·callReflect(SB)
    26  	RET
    27  
    28  // methodValueCall is the code half of the function returned by makeMethodValue.
    29  // See the comment on the declaration of methodValueCall in makefunc.go
    30  // for more details.
    31  // No arg size here; runtime pulls arg map out of the func value.
    32  TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$40
    33  	NO_LOCAL_POINTERS
    34  	MOVD	R11, FIXED_FRAME+0(R1)
    35  	MOVD	$argframe+0(FP), R3
    36  	MOVD	R3, FIXED_FRAME+8(R1)
    37  	MOVB	R0, FIXED_FRAME+32(R1)
    38  	ADD	$FIXED_FRAME+32, R1, R3
    39  	MOVD	R3, FIXED_FRAME+16(R1)
    40  	MOVD	R0, FIXED_FRAME+24(R1)
    41  	BL	·callMethod(SB)
    42  	RET
    43  

View as plain text