| 1 |
// Copyright 2019 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 |
package runtime |
| 6 |
|
| 7 |
import "unsafe" |
| 8 |
|
| 9 |
// Called from assembly only; declared for go vet. |
| 10 |
func load_g() |
| 11 |
func save_g() |
| 12 |
|
| 13 |
//go:noescape |
| 14 |
func asmcgocall_no_g(fn, arg unsafe.Pointer) |
| 15 |
|
| 16 |
func emptyfunc() |
| 17 |
|
| 18 |
// Used by reflectcall and the reflect package. |
| 19 |
// |
| 20 |
// Spills/loads arguments in registers to/from an internal/abi.RegArgs |
| 21 |
// respectively. Does not follow the Go ABI. |
| 22 |
func spillArgs() |
| 23 |
func unspillArgs() |
| 24 |
|
| 25 |
// getfp returns the frame pointer register of its caller or 0 if not implemented. |
| 26 |
// TODO: Make this a compiler intrinsic |
| 27 |
func getfp() uintptr |