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