Debian Codegraph @

terps/git/labels.inc

raw
1 // Pseudo-operations.
2
3 LABEL (jump_abs_L7)
4 LABEL (enter_function_L1)
5
6 LABEL (debug_step)
7
8 LABEL (args_stack_call_stub_discard)
9 LABEL (args_stack_call_stub_addr)
10 LABEL (args_stack_call_stub_local)
11 LABEL (args_stack_call_stub_stack)
12
13 LABEL (args_stack)
14 LABEL (args_0)
15 LABEL (args_1)
16 LABEL (args_2)
17 LABEL (args_3)
18
19 LABEL (call_stub_discard)
20 LABEL (call_stub_addr)
21 LABEL (call_stub_local)
22 LABEL (call_stub_stack)
23
24 LABEL (catch_stub_discard)
25 LABEL (catch_stub_addr)
26 LABEL (catch_stub_local)
27 LABEL (catch_stub_stack)
28
29 LABEL (save_stub_discard)
30 LABEL (save_stub_addr)
31 LABEL (save_stub_local)
32 LABEL (save_stub_stack)
33
34 LABEL (undo_stub_discard)
35 LABEL (undo_stub_addr)
36 LABEL (undo_stub_local)
37 LABEL (undo_stub_stack)
38
39 LABEL (tailcall)
40 LABEL (throw)
41
42 // Loading and storing registers.
43
44 #define LOAD_LABELS(tag) \
45 LABEL (L1_ ## tag) \
46 LABEL (L2_ ## tag) \
47 LABEL (L3_ ## tag) \
48 LABEL (L4_ ## tag) \
49 LABEL (L5_ ## tag) \
50 LABEL (L6_ ## tag) \
51 LABEL (L7_ ## tag) \
52 LABEL (L1_const_L2_ ## tag) \
53 LABEL (L1_stack_L2_ ## tag) \
54 LABEL (L1_local_L2_ ## tag) \
55 LABEL (L1_addr_L2_ ## tag)
56
57 #define STORE_LABELS(tag) \
58 LABEL (S1_ ## tag) \
59 LABEL (S2_ ## tag)
60
61 LOAD_LABELS(const)
62 LOAD_LABELS(stack)
63 LOAD_LABELS(local)
64 LOAD_LABELS(addr)
65
66 STORE_LABELS(stack)
67 STORE_LABELS(local)
68 STORE_LABELS(addr)
69
70 LABEL(L1_addr16)
71 LABEL(L1_addr8)
72
73 LABEL(S1_addr16)
74 LABEL(S1_addr8)
75
76 #undef LOAD_LABELS
77 #undef STORE_LABELS
78
79 // Labels corresponding to glulx opcodes.
80
81 LABEL (nop)
82
83 #define PEEPHOLE_STORE_LABELS(tag) \
84 LABEL (add ## tag) \
85 LABEL (sub ## tag) \
86 LABEL (mul ## tag) \
87 LABEL (div ## tag) \
88 LABEL (mod ## tag) \
89 LABEL (neg ## tag) \
90 LABEL (bitand ## tag) \
91 LABEL (bitor ## tag) \
92 LABEL (bitxor ## tag) \
93 LABEL (bitnot ## tag) \
94 LABEL (shiftl ## tag) \
95 LABEL (sshiftr ## tag) \
96 LABEL (ushiftr ## tag) \
97 LABEL (copys ## tag) \
98 LABEL (copyb ## tag) \
99 LABEL (sexs ## tag) \
100 LABEL (sexb ## tag) \
101 LABEL (aload ## tag) \
102 LABEL (aloads ## tag) \
103 LABEL (aloadb ## tag) \
104 LABEL (aloadbit ## tag) \
105 LABEL (fadd ## tag) \
106 LABEL (fsub ## tag) \
107 LABEL (fmul ## tag) \
108 LABEL (fdiv ## tag)
109
110 PEEPHOLE_STORE_LABELS(_discard)
111 PEEPHOLE_STORE_LABELS(_S1_stack)
112 PEEPHOLE_STORE_LABELS(_S1_local)
113 PEEPHOLE_STORE_LABELS(_S1_addr)
114
115 #define PEEPHOLE_LOAD_LABELS(tag) \
116 LABEL (return_L1_ ## tag) \
117 LABEL (astore_L3_ ## tag) \
118 LABEL (astores_L3_ ## tag) \
119 LABEL (astoreb_L3_ ## tag) \
120 LABEL (astorebit_L3_ ## tag)
121
122 PEEPHOLE_LOAD_LABELS(const)
123 PEEPHOLE_LOAD_LABELS(stack)
124 PEEPHOLE_LOAD_LABELS(addr)
125 PEEPHOLE_LOAD_LABELS(local)
126
127 LABEL (return)
128 LABEL (astore)
129 LABEL (astores)
130 LABEL (astoreb)
131 LABEL (astorebit)
132
133 #undef PEEPHOLE_STORE_LABELS
134
135 #define BRANCH_LABELS(tag) \
136 LABEL (jump ## tag) \
137 LABEL (jz ## tag) \
138 LABEL (jnz ## tag) \
139 LABEL (jeq ## tag) \
140 LABEL (jne ## tag) \
141 LABEL (jlt ## tag) \
142 LABEL (jge ## tag) \
143 LABEL (jgt ## tag) \
144 LABEL (jle ## tag) \
145 LABEL (jltu ## tag) \
146 LABEL (jgeu ## tag) \
147 LABEL (jgtu ## tag) \
148 LABEL (jleu ## tag) \
149 LABEL (jflt ## tag) \
150 LABEL (jfge ## tag) \
151 LABEL (jfgt ## tag) \
152 LABEL (jfle ## tag) \
153 LABEL (jisnan ## tag) \
154 LABEL (jisinf ## tag) \
155 LABEL (jfeq ## tag) \
156 LABEL (jfne ## tag) \
157 LABEL (jdlt ## tag) \
158 LABEL (jdge ## tag) \
159 LABEL (jdgt ## tag) \
160 LABEL (jdle ## tag) \
161 LABEL (jdisnan ## tag) \
162 LABEL (jdisinf ## tag) \
163 LABEL (jdeq ## tag) \
164 LABEL (jdne ## tag)
165
166 BRANCH_LABELS(_var)
167 BRANCH_LABELS(_const)
168 BRANCH_LABELS(_by)
169 BRANCH_LABELS(_return0)
170 BRANCH_LABELS(_return1)
171
172 LABEL (stkcount)
173 LABEL (stkpeek)
174 LABEL (stkswap)
175 LABEL (stkroll)
176 LABEL (stkcopy)
177
178 LABEL (streamchar)
179 LABEL (streamnum)
180 LABEL (streamstr)
181 LABEL (streamunichar)
182
183 LABEL (gestalt)
184 LABEL (debugtrap)
185 LABEL (getmemsize)
186 LABEL (setmemsize)
187 LABEL (jumpabs)
188
189 LABEL (random)
190 LABEL (setrandom)
191
192 LABEL (quit)
193 LABEL (verify)
194 LABEL (restart)
195 LABEL (restore)
196 LABEL (restoreundo)
197 LABEL (protect)
198 LABEL (hasundo)
199 LABEL (discardundo)
200
201 LABEL (glk)
202
203 LABEL (getstringtbl)
204 LABEL (setstringtbl)
205 LABEL (getiosys)
206 LABEL (setiosys)
207
208 LABEL (linearsearch)
209 LABEL (binarysearch)
210 LABEL (linkedsearch)
211
212 LABEL (mzero)
213 LABEL (mcopy)
214 LABEL (malloc)
215 LABEL (mfree)
216
217 LABEL (accelfunc)
218 LABEL (accelparam)
219
220 LABEL (numtof)
221 LABEL (ftonumz)
222 LABEL (ftonumn)
223 LABEL (ceil)
224 LABEL (floor)
225 LABEL (fmod)
226 LABEL (sqrt)
227 LABEL (exp)
228 LABEL (log)
229 LABEL (pow)
230 LABEL (sin)
231 LABEL (cos)
232 LABEL (tan)
233 LABEL (asin)
234 LABEL (acos)
235 LABEL (atan)
236 LABEL (atan2)
237
238 LABEL (numtod)
239 LABEL (dtonumz)
240 LABEL (dtonumn)
241 LABEL (ftod)
242 LABEL (dtof)
243
244 LABEL (dadd)
245 LABEL (dsub)
246 LABEL (dmul)
247 LABEL (ddiv)
248 LABEL (dpow)
249 LABEL (datan2)
250
251 LABEL (dmodr)
252 LABEL (dmodq)
253
254 LABEL (dceil)
255 LABEL (dfloor)
256 LABEL (dsqrt)
257 LABEL (dexp)
258 LABEL (dlog)
259
260 LABEL (dsin)
261 LABEL (dcos)
262 LABEL (dtan)
263 LABEL (dasin)
264 LABEL (dacos)
265 LABEL (datan)
266
267 LABEL (git_setcacheram)
268 LABEL (git_prunecache)
269
270 LABEL (error_bad_opcode)
271 LABEL (recompile)
272
273 // No more labels to define.
274 #undef LABEL