blob: a87131e0040256668e3614339dc905c31b61cdbb [file] [log] [blame]
Shenghou Maca7f2c72014-08-12 21:43:31 -04001// 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
Russ Cox09d92b62014-12-05 19:13:20 -05005// +build ppc64 ppc64le
Shenghou Maca7f2c72014-08-12 21:43:31 -04006
Austin Clements32082502014-10-22 11:21:16 -04007#include "textflag.h"
Austin Clements700ab162014-10-31 15:29:03 -04008#include "funcdata.h"
Shenghou Maca7f2c72014-08-12 21:43:31 -04009
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.
Austin Clements700ab162014-10-31 15:29:03 -040013// No arg size here, runtime pulls arg map out of the func value.
Shenghou Maca7f2c72014-08-12 21:43:31 -040014TEXT ·makeFuncStub(SB),(NOSPLIT|WRAPPER),$16
Austin Clements700ab162014-10-31 15:29:03 -040015 NO_LOCAL_POINTERS
Shenghou Maca7f2c72014-08-12 21:43:31 -040016 MOVD R11, 8(R1)
17 MOVD $argframe+0(FP), R3
18 MOVD R3, 16(R1)
19 BL ·callReflect(SB)
20 RETURN
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.
Austin Clements700ab162014-10-31 15:29:03 -040025// No arg size here; runtime pulls arg map out of the func value.
Shenghou Maca7f2c72014-08-12 21:43:31 -040026TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$16
Austin Clements700ab162014-10-31 15:29:03 -040027 NO_LOCAL_POINTERS
Shenghou Maca7f2c72014-08-12 21:43:31 -040028 MOVD R11, 8(R1)
29 MOVD $argframe+0(FP), R3
30 MOVD R3, 16(R1)
31 BL ·callMethod(SB)
32 RETURN