2013-03-27 21:51:07 +01:00
|
|
|
// AUTO-GENERATED by mkbuiltin; DO NOT EDIT
|
2009-10-15 23:10:49 -07:00
|
|
|
char *runtimeimport =
|
|
|
|
|
"package runtime\n"
|
2011-05-11 16:35:11 +02:00
|
|
|
"import runtime \"runtime\"\n"
|
2014-07-30 09:01:52 -07:00
|
|
|
"func @\"\".newobject (@\"\".typ·2 *byte) (? *any)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".panicindex ()\n"
|
|
|
|
|
"func @\"\".panicslice ()\n"
|
all: merge NaCl branch (part 1)
See golang.org/s/go13nacl for design overview.
This CL is the mostly mechanical changes from rsc's Go 1.2 based NaCl branch, specifically 39cb35750369 to 500771b477cf from https://code.google.com/r/rsc-go13nacl. This CL does not include working NaCl support, there are probably two or three more large merges to come.
CL 15750044 is not included as it involves more invasive changes to the linker which will need to be merged separately.
The exact change lists included are
15050047: syscall: support for Native Client
15360044: syscall: unzip implementation for Native Client
15370044: syscall: Native Client SRPC implementation
15400047: cmd/dist, cmd/go, go/build, test: support for Native Client
15410048: runtime: support for Native Client
15410049: syscall: file descriptor table for Native Client
15410050: syscall: in-memory file system for Native Client
15440048: all: update +build lines for Native Client port
15540045: cmd/6g, cmd/8g, cmd/gc: support for Native Client
15570045: os: support for Native Client
15680044: crypto/..., hash/crc32, reflect, sync/atomic: support for amd64p32
15690044: net: support for Native Client
15690048: runtime: support for fake time like on Go Playground
15690051: build: disable various tests on Native Client
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/68150047
2014-02-25 09:47:42 -05:00
|
|
|
"func @\"\".panicdivide ()\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".throwreturn ()\n"
|
|
|
|
|
"func @\"\".throwinit ()\n"
|
|
|
|
|
"func @\"\".panicwrap (? string, ? string, ? string)\n"
|
|
|
|
|
"func @\"\".panic (? interface {})\n"
|
|
|
|
|
"func @\"\".recover (? *int32) (? interface {})\n"
|
|
|
|
|
"func @\"\".printbool (? bool)\n"
|
|
|
|
|
"func @\"\".printfloat (? float64)\n"
|
|
|
|
|
"func @\"\".printint (? int64)\n"
|
|
|
|
|
"func @\"\".printuint (? uint64)\n"
|
|
|
|
|
"func @\"\".printcomplex (? complex128)\n"
|
|
|
|
|
"func @\"\".printstring (? string)\n"
|
|
|
|
|
"func @\"\".printpointer (? any)\n"
|
|
|
|
|
"func @\"\".printiface (? any)\n"
|
|
|
|
|
"func @\"\".printeface (? any)\n"
|
|
|
|
|
"func @\"\".printslice (? any)\n"
|
|
|
|
|
"func @\"\".printnl ()\n"
|
|
|
|
|
"func @\"\".printsp ()\n"
|
|
|
|
|
"func @\"\".goprintf ()\n"
|
2013-12-03 10:39:19 -08:00
|
|
|
"func @\"\".concatstring2 (? string, ? string) (? string)\n"
|
|
|
|
|
"func @\"\".concatstring3 (? string, ? string, ? string) (? string)\n"
|
|
|
|
|
"func @\"\".concatstring4 (? string, ? string, ? string, ? string) (? string)\n"
|
|
|
|
|
"func @\"\".concatstring5 (? string, ? string, ? string, ? string, ? string) (? string)\n"
|
|
|
|
|
"func @\"\".concatstrings (? []string) (? string)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".cmpstring (? string, ? string) (? int)\n"
|
|
|
|
|
"func @\"\".eqstring (? string, ? string) (? bool)\n"
|
|
|
|
|
"func @\"\".intstring (? int64) (? string)\n"
|
|
|
|
|
"func @\"\".slicebytetostring (? []byte) (? string)\n"
|
2014-04-03 19:05:17 -04:00
|
|
|
"func @\"\".slicebytetostringtmp (? []byte) (? string)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".slicerunetostring (? []rune) (? string)\n"
|
|
|
|
|
"func @\"\".stringtoslicebyte (? string) (? []byte)\n"
|
|
|
|
|
"func @\"\".stringtoslicerune (? string) (? []rune)\n"
|
|
|
|
|
"func @\"\".stringiter (? string, ? int) (? int)\n"
|
|
|
|
|
"func @\"\".stringiter2 (? string, ? int) (@\"\".retk·1 int, @\"\".retv·2 rune)\n"
|
|
|
|
|
"func @\"\".copy (@\"\".to·2 any, @\"\".fr·3 any, @\"\".wid·4 uintptr) (? int)\n"
|
|
|
|
|
"func @\"\".slicestringcopy (@\"\".to·2 any, @\"\".fr·3 any) (? int)\n"
|
|
|
|
|
"func @\"\".typ2Itab (@\"\".typ·2 *byte, @\"\".typ2·3 *byte, @\"\".cache·4 **byte) (@\"\".ret·1 *byte)\n"
|
|
|
|
|
"func @\"\".convI2E (@\"\".elem·2 any) (@\"\".ret·1 any)\n"
|
|
|
|
|
"func @\"\".convI2I (@\"\".typ·2 *byte, @\"\".elem·3 any) (@\"\".ret·1 any)\n"
|
2013-12-17 16:55:06 -08:00
|
|
|
"func @\"\".convT2E (@\"\".typ·2 *byte, @\"\".elem·3 *any) (@\"\".ret·1 any)\n"
|
|
|
|
|
"func @\"\".convT2I (@\"\".typ·2 *byte, @\"\".typ2·3 *byte, @\"\".cache·4 **byte, @\"\".elem·5 *any) (@\"\".ret·1 any)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".assertE2E (@\"\".typ·2 *byte, @\"\".iface·3 any) (@\"\".ret·1 any)\n"
|
|
|
|
|
"func @\"\".assertE2E2 (@\"\".typ·3 *byte, @\"\".iface·4 any) (@\"\".ret·1 any, @\"\".ok·2 bool)\n"
|
|
|
|
|
"func @\"\".assertE2I (@\"\".typ·2 *byte, @\"\".iface·3 any) (@\"\".ret·1 any)\n"
|
|
|
|
|
"func @\"\".assertE2I2 (@\"\".typ·3 *byte, @\"\".iface·4 any) (@\"\".ret·1 any, @\"\".ok·2 bool)\n"
|
|
|
|
|
"func @\"\".assertE2T (@\"\".typ·2 *byte, @\"\".iface·3 any) (@\"\".ret·1 any)\n"
|
|
|
|
|
"func @\"\".assertE2T2 (@\"\".typ·3 *byte, @\"\".iface·4 any) (@\"\".ret·1 any, @\"\".ok·2 bool)\n"
|
|
|
|
|
"func @\"\".assertI2E (@\"\".typ·2 *byte, @\"\".iface·3 any) (@\"\".ret·1 any)\n"
|
|
|
|
|
"func @\"\".assertI2E2 (@\"\".typ·3 *byte, @\"\".iface·4 any) (@\"\".ret·1 any, @\"\".ok·2 bool)\n"
|
|
|
|
|
"func @\"\".assertI2I (@\"\".typ·2 *byte, @\"\".iface·3 any) (@\"\".ret·1 any)\n"
|
|
|
|
|
"func @\"\".assertI2I2 (@\"\".typ·3 *byte, @\"\".iface·4 any) (@\"\".ret·1 any, @\"\".ok·2 bool)\n"
|
|
|
|
|
"func @\"\".assertI2T (@\"\".typ·2 *byte, @\"\".iface·3 any) (@\"\".ret·1 any)\n"
|
|
|
|
|
"func @\"\".assertI2T2 (@\"\".typ·3 *byte, @\"\".iface·4 any) (@\"\".ret·1 any, @\"\".ok·2 bool)\n"
|
|
|
|
|
"func @\"\".assertI2TOK (@\"\".typ·2 *byte, @\"\".iface·3 any) (@\"\".ok·1 bool)\n"
|
|
|
|
|
"func @\"\".assertE2TOK (@\"\".typ·2 *byte, @\"\".iface·3 any) (@\"\".ok·1 bool)\n"
|
|
|
|
|
"func @\"\".ifaceeq (@\"\".i1·2 any, @\"\".i2·3 any) (@\"\".ret·1 bool)\n"
|
|
|
|
|
"func @\"\".efaceeq (@\"\".i1·2 any, @\"\".i2·3 any) (@\"\".ret·1 bool)\n"
|
|
|
|
|
"func @\"\".ifacethash (@\"\".i1·2 any) (@\"\".ret·1 uint32)\n"
|
|
|
|
|
"func @\"\".efacethash (@\"\".i1·2 any) (@\"\".ret·1 uint32)\n"
|
|
|
|
|
"func @\"\".equal (@\"\".typ·2 *byte, @\"\".x1·3 any, @\"\".x2·4 any) (@\"\".ret·1 bool)\n"
|
|
|
|
|
"func @\"\".makemap (@\"\".mapType·2 *byte, @\"\".hint·3 int64) (@\"\".hmap·1 map[any]any)\n"
|
2013-12-02 13:05:04 -08:00
|
|
|
"func @\"\".mapaccess1 (@\"\".mapType·2 *byte, @\"\".hmap·3 map[any]any, @\"\".key·4 *any) (@\"\".val·1 *any)\n"
|
2013-03-20 13:51:29 -07:00
|
|
|
"func @\"\".mapaccess1_fast32 (@\"\".mapType·2 *byte, @\"\".hmap·3 map[any]any, @\"\".key·4 any) (@\"\".val·1 *any)\n"
|
|
|
|
|
"func @\"\".mapaccess1_fast64 (@\"\".mapType·2 *byte, @\"\".hmap·3 map[any]any, @\"\".key·4 any) (@\"\".val·1 *any)\n"
|
|
|
|
|
"func @\"\".mapaccess1_faststr (@\"\".mapType·2 *byte, @\"\".hmap·3 map[any]any, @\"\".key·4 any) (@\"\".val·1 *any)\n"
|
2013-12-02 13:05:04 -08:00
|
|
|
"func @\"\".mapaccess2 (@\"\".mapType·3 *byte, @\"\".hmap·4 map[any]any, @\"\".key·5 *any) (@\"\".val·1 *any, @\"\".pres·2 bool)\n"
|
2013-03-20 13:51:29 -07:00
|
|
|
"func @\"\".mapaccess2_fast32 (@\"\".mapType·3 *byte, @\"\".hmap·4 map[any]any, @\"\".key·5 any) (@\"\".val·1 *any, @\"\".pres·2 bool)\n"
|
|
|
|
|
"func @\"\".mapaccess2_fast64 (@\"\".mapType·3 *byte, @\"\".hmap·4 map[any]any, @\"\".key·5 any) (@\"\".val·1 *any, @\"\".pres·2 bool)\n"
|
|
|
|
|
"func @\"\".mapaccess2_faststr (@\"\".mapType·3 *byte, @\"\".hmap·4 map[any]any, @\"\".key·5 any) (@\"\".val·1 *any, @\"\".pres·2 bool)\n"
|
2013-12-02 13:05:04 -08:00
|
|
|
"func @\"\".mapassign1 (@\"\".mapType·1 *byte, @\"\".hmap·2 map[any]any, @\"\".key·3 *any, @\"\".val·4 *any)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".mapiterinit (@\"\".mapType·1 *byte, @\"\".hmap·2 map[any]any, @\"\".hiter·3 *any)\n"
|
2013-12-02 13:05:04 -08:00
|
|
|
"func @\"\".mapdelete (@\"\".mapType·1 *byte, @\"\".hmap·2 map[any]any, @\"\".key·3 *any)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".mapiternext (@\"\".hiter·1 *any)\n"
|
|
|
|
|
"func @\"\".makechan (@\"\".chanType·2 *byte, @\"\".hint·3 int64) (@\"\".hchan·1 chan any)\n"
|
2014-01-17 14:48:45 -08:00
|
|
|
"func @\"\".chanrecv1 (@\"\".chanType·1 *byte, @\"\".hchan·2 <-chan any, @\"\".elem·3 *any)\n"
|
|
|
|
|
"func @\"\".chanrecv2 (@\"\".chanType·2 *byte, @\"\".hchan·3 <-chan any, @\"\".elem·4 *any) (? bool)\n"
|
|
|
|
|
"func @\"\".chansend1 (@\"\".chanType·1 *byte, @\"\".hchan·2 chan<- any, @\"\".elem·3 *any)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".closechan (@\"\".hchan·1 any)\n"
|
2014-01-17 14:48:45 -08:00
|
|
|
"func @\"\".selectnbsend (@\"\".chanType·2 *byte, @\"\".hchan·3 chan<- any, @\"\".elem·4 *any) (? bool)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".selectnbrecv (@\"\".chanType·2 *byte, @\"\".elem·3 *any, @\"\".hchan·4 <-chan any) (? bool)\n"
|
|
|
|
|
"func @\"\".selectnbrecv2 (@\"\".chanType·2 *byte, @\"\".elem·3 *any, @\"\".received·4 *bool, @\"\".hchan·5 <-chan any) (? bool)\n"
|
2014-07-20 15:07:10 +04:00
|
|
|
"func @\"\".newselect (@\"\".sel·1 *byte, @\"\".selsize·2 int64, @\"\".size·3 int32)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".selectsend (@\"\".sel·2 *byte, @\"\".hchan·3 chan<- any, @\"\".elem·4 *any) (@\"\".selected·1 bool)\n"
|
|
|
|
|
"func @\"\".selectrecv (@\"\".sel·2 *byte, @\"\".hchan·3 <-chan any, @\"\".elem·4 *any) (@\"\".selected·1 bool)\n"
|
|
|
|
|
"func @\"\".selectrecv2 (@\"\".sel·2 *byte, @\"\".hchan·3 <-chan any, @\"\".elem·4 *any, @\"\".received·5 *bool) (@\"\".selected·1 bool)\n"
|
|
|
|
|
"func @\"\".selectdefault (@\"\".sel·2 *byte) (@\"\".selected·1 bool)\n"
|
|
|
|
|
"func @\"\".selectgo (@\"\".sel·1 *byte)\n"
|
|
|
|
|
"func @\"\".block ()\n"
|
|
|
|
|
"func @\"\".makeslice (@\"\".typ·2 *byte, @\"\".nel·3 int64, @\"\".cap·4 int64) (@\"\".ary·1 []any)\n"
|
|
|
|
|
"func @\"\".growslice (@\"\".typ·2 *byte, @\"\".old·3 []any, @\"\".n·4 int64) (@\"\".ary·1 []any)\n"
|
2013-09-12 00:15:28 +02:00
|
|
|
"func @\"\".memmove (@\"\".to·1 *any, @\"\".frm·2 *any, @\"\".length·3 uintptr)\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".memequal (@\"\".eq·1 *bool, @\"\".size·2 uintptr, @\"\".x·3 *any, @\"\".y·4 *any)\n"
|
|
|
|
|
"func @\"\".memequal8 (@\"\".eq·1 *bool, @\"\".size·2 uintptr, @\"\".x·3 *any, @\"\".y·4 *any)\n"
|
|
|
|
|
"func @\"\".memequal16 (@\"\".eq·1 *bool, @\"\".size·2 uintptr, @\"\".x·3 *any, @\"\".y·4 *any)\n"
|
|
|
|
|
"func @\"\".memequal32 (@\"\".eq·1 *bool, @\"\".size·2 uintptr, @\"\".x·3 *any, @\"\".y·4 *any)\n"
|
|
|
|
|
"func @\"\".memequal64 (@\"\".eq·1 *bool, @\"\".size·2 uintptr, @\"\".x·3 *any, @\"\".y·4 *any)\n"
|
|
|
|
|
"func @\"\".memequal128 (@\"\".eq·1 *bool, @\"\".size·2 uintptr, @\"\".x·3 *any, @\"\".y·4 *any)\n"
|
|
|
|
|
"func @\"\".int64div (? int64, ? int64) (? int64)\n"
|
|
|
|
|
"func @\"\".uint64div (? uint64, ? uint64) (? uint64)\n"
|
|
|
|
|
"func @\"\".int64mod (? int64, ? int64) (? int64)\n"
|
|
|
|
|
"func @\"\".uint64mod (? uint64, ? uint64) (? uint64)\n"
|
|
|
|
|
"func @\"\".float64toint64 (? float64) (? int64)\n"
|
|
|
|
|
"func @\"\".float64touint64 (? float64) (? uint64)\n"
|
|
|
|
|
"func @\"\".int64tofloat64 (? int64) (? float64)\n"
|
|
|
|
|
"func @\"\".uint64tofloat64 (? uint64) (? float64)\n"
|
|
|
|
|
"func @\"\".complex128div (@\"\".num·2 complex128, @\"\".den·3 complex128) (@\"\".quo·1 complex128)\n"
|
|
|
|
|
"func @\"\".racefuncenter (? uintptr)\n"
|
|
|
|
|
"func @\"\".racefuncexit ()\n"
|
|
|
|
|
"func @\"\".raceread (? uintptr)\n"
|
|
|
|
|
"func @\"\".racewrite (? uintptr)\n"
|
2013-06-14 11:14:45 +02:00
|
|
|
"func @\"\".racereadrange (@\"\".addr·1 uintptr, @\"\".size·2 uintptr)\n"
|
|
|
|
|
"func @\"\".racewriterange (@\"\".addr·1 uintptr, @\"\".size·2 uintptr)\n"
|
2008-10-03 16:15:55 -07:00
|
|
|
"\n"
|
|
|
|
|
"$$\n";
|
2008-12-17 10:14:29 -08:00
|
|
|
char *unsafeimport =
|
2008-12-08 19:46:39 -08:00
|
|
|
"package unsafe\n"
|
2011-05-11 16:35:11 +02:00
|
|
|
"import runtime \"runtime\"\n"
|
2011-10-08 19:37:06 +02:00
|
|
|
"type @\"\".Pointer uintptr\n"
|
2013-02-26 03:14:59 +08:00
|
|
|
"func @\"\".Offsetof (? any) (? uintptr)\n"
|
|
|
|
|
"func @\"\".Sizeof (? any) (? uintptr)\n"
|
|
|
|
|
"func @\"\".Alignof (? any) (? uintptr)\n"
|
2008-12-08 19:46:39 -08:00
|
|
|
"\n"
|
|
|
|
|
"$$\n";
|