github.com/rohankumardubey/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/cmd/gc/runtime.go (about)

     1  // Copyright 2009 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  // NOTE: If you change this file you must run "./mkbuiltin"
     6  // to update builtin.c.  This is not done automatically
     7  // to avoid depending on having a working compiler binary.
     8  
     9  // +build ignore
    10  
    11  package PACKAGE
    12  
    13  // emitted by compiler, not referred to by go programs
    14  
    15  func new(typ *byte) *any
    16  func panicindex()
    17  func panicslice()
    18  func throwreturn()
    19  func throwinit()
    20  func panicwrap(string, string, string)
    21  
    22  func panic(interface{})
    23  func recover(*int32) interface{}
    24  
    25  func printbool(bool)
    26  func printfloat(float64)
    27  func printint(int64)
    28  func printuint(uint64)
    29  func printcomplex(complex128)
    30  func printstring(string)
    31  func printpointer(any)
    32  func printiface(any)
    33  func printeface(any)
    34  func printslice(any)
    35  func printnl()
    36  func printsp()
    37  func goprintf()
    38  
    39  // filled in by compiler: int n, string, string, ...
    40  func concatstring()
    41  
    42  func cmpstring(string, string) int
    43  func eqstring(string, string) bool
    44  func intstring(int64) string
    45  func slicebytetostring([]byte) string
    46  func slicerunetostring([]rune) string
    47  func stringtoslicebyte(string) []byte
    48  func stringtoslicerune(string) []rune
    49  func stringiter(string, int) int
    50  func stringiter2(string, int) (retk int, retv rune)
    51  func copy(to any, fr any, wid uintptr) int
    52  func slicestringcopy(to any, fr any) int
    53  
    54  // interface conversions
    55  func typ2Itab(typ *byte, typ2 *byte, cache **byte) (ret *byte)
    56  func convI2E(elem any) (ret any)
    57  func convI2I(typ *byte, elem any) (ret any)
    58  func convT2E(typ *byte, elem any) (ret any)
    59  func convT2I(typ *byte, typ2 *byte, cache **byte, elem any) (ret any)
    60  
    61  // interface type assertions  x.(T)
    62  func assertE2E(typ *byte, iface any) (ret any)
    63  func assertE2E2(typ *byte, iface any) (ret any, ok bool)
    64  func assertE2I(typ *byte, iface any) (ret any)
    65  func assertE2I2(typ *byte, iface any) (ret any, ok bool)
    66  func assertE2T(typ *byte, iface any) (ret any)
    67  func assertE2T2(typ *byte, iface any) (ret any, ok bool)
    68  func assertI2E(typ *byte, iface any) (ret any)
    69  func assertI2E2(typ *byte, iface any) (ret any, ok bool)
    70  func assertI2I(typ *byte, iface any) (ret any)
    71  func assertI2I2(typ *byte, iface any) (ret any, ok bool)
    72  func assertI2T(typ *byte, iface any) (ret any)
    73  func assertI2T2(typ *byte, iface any) (ret any, ok bool)
    74  func assertI2TOK(typ *byte, iface any) (ok bool)
    75  func assertE2TOK(typ *byte, iface any) (ok bool)
    76  
    77  func ifaceeq(i1 any, i2 any) (ret bool)
    78  func efaceeq(i1 any, i2 any) (ret bool)
    79  func ifacethash(i1 any) (ret uint32)
    80  func efacethash(i1 any) (ret uint32)
    81  
    82  func equal(typ *byte, x1, x2 any) (ret bool)
    83  
    84  // *byte is really *runtime.Type
    85  func makemap(mapType *byte, hint int64) (hmap map[any]any)
    86  func mapaccess1(mapType *byte, hmap map[any]any, key any) (val any)
    87  func mapaccess1_fast32(mapType *byte, hmap map[any]any, key any) (val *any)
    88  func mapaccess1_fast64(mapType *byte, hmap map[any]any, key any) (val *any)
    89  func mapaccess1_faststr(mapType *byte, hmap map[any]any, key any) (val *any)
    90  func mapaccess2(mapType *byte, hmap map[any]any, key any) (val any, pres bool)
    91  func mapaccess2_fast32(mapType *byte, hmap map[any]any, key any) (val *any, pres bool)
    92  func mapaccess2_fast64(mapType *byte, hmap map[any]any, key any) (val *any, pres bool)
    93  func mapaccess2_faststr(mapType *byte, hmap map[any]any, key any) (val *any, pres bool)
    94  func mapassign1(mapType *byte, hmap map[any]any, key any, val any)
    95  func mapiterinit(mapType *byte, hmap map[any]any, hiter *any)
    96  func mapdelete(mapType *byte, hmap map[any]any, key any)
    97  func mapiternext(hiter *any)
    98  func mapiter1(hiter *any) (key any)
    99  func mapiter2(hiter *any) (key any, val any)
   100  
   101  // *byte is really *runtime.Type
   102  func makechan(chanType *byte, hint int64) (hchan chan any)
   103  func chanrecv1(chanType *byte, hchan <-chan any) (elem any)
   104  func chanrecv2(chanType *byte, hchan <-chan any) (elem any, received bool)
   105  func chansend1(chanType *byte, hchan chan<- any, elem any)
   106  func closechan(hchan any)
   107  
   108  func selectnbsend(chanType *byte, hchan chan<- any, elem any) bool
   109  func selectnbrecv(chanType *byte, elem *any, hchan <-chan any) bool
   110  func selectnbrecv2(chanType *byte, elem *any, received *bool, hchan <-chan any) bool
   111  
   112  func newselect(size int32) (sel *byte)
   113  func selectsend(sel *byte, hchan chan<- any, elem *any) (selected bool)
   114  func selectrecv(sel *byte, hchan <-chan any, elem *any) (selected bool)
   115  func selectrecv2(sel *byte, hchan <-chan any, elem *any, received *bool) (selected bool)
   116  func selectdefault(sel *byte) (selected bool)
   117  func selectgo(sel *byte)
   118  func block()
   119  
   120  func makeslice(typ *byte, nel int64, cap int64) (ary []any)
   121  func growslice(typ *byte, old []any, n int64) (ary []any)
   122  func memmove(to *any, frm *any, length uintptr)
   123  
   124  func memequal(eq *bool, size uintptr, x, y *any)
   125  func memequal8(eq *bool, size uintptr, x, y *any)
   126  func memequal16(eq *bool, size uintptr, x, y *any)
   127  func memequal32(eq *bool, size uintptr, x, y *any)
   128  func memequal64(eq *bool, size uintptr, x, y *any)
   129  func memequal128(eq *bool, size uintptr, x, y *any)
   130  
   131  // only used on 32-bit
   132  func int64div(int64, int64) int64
   133  func uint64div(uint64, uint64) uint64
   134  func int64mod(int64, int64) int64
   135  func uint64mod(uint64, uint64) uint64
   136  func float64toint64(float64) int64
   137  func float64touint64(float64) uint64
   138  func int64tofloat64(int64) float64
   139  func uint64tofloat64(uint64) float64
   140  
   141  func complex128div(num complex128, den complex128) (quo complex128)
   142  
   143  // race detection
   144  func racefuncenter(uintptr)
   145  func racefuncexit()
   146  func raceread(uintptr)
   147  func racewrite(uintptr)
   148  func racereadrange(addr, size uintptr)
   149  func racewriterange(addr, size uintptr)