Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2405)

Side by Side Diff: src/cmd/gc/builtin.c

Issue 5662043: code review 5662043: gc: delete old unsafe functions (Closed)
Patch Set: diff -r 4e8c247759c1 https://go.googlecode.com/hg/ Created 13 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/cmd/dist/build.c ('k') | src/cmd/gc/mkbuiltin » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 char *runtimeimport = 1 char *runtimeimport =
2 "package runtime\n" 2 "package runtime\n"
3 "import runtime \"runtime\"\n" 3 "import runtime \"runtime\"\n"
4 » "func @\"\".new(@\"\".typ *byte) *any\n" 4 » "func @\"\".new(@\"\".typ *byte) (? *any)\n"
5 "func @\"\".panicindex()\n" 5 "func @\"\".panicindex()\n"
6 "func @\"\".panicslice()\n" 6 "func @\"\".panicslice()\n"
7 "func @\"\".throwreturn()\n" 7 "func @\"\".throwreturn()\n"
8 "func @\"\".throwinit()\n" 8 "func @\"\".throwinit()\n"
9 "func @\"\".panicwrap(? string, ? string, ? string)\n" 9 "func @\"\".panicwrap(? string, ? string, ? string)\n"
10 "func @\"\".panic(? interface {})\n" 10 "func @\"\".panic(? interface {})\n"
11 » "func @\"\".recover(? *int32) interface {}\n" 11 » "func @\"\".recover(? *int32) (? interface {})\n"
12 "func @\"\".printbool(? bool)\n" 12 "func @\"\".printbool(? bool)\n"
13 "func @\"\".printfloat(? float64)\n" 13 "func @\"\".printfloat(? float64)\n"
14 "func @\"\".printint(? int64)\n" 14 "func @\"\".printint(? int64)\n"
15 "func @\"\".printuint(? uint64)\n" 15 "func @\"\".printuint(? uint64)\n"
16 "func @\"\".printcomplex(? complex128)\n" 16 "func @\"\".printcomplex(? complex128)\n"
17 "func @\"\".printstring(? string)\n" 17 "func @\"\".printstring(? string)\n"
18 "func @\"\".printpointer(? any)\n" 18 "func @\"\".printpointer(? any)\n"
19 "func @\"\".printiface(? any)\n" 19 "func @\"\".printiface(? any)\n"
20 "func @\"\".printeface(? any)\n" 20 "func @\"\".printeface(? any)\n"
21 "func @\"\".printslice(? any)\n" 21 "func @\"\".printslice(? any)\n"
22 "func @\"\".printnl()\n" 22 "func @\"\".printnl()\n"
23 "func @\"\".printsp()\n" 23 "func @\"\".printsp()\n"
24 "func @\"\".goprintf()\n" 24 "func @\"\".goprintf()\n"
25 "func @\"\".concatstring()\n" 25 "func @\"\".concatstring()\n"
26 "func @\"\".append()\n" 26 "func @\"\".append()\n"
27 » "func @\"\".appendslice(@\"\".typ *byte, @\"\".x any, @\"\".y []any) any \n" 27 » "func @\"\".appendslice(@\"\".typ *byte, @\"\".x any, @\"\".y []any) (? any)\n"
28 » "func @\"\".appendstr(@\"\".typ *byte, @\"\".x []byte, @\"\".y string) [ ]byte\n" 28 » "func @\"\".appendstr(@\"\".typ *byte, @\"\".x []byte, @\"\".y string) ( ? []byte)\n"
29 » "func @\"\".cmpstring(? string, ? string) int\n" 29 » "func @\"\".cmpstring(? string, ? string) (? int)\n"
30 » "func @\"\".slicestring(? string, ? int, ? int) string\n" 30 » "func @\"\".slicestring(? string, ? int, ? int) (? string)\n"
31 » "func @\"\".slicestring1(? string, ? int) string\n" 31 » "func @\"\".slicestring1(? string, ? int) (? string)\n"
32 » "func @\"\".intstring(? int64) string\n" 32 » "func @\"\".intstring(? int64) (? string)\n"
33 » "func @\"\".slicebytetostring(? []byte) string\n" 33 » "func @\"\".slicebytetostring(? []byte) (? string)\n"
34 » "func @\"\".slicerunetostring(? []rune) string\n" 34 » "func @\"\".slicerunetostring(? []rune) (? string)\n"
35 » "func @\"\".stringtoslicebyte(? string) []byte\n" 35 » "func @\"\".stringtoslicebyte(? string) (? []byte)\n"
36 » "func @\"\".stringtoslicerune(? string) []rune\n" 36 » "func @\"\".stringtoslicerune(? string) (? []rune)\n"
37 » "func @\"\".stringiter(? string, ? int) int\n" 37 » "func @\"\".stringiter(? string, ? int) (? int)\n"
38 "func @\"\".stringiter2(? string, ? int) (@\"\".retk int, @\"\".retv run e)\n" 38 "func @\"\".stringiter2(? string, ? int) (@\"\".retk int, @\"\".retv run e)\n"
39 » "func @\"\".copy(@\"\".to any, @\"\".fr any, @\"\".wid uint32) int\n" 39 » "func @\"\".copy(@\"\".to any, @\"\".fr any, @\"\".wid uint32) (? int)\n "
40 » "func @\"\".slicestringcopy(@\"\".to any, @\"\".fr any) int\n" 40 » "func @\"\".slicestringcopy(@\"\".to any, @\"\".fr any) (? int)\n"
41 » "func @\"\".convI2E(@\"\".elem any) any\n" 41 » "func @\"\".convI2E(@\"\".elem any) (@\"\".ret any)\n"
42 » "func @\"\".convI2I(@\"\".typ *byte, @\"\".elem any) any\n" 42 » "func @\"\".convI2I(@\"\".typ *byte, @\"\".elem any) (@\"\".ret any)\n"
43 » "func @\"\".convT2E(@\"\".typ *byte, @\"\".elem any) any\n" 43 » "func @\"\".convT2E(@\"\".typ *byte, @\"\".elem any) (@\"\".ret any)\n"
44 » "func @\"\".convT2I(@\"\".typ *byte, @\"\".typ2 *byte, @\"\".elem any) a ny\n" 44 » "func @\"\".convT2I(@\"\".typ *byte, @\"\".typ2 *byte, @\"\".elem any) ( @\"\".ret any)\n"
45 » "func @\"\".assertE2E(@\"\".typ *byte, @\"\".iface any) any\n" 45 » "func @\"\".assertE2E(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any)\ n"
46 "func @\"\".assertE2E2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n" 46 "func @\"\".assertE2E2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n"
47 » "func @\"\".assertE2I(@\"\".typ *byte, @\"\".iface any) any\n" 47 » "func @\"\".assertE2I(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any)\ n"
48 "func @\"\".assertE2I2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n" 48 "func @\"\".assertE2I2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n"
49 » "func @\"\".assertE2T(@\"\".typ *byte, @\"\".iface any) any\n" 49 » "func @\"\".assertE2T(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any)\ n"
50 "func @\"\".assertE2T2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n" 50 "func @\"\".assertE2T2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n"
51 » "func @\"\".assertI2E(@\"\".typ *byte, @\"\".iface any) any\n" 51 » "func @\"\".assertI2E(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any)\ n"
52 "func @\"\".assertI2E2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n" 52 "func @\"\".assertI2E2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n"
53 » "func @\"\".assertI2I(@\"\".typ *byte, @\"\".iface any) any\n" 53 » "func @\"\".assertI2I(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any)\ n"
54 "func @\"\".assertI2I2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n" 54 "func @\"\".assertI2I2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n"
55 » "func @\"\".assertI2T(@\"\".typ *byte, @\"\".iface any) any\n" 55 » "func @\"\".assertI2T(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any)\ n"
56 "func @\"\".assertI2T2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n" 56 "func @\"\".assertI2T2(@\"\".typ *byte, @\"\".iface any) (@\"\".ret any, @\"\".ok bool)\n"
57 » "func @\"\".ifaceeq(@\"\".i1 any, @\"\".i2 any) bool\n" 57 » "func @\"\".ifaceeq(@\"\".i1 any, @\"\".i2 any) (@\"\".ret bool)\n"
58 » "func @\"\".efaceeq(@\"\".i1 any, @\"\".i2 any) bool\n" 58 » "func @\"\".efaceeq(@\"\".i1 any, @\"\".i2 any) (@\"\".ret bool)\n"
59 » "func @\"\".ifacethash(@\"\".i1 any) uint32\n" 59 » "func @\"\".ifacethash(@\"\".i1 any) (@\"\".ret uint32)\n"
60 » "func @\"\".efacethash(@\"\".i1 any) uint32\n" 60 » "func @\"\".efacethash(@\"\".i1 any) (@\"\".ret uint32)\n"
61 » "func @\"\".equal(@\"\".typ *byte, @\"\".x1 any, @\"\".x2 any) bool\n" 61 » "func @\"\".equal(@\"\".typ *byte, @\"\".x1 any, @\"\".x2 any) (@\"\".re t bool)\n"
62 » "func @\"\".makemap(@\"\".mapType *byte, @\"\".hint int64) map[any]any\n " 62 » "func @\"\".makemap(@\"\".mapType *byte, @\"\".hint int64) (@\"\".hmap m ap[any]any)\n"
63 » "func @\"\".mapaccess1(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\ ".key any) any\n" 63 » "func @\"\".mapaccess1(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\ ".key any) (@\"\".val any)\n"
64 "func @\"\".mapaccess2(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\ ".key any) (@\"\".val any, @\"\".pres bool)\n" 64 "func @\"\".mapaccess2(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\ ".key any) (@\"\".val any, @\"\".pres bool)\n"
65 "func @\"\".mapassign1(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\ ".key any, @\"\".val any)\n" 65 "func @\"\".mapassign1(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\ ".key any, @\"\".val any)\n"
66 "func @\"\".mapassign2(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\ ".key any, @\"\".val any, @\"\".pres bool)\n" 66 "func @\"\".mapassign2(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\ ".key any, @\"\".val any, @\"\".pres bool)\n"
67 "func @\"\".mapiterinit(@\"\".mapType *byte, @\"\".hmap map[any]any, @\" \".hiter *any)\n" 67 "func @\"\".mapiterinit(@\"\".mapType *byte, @\"\".hmap map[any]any, @\" \".hiter *any)\n"
68 "func @\"\".mapdelete(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\" .key any)\n" 68 "func @\"\".mapdelete(@\"\".mapType *byte, @\"\".hmap map[any]any, @\"\" .key any)\n"
69 "func @\"\".mapiternext(@\"\".hiter *any)\n" 69 "func @\"\".mapiternext(@\"\".hiter *any)\n"
70 » "func @\"\".mapiter1(@\"\".hiter *any) any\n" 70 » "func @\"\".mapiter1(@\"\".hiter *any) (@\"\".key any)\n"
71 "func @\"\".mapiter2(@\"\".hiter *any) (@\"\".key any, @\"\".val any)\n" 71 "func @\"\".mapiter2(@\"\".hiter *any) (@\"\".key any, @\"\".val any)\n"
72 » "func @\"\".makechan(@\"\".chanType *byte, @\"\".hint int64) chan any\n" 72 » "func @\"\".makechan(@\"\".chanType *byte, @\"\".hint int64) (@\"\".hcha n chan any)\n"
73 » "func @\"\".chanrecv1(@\"\".chanType *byte, @\"\".hchan <-chan any) any\ n" 73 » "func @\"\".chanrecv1(@\"\".chanType *byte, @\"\".hchan <-chan any) (@\" \".elem any)\n"
74 "func @\"\".chanrecv2(@\"\".chanType *byte, @\"\".hchan <-chan any) (@\" \".elem any, @\"\".received bool)\n" 74 "func @\"\".chanrecv2(@\"\".chanType *byte, @\"\".hchan <-chan any) (@\" \".elem any, @\"\".received bool)\n"
75 "func @\"\".chansend1(@\"\".chanType *byte, @\"\".hchan chan<- any, @\"\ ".elem any)\n" 75 "func @\"\".chansend1(@\"\".chanType *byte, @\"\".hchan chan<- any, @\"\ ".elem any)\n"
76 "func @\"\".closechan(@\"\".hchan any)\n" 76 "func @\"\".closechan(@\"\".hchan any)\n"
77 » "func @\"\".selectnbsend(@\"\".chanType *byte, @\"\".hchan chan<- any, @ \"\".elem any) bool\n" 77 » "func @\"\".selectnbsend(@\"\".chanType *byte, @\"\".hchan chan<- any, @ \"\".elem any) (? bool)\n"
78 » "func @\"\".selectnbrecv(@\"\".chanType *byte, @\"\".elem *any, @\"\".hc han <-chan any) bool\n" 78 » "func @\"\".selectnbrecv(@\"\".chanType *byte, @\"\".elem *any, @\"\".hc han <-chan any) (? bool)\n"
79 » "func @\"\".selectnbrecv2(@\"\".chanType *byte, @\"\".elem *any, @\"\".r eceived *bool, @\"\".hchan <-chan any) bool\n" 79 » "func @\"\".selectnbrecv2(@\"\".chanType *byte, @\"\".elem *any, @\"\".r eceived *bool, @\"\".hchan <-chan any) (? bool)\n"
80 » "func @\"\".newselect(@\"\".size int) *byte\n" 80 » "func @\"\".newselect(@\"\".size int) (@\"\".sel *byte)\n"
81 » "func @\"\".selectsend(@\"\".sel *byte, @\"\".hchan chan<- any, @\"\".el em *any) bool\n" 81 » "func @\"\".selectsend(@\"\".sel *byte, @\"\".hchan chan<- any, @\"\".el em *any) (@\"\".selected bool)\n"
82 » "func @\"\".selectrecv(@\"\".sel *byte, @\"\".hchan <-chan any, @\"\".el em *any) bool\n" 82 » "func @\"\".selectrecv(@\"\".sel *byte, @\"\".hchan <-chan any, @\"\".el em *any) (@\"\".selected bool)\n"
83 » "func @\"\".selectrecv2(@\"\".sel *byte, @\"\".hchan <-chan any, @\"\".e lem *any, @\"\".received *bool) bool\n" 83 » "func @\"\".selectrecv2(@\"\".sel *byte, @\"\".hchan <-chan any, @\"\".e lem *any, @\"\".received *bool) (@\"\".selected bool)\n"
84 » "func @\"\".selectdefault(@\"\".sel *byte) bool\n" 84 » "func @\"\".selectdefault(@\"\".sel *byte) (@\"\".selected bool)\n"
85 "func @\"\".selectgo(@\"\".sel *byte)\n" 85 "func @\"\".selectgo(@\"\".sel *byte)\n"
86 "func @\"\".block()\n" 86 "func @\"\".block()\n"
87 » "func @\"\".makeslice(@\"\".typ *byte, @\"\".nel int64, @\"\".cap int64) []any\n" 87 » "func @\"\".makeslice(@\"\".typ *byte, @\"\".nel int64, @\"\".cap int64) (@\"\".ary []any)\n"
88 » "func @\"\".growslice(@\"\".typ *byte, @\"\".old []any, @\"\".n int64) [ ]any\n" 88 » "func @\"\".growslice(@\"\".typ *byte, @\"\".old []any, @\"\".n int64) ( @\"\".ary []any)\n"
89 » "func @\"\".sliceslice1(@\"\".old []any, @\"\".lb uint64, @\"\".width ui nt64) []any\n" 89 » "func @\"\".sliceslice1(@\"\".old []any, @\"\".lb uint64, @\"\".width ui nt64) (@\"\".ary []any)\n"
90 » "func @\"\".sliceslice(@\"\".old []any, @\"\".lb uint64, @\"\".hb uint64 , @\"\".width uint64) []any\n" 90 » "func @\"\".sliceslice(@\"\".old []any, @\"\".lb uint64, @\"\".hb uint64 , @\"\".width uint64) (@\"\".ary []any)\n"
91 » "func @\"\".slicearray(@\"\".old *any, @\"\".nel uint64, @\"\".lb uint64 , @\"\".hb uint64, @\"\".width uint64) []any\n" 91 » "func @\"\".slicearray(@\"\".old *any, @\"\".nel uint64, @\"\".lb uint64 , @\"\".hb uint64, @\"\".width uint64) (@\"\".ary []any)\n"
92 "func @\"\".closure()\n" 92 "func @\"\".closure()\n"
93 "func @\"\".memequal(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @ \"\".y *any)\n" 93 "func @\"\".memequal(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @ \"\".y *any)\n"
94 "func @\"\".memequal8(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @\"\".y *any)\n" 94 "func @\"\".memequal8(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @\"\".y *any)\n"
95 "func @\"\".memequal16(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @\"\".y *any)\n" 95 "func @\"\".memequal16(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @\"\".y *any)\n"
96 "func @\"\".memequal32(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @\"\".y *any)\n" 96 "func @\"\".memequal32(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @\"\".y *any)\n"
97 "func @\"\".memequal64(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @\"\".y *any)\n" 97 "func @\"\".memequal64(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any, @\"\".y *any)\n"
98 "func @\"\".memequal128(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any , @\"\".y *any)\n" 98 "func @\"\".memequal128(@\"\".eq *bool, @\"\".size uintptr, @\"\".x *any , @\"\".y *any)\n"
99 » "func @\"\".int64div(? int64, ? int64) int64\n" 99 » "func @\"\".int64div(? int64, ? int64) (? int64)\n"
100 » "func @\"\".uint64div(? uint64, ? uint64) uint64\n" 100 » "func @\"\".uint64div(? uint64, ? uint64) (? uint64)\n"
101 » "func @\"\".int64mod(? int64, ? int64) int64\n" 101 » "func @\"\".int64mod(? int64, ? int64) (? int64)\n"
102 » "func @\"\".uint64mod(? uint64, ? uint64) uint64\n" 102 » "func @\"\".uint64mod(? uint64, ? uint64) (? uint64)\n"
103 » "func @\"\".float64toint64(? float64) int64\n" 103 » "func @\"\".float64toint64(? float64) (? int64)\n"
104 » "func @\"\".float64touint64(? float64) uint64\n" 104 » "func @\"\".float64touint64(? float64) (? uint64)\n"
105 » "func @\"\".int64tofloat64(? int64) float64\n" 105 » "func @\"\".int64tofloat64(? int64) (? float64)\n"
106 » "func @\"\".uint64tofloat64(? uint64) float64\n" 106 » "func @\"\".uint64tofloat64(? uint64) (? float64)\n"
107 » "func @\"\".complex128div(@\"\".num complex128, @\"\".den complex128) co mplex128\n" 107 » "func @\"\".complex128div(@\"\".num complex128, @\"\".den complex128) (@ \"\".quo complex128)\n"
108 "\n" 108 "\n"
109 "$$\n"; 109 "$$\n";
110 char *unsafeimport = 110 char *unsafeimport =
111 "package unsafe\n" 111 "package unsafe\n"
112 "import runtime \"runtime\"\n" 112 "import runtime \"runtime\"\n"
113 "type @\"\".Pointer uintptr\n" 113 "type @\"\".Pointer uintptr\n"
114 » "func @\"\".Offsetof(? any) uintptr\n" 114 » "func @\"\".Offsetof(? any) (? uintptr)\n"
115 » "func @\"\".Sizeof(? any) uintptr\n" 115 » "func @\"\".Sizeof(? any) (? uintptr)\n"
116 » "func @\"\".Alignof(? any) uintptr\n" 116 » "func @\"\".Alignof(? any) (? uintptr)\n"
117 » "func @\"\".Typeof(@\"\".i interface {}) interface {}\n"
118 » "func @\"\".Reflect(@\"\".i interface {}) (@\"\".typ interface {}, @\"\" .addr @\"\".Pointer)\n"
119 » "func @\"\".Unreflect(@\"\".typ interface {}, @\"\".addr @\"\".Pointer) interface {}\n"
120 » "func @\"\".New(@\"\".typ interface {}) @\"\".Pointer\n"
121 » "func @\"\".NewArray(@\"\".typ interface {}, @\"\".n int) @\"\".Pointer\ n"
122 "\n" 117 "\n"
123 "$$\n"; 118 "$$\n";
OLDNEW
« no previous file with comments | « src/cmd/dist/build.c ('k') | src/cmd/gc/mkbuiltin » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b