renamed abc_ops.c into opcodes.{c,h}
[swftools.git] / lib / as3 / opcodes.h
1 #ifndef __opcodes_h__
2 #define __opcodes_h__
3 #include "abc.h"
4 #include "pool.h"
5 abc_code_t* abc_add(abc_code_t*prev);
6 #define add(method) {method->code = abc_add(method->code);}
7 abc_code_t* abc_add_i(abc_code_t*prev);
8 #define add_i(method) {method->code = abc_add_i(method->code);}
9 abc_code_t* abc_astype(abc_code_t*prev, char* name);
10 #define astype(method,name) {method->code = abc_astype(method->code,name);}
11 abc_code_t* abc_astypelate(abc_code_t*prev);
12 #define astypelate(method) {method->code = abc_astypelate(method->code);}
13 abc_code_t* abc_bitand(abc_code_t*prev);
14 #define bitand(method) {method->code = abc_bitand(method->code);}
15 abc_code_t* abc_bitnot(abc_code_t*prev);
16 #define bitnot(method) {method->code = abc_bitnot(method->code);}
17 abc_code_t* abc_bitor(abc_code_t*prev);
18 #define bitor(method) {method->code = abc_bitor(method->code);}
19 abc_code_t* abc_bitxor(abc_code_t*prev);
20 #define bitxor(method) {method->code = abc_bitxor(method->code);}
21 abc_code_t* abc_call(abc_code_t*prev, int v);
22 #define call(method,v) {method->code = abc_call(method->code,v);}
23 abc_code_t* abc_callmethod(abc_code_t*prev, abc_method_body_t* m, int v);
24 #define callmethod(method,m,v) {method->code = abc_callmethod(method->code,m,v);}
25 abc_code_t* abc_callproplex(abc_code_t*prev, char* name, int v);
26 #define callproplex(method,name,v) {method->code = abc_callproplex(method->code,name,v);}
27 abc_code_t* abc_callproperty(abc_code_t*prev, char* name, int v);
28 #define callproperty(method,name,v) {method->code = abc_callproperty(method->code,name,v);}
29 abc_code_t* abc_callpropvoid(abc_code_t*prev, char* name, int v);
30 #define callpropvoid(method,name,v) {method->code = abc_callpropvoid(method->code,name,v);}
31 abc_code_t* abc_callstatic(abc_code_t*prev, abc_method_t* m, int v);
32 #define callstatic(method,m,v) {method->code = abc_callstatic(method->code,m,v);}
33 abc_code_t* abc_callsuper(abc_code_t*prev, char* name, int v);
34 #define callsuper(method,name,v) {method->code = abc_callsuper(method->code,name,v);}
35 abc_code_t* abc_callsupervoid(abc_code_t*prev, char* name, int v);
36 #define callsupervoid(method,name,v) {method->code = abc_callsupervoid(method->code,name,v);}
37 abc_code_t* abc_checkfilter(abc_code_t*prev);
38 #define checkfilter(method) {method->code = abc_checkfilter(method->code);}
39 abc_code_t* abc_coerce(abc_code_t*prev, char* name);
40 #define coerce(method,name) {method->code = abc_coerce(method->code,name);}
41 abc_code_t* abc_coerce_a(abc_code_t*prev);
42 #define coerce_a(method) {method->code = abc_coerce_a(method->code);}
43 abc_code_t* abc_coerce_s(abc_code_t*prev);
44 #define coerce_s(method) {method->code = abc_coerce_s(method->code);}
45 abc_code_t* abc_construct(abc_code_t*prev, int v);
46 #define construct(method,v) {method->code = abc_construct(method->code,v);}
47 abc_code_t* abc_constructprop(abc_code_t*prev, char* name, int v);
48 #define constructprop(method,name,v) {method->code = abc_constructprop(method->code,name,v);}
49 abc_code_t* abc_constructsuper(abc_code_t*prev, int v);
50 #define constructsuper(method,v) {method->code = abc_constructsuper(method->code,v);}
51 abc_code_t* abc_convert_b(abc_code_t*prev);
52 #define convert_b(method) {method->code = abc_convert_b(method->code);}
53 abc_code_t* abc_convert_i(abc_code_t*prev);
54 #define convert_i(method) {method->code = abc_convert_i(method->code);}
55 abc_code_t* abc_convert_d(abc_code_t*prev);
56 #define convert_d(method) {method->code = abc_convert_d(method->code);}
57 abc_code_t* abc_convert_o(abc_code_t*prev);
58 #define convert_o(method) {method->code = abc_convert_o(method->code);}
59 abc_code_t* abc_convert_u(abc_code_t*prev);
60 #define convert_u(method) {method->code = abc_convert_u(method->code);}
61 abc_code_t* abc_convert_s(abc_code_t*prev);
62 #define convert_s(method) {method->code = abc_convert_s(method->code);}
63 abc_code_t* abc_debug(abc_code_t*prev, void* debuginfo);
64 #define debug(method,debuginfo) {method->code = abc_debug(method->code,debuginfo);}
65 abc_code_t* abc_debugfile(abc_code_t*prev, char* s);
66 #define debugfile(method,s) {method->code = abc_debugfile(method->code,s);}
67 abc_code_t* abc_debugline(abc_code_t*prev, int v);
68 #define debugline(method,v) {method->code = abc_debugline(method->code,v);}
69 abc_code_t* abc_declocal(abc_code_t*prev, int reg);
70 #define declocal(method,reg) {method->code = abc_declocal(method->code,reg);}
71 abc_code_t* abc_declocal_i(abc_code_t*prev, int reg);
72 #define declocal_i(method,reg) {method->code = abc_declocal_i(method->code,reg);}
73 abc_code_t* abc_decrement(abc_code_t*prev);
74 #define decrement(method) {method->code = abc_decrement(method->code);}
75 abc_code_t* abc_decrement_i(abc_code_t*prev);
76 #define decrement_i(method) {method->code = abc_decrement_i(method->code);}
77 abc_code_t* abc_deleteproperty(abc_code_t*prev, char* name);
78 #define deleteproperty(method,name) {method->code = abc_deleteproperty(method->code,name);}
79 abc_code_t* abc_divide(abc_code_t*prev);
80 #define divide(method) {method->code = abc_divide(method->code);}
81 abc_code_t* abc_dup(abc_code_t*prev);
82 #define dup(method) {method->code = abc_dup(method->code);}
83 abc_code_t* abc_dxns(abc_code_t*prev, char* s);
84 #define dxns(method,s) {method->code = abc_dxns(method->code,s);}
85 abc_code_t* abc_dxnslate(abc_code_t*prev);
86 #define dxnslate(method) {method->code = abc_dxnslate(method->code);}
87 abc_code_t* abc_equals(abc_code_t*prev);
88 #define equals(method) {method->code = abc_equals(method->code);}
89 abc_code_t* abc_esc_xattr(abc_code_t*prev);
90 #define esc_xattr(method) {method->code = abc_esc_xattr(method->code);}
91 abc_code_t* abc_esc_xelem(abc_code_t*prev);
92 #define esc_xelem(method) {method->code = abc_esc_xelem(method->code);}
93 abc_code_t* abc_findproperty(abc_code_t*prev, char* name);
94 #define findproperty(method,name) {method->code = abc_findproperty(method->code,name);}
95 abc_code_t* abc_findpropstrict(abc_code_t*prev, char* name);
96 #define findpropstrict(method,name) {method->code = abc_findpropstrict(method->code,name);}
97 abc_code_t* abc_getdescendants(abc_code_t*prev, char* name);
98 #define getdescendants(method,name) {method->code = abc_getdescendants(method->code,name);}
99 abc_code_t* abc_getglobalscope(abc_code_t*prev);
100 #define getglobalscope(method) {method->code = abc_getglobalscope(method->code);}
101 abc_code_t* abc_getglobalslot(abc_code_t*prev, int v);
102 #define getglobalslot(method,v) {method->code = abc_getglobalslot(method->code,v);}
103 abc_code_t* abc_getlex(abc_code_t*prev, char* name);
104 #define getlex(method,name) {method->code = abc_getlex(method->code,name);}
105 abc_code_t* abc_getlocal(abc_code_t*prev, int reg);
106 #define getlocal(method,reg) {method->code = abc_getlocal(method->code,reg);}
107 abc_code_t* abc_getlocal_0(abc_code_t*prev);
108 #define getlocal_0(method) {method->code = abc_getlocal_0(method->code);}
109 abc_code_t* abc_getlocal_1(abc_code_t*prev);
110 #define getlocal_1(method) {method->code = abc_getlocal_1(method->code);}
111 abc_code_t* abc_getlocal_2(abc_code_t*prev);
112 #define getlocal_2(method) {method->code = abc_getlocal_2(method->code);}
113 abc_code_t* abc_getlocal_3(abc_code_t*prev);
114 #define getlocal_3(method) {method->code = abc_getlocal_3(method->code);}
115 abc_code_t* abc_getproperty(abc_code_t*prev, char* name);
116 #define getproperty(method,name) {method->code = abc_getproperty(method->code,name);}
117 abc_code_t* abc_getscopeobject(abc_code_t*prev, int v);
118 #define getscopeobject(method,v) {method->code = abc_getscopeobject(method->code,v);}
119 abc_code_t* abc_getslot(abc_code_t*prev, int v);
120 #define getslot(method,v) {method->code = abc_getslot(method->code,v);}
121 abc_code_t* abc_getsuper(abc_code_t*prev, char* name);
122 #define getsuper(method,name) {method->code = abc_getsuper(method->code,name);}
123 abc_code_t* abc_greaterequals(abc_code_t*prev);
124 #define greaterequals(method) {method->code = abc_greaterequals(method->code);}
125 abc_code_t* abc_hasnext(abc_code_t*prev);
126 #define hasnext(method) {method->code = abc_hasnext(method->code);}
127 abc_code_t* abc_hasnext2(abc_code_t*prev, int reg, int reg2);
128 #define hasnext2(method,reg,reg2) {method->code = abc_hasnext2(method->code,reg,reg2);}
129 abc_code_t* abc_ifeq(abc_code_t*prev, abc_code_t* label);
130 #define ifeq(method,label) {method->code = abc_ifeq(method->code,label);}
131 abc_code_t* abc_iffalse(abc_code_t*prev, abc_code_t* label);
132 #define iffalse(method,label) {method->code = abc_iffalse(method->code,label);}
133 abc_code_t* abc_ifge(abc_code_t*prev, abc_code_t* label);
134 #define ifge(method,label) {method->code = abc_ifge(method->code,label);}
135 abc_code_t* abc_ifgt(abc_code_t*prev, abc_code_t* label);
136 #define ifgt(method,label) {method->code = abc_ifgt(method->code,label);}
137 abc_code_t* abc_ifle(abc_code_t*prev, abc_code_t* label);
138 #define ifle(method,label) {method->code = abc_ifle(method->code,label);}
139 abc_code_t* abc_iflt(abc_code_t*prev, abc_code_t* label);
140 #define iflt(method,label) {method->code = abc_iflt(method->code,label);}
141 abc_code_t* abc_ifnge(abc_code_t*prev, abc_code_t* label);
142 #define ifnge(method,label) {method->code = abc_ifnge(method->code,label);}
143 abc_code_t* abc_ifngt(abc_code_t*prev, abc_code_t* label);
144 #define ifngt(method,label) {method->code = abc_ifngt(method->code,label);}
145 abc_code_t* abc_ifnle(abc_code_t*prev, abc_code_t* label);
146 #define ifnle(method,label) {method->code = abc_ifnle(method->code,label);}
147 abc_code_t* abc_ifnlt(abc_code_t*prev, abc_code_t* label);
148 #define ifnlt(method,label) {method->code = abc_ifnlt(method->code,label);}
149 abc_code_t* abc_ifne(abc_code_t*prev, abc_code_t* label);
150 #define ifne(method,label) {method->code = abc_ifne(method->code,label);}
151 abc_code_t* abc_ifstricteq(abc_code_t*prev, abc_code_t* label);
152 #define ifstricteq(method,label) {method->code = abc_ifstricteq(method->code,label);}
153 abc_code_t* abc_ifstrictne(abc_code_t*prev, abc_code_t* label);
154 #define ifstrictne(method,label) {method->code = abc_ifstrictne(method->code,label);}
155 abc_code_t* abc_iftrue(abc_code_t*prev, abc_code_t* label);
156 #define iftrue(method,label) {method->code = abc_iftrue(method->code,label);}
157 abc_code_t* abc_in(abc_code_t*prev);
158 #define in(method) {method->code = abc_in(method->code);}
159 abc_code_t* abc_inclocal(abc_code_t*prev, int reg);
160 #define inclocal(method,reg) {method->code = abc_inclocal(method->code,reg);}
161 abc_code_t* abc_inclocal_i(abc_code_t*prev, int reg);
162 #define inclocal_i(method,reg) {method->code = abc_inclocal_i(method->code,reg);}
163 abc_code_t* abc_increment(abc_code_t*prev);
164 #define increment(method) {method->code = abc_increment(method->code);}
165 abc_code_t* abc_increment_i(abc_code_t*prev);
166 #define increment_i(method) {method->code = abc_increment_i(method->code);}
167 abc_code_t* abc_initproperty(abc_code_t*prev, char* name);
168 #define initproperty(method,name) {method->code = abc_initproperty(method->code,name);}
169 abc_code_t* abc_instanceof(abc_code_t*prev);
170 #define instanceof(method) {method->code = abc_instanceof(method->code);}
171 abc_code_t* abc_istype(abc_code_t*prev, char* name);
172 #define istype(method,name) {method->code = abc_istype(method->code,name);}
173 abc_code_t* abc_istypelate(abc_code_t*prev);
174 #define istypelate(method) {method->code = abc_istypelate(method->code);}
175 abc_code_t* abc_jump(abc_code_t*prev, abc_code_t* label);
176 #define jump(method,label) {method->code = abc_jump(method->code,label);}
177 abc_code_t* abc_kill(abc_code_t*prev, int reg);
178 #define kill(method,reg) {method->code = abc_kill(method->code,reg);}
179 abc_code_t* abc_label(abc_code_t*prev);
180 #define label(method) {method->code = abc_label(method->code);}
181 abc_code_t* abc_lessequals(abc_code_t*prev);
182 #define lessequals(method) {method->code = abc_lessequals(method->code);}
183 abc_code_t* abc_lessthan(abc_code_t*prev);
184 #define lessthan(method) {method->code = abc_lessthan(method->code);}
185 abc_code_t* abc_lookupswitch(abc_code_t*prev, void* labels);
186 #define lookupswitch(method,labels) {method->code = abc_lookupswitch(method->code,labels);}
187 abc_code_t* abc_lshift(abc_code_t*prev);
188 #define lshift(method) {method->code = abc_lshift(method->code);}
189 abc_code_t* abc_modulo(abc_code_t*prev);
190 #define modulo(method) {method->code = abc_modulo(method->code);}
191 abc_code_t* abc_multiply(abc_code_t*prev);
192 #define multiply(method) {method->code = abc_multiply(method->code);}
193 abc_code_t* abc_multiply_i(abc_code_t*prev);
194 #define multiply_i(method) {method->code = abc_multiply_i(method->code);}
195 abc_code_t* abc_negate(abc_code_t*prev);
196 #define negate(method) {method->code = abc_negate(method->code);}
197 abc_code_t* abc_negate_i(abc_code_t*prev);
198 #define negate_i(method) {method->code = abc_negate_i(method->code);}
199 abc_code_t* abc_newactivation(abc_code_t*prev);
200 #define newactivation(method) {method->code = abc_newactivation(method->code);}
201 abc_code_t* abc_newarray(abc_code_t*prev, int v);
202 #define newarray(method,v) {method->code = abc_newarray(method->code,v);}
203 abc_code_t* abc_newcatch(abc_code_t*prev, int v);
204 #define newcatch(method,v) {method->code = abc_newcatch(method->code,v);}
205 abc_code_t* abc_newclass(abc_code_t*prev, abc_class_t* m);
206 #define newclass(method,m) {method->code = abc_newclass(method->code,m);}
207 abc_code_t* abc_newfunction(abc_code_t*prev, abc_method_body_t* m);
208 #define newfunction(method,m) {method->code = abc_newfunction(method->code,m);}
209 abc_code_t* abc_newobject(abc_code_t*prev, int v);
210 #define newobject(method,v) {method->code = abc_newobject(method->code,v);}
211 abc_code_t* abc_nextname(abc_code_t*prev);
212 #define nextname(method) {method->code = abc_nextname(method->code);}
213 abc_code_t* abc_nextvalue(abc_code_t*prev);
214 #define nextvalue(method) {method->code = abc_nextvalue(method->code);}
215 abc_code_t* abc_nop(abc_code_t*prev);
216 #define nop(method) {method->code = abc_nop(method->code);}
217 abc_code_t* abc_not(abc_code_t*prev);
218 #define not(method) {method->code = abc_not(method->code);}
219 abc_code_t* abc_pop(abc_code_t*prev);
220 #define pop(method) {method->code = abc_pop(method->code);}
221 abc_code_t* abc_popscope(abc_code_t*prev);
222 #define popscope(method) {method->code = abc_popscope(method->code);}
223 abc_code_t* abc_pushbyte(abc_code_t*prev, int v);
224 #define pushbyte(method,v) {method->code = abc_pushbyte(method->code,v);}
225 abc_code_t* abc_pushdouble(abc_code_t*prev, int v);
226 #define pushdouble(method,v) {method->code = abc_pushdouble(method->code,v);}
227 abc_code_t* abc_pushfalse(abc_code_t*prev);
228 #define pushfalse(method) {method->code = abc_pushfalse(method->code);}
229 abc_code_t* abc_pushint(abc_code_t*prev, int v);
230 #define pushint(method,v) {method->code = abc_pushint(method->code,v);}
231 abc_code_t* abc_pushnamespace(abc_code_t*prev, int v);
232 #define pushnamespace(method,v) {method->code = abc_pushnamespace(method->code,v);}
233 abc_code_t* abc_pushnan(abc_code_t*prev);
234 #define pushnan(method) {method->code = abc_pushnan(method->code);}
235 abc_code_t* abc_pushnull(abc_code_t*prev);
236 #define pushnull(method) {method->code = abc_pushnull(method->code);}
237 abc_code_t* abc_pushscope(abc_code_t*prev);
238 #define pushscope(method) {method->code = abc_pushscope(method->code);}
239 abc_code_t* abc_pushshort(abc_code_t*prev, int v);
240 #define pushshort(method,v) {method->code = abc_pushshort(method->code,v);}
241 abc_code_t* abc_pushstring(abc_code_t*prev, char* s);
242 #define pushstring(method,s) {method->code = abc_pushstring(method->code,s);}
243 abc_code_t* abc_pushtrue(abc_code_t*prev);
244 #define pushtrue(method) {method->code = abc_pushtrue(method->code);}
245 abc_code_t* abc_pushuint(abc_code_t*prev, int v);
246 #define pushuint(method,v) {method->code = abc_pushuint(method->code,v);}
247 abc_code_t* abc_pushundefined(abc_code_t*prev);
248 #define pushundefined(method) {method->code = abc_pushundefined(method->code);}
249 abc_code_t* abc_pushwith(abc_code_t*prev);
250 #define pushwith(method) {method->code = abc_pushwith(method->code);}
251 abc_code_t* abc_returnvalue(abc_code_t*prev);
252 #define returnvalue(method) {method->code = abc_returnvalue(method->code);}
253 abc_code_t* abc_returnvoid(abc_code_t*prev);
254 #define returnvoid(method) {method->code = abc_returnvoid(method->code);}
255 abc_code_t* abc_rshift(abc_code_t*prev);
256 #define rshift(method) {method->code = abc_rshift(method->code);}
257 abc_code_t* abc_setlocal(abc_code_t*prev, int reg);
258 #define setlocal(method,reg) {method->code = abc_setlocal(method->code,reg);}
259 abc_code_t* abc_setlocal_0(abc_code_t*prev);
260 #define setlocal_0(method) {method->code = abc_setlocal_0(method->code);}
261 abc_code_t* abc_setlocal_1(abc_code_t*prev);
262 #define setlocal_1(method) {method->code = abc_setlocal_1(method->code);}
263 abc_code_t* abc_setlocal_2(abc_code_t*prev);
264 #define setlocal_2(method) {method->code = abc_setlocal_2(method->code);}
265 abc_code_t* abc_setlocal_3(abc_code_t*prev);
266 #define setlocal_3(method) {method->code = abc_setlocal_3(method->code);}
267 abc_code_t* abc_setglobalslot(abc_code_t*prev, int v);
268 #define setglobalslot(method,v) {method->code = abc_setglobalslot(method->code,v);}
269 abc_code_t* abc_setproperty(abc_code_t*prev, char* name);
270 #define setproperty(method,name) {method->code = abc_setproperty(method->code,name);}
271 abc_code_t* abc_setslot(abc_code_t*prev, char* name);
272 #define setslot(method,name) {method->code = abc_setslot(method->code,name);}
273 abc_code_t* abc_setsuper(abc_code_t*prev, char* name);
274 #define setsuper(method,name) {method->code = abc_setsuper(method->code,name);}
275 abc_code_t* abc_strictequals(abc_code_t*prev);
276 #define strictequals(method) {method->code = abc_strictequals(method->code);}
277 abc_code_t* abc_subtract(abc_code_t*prev);
278 #define subtract(method) {method->code = abc_subtract(method->code);}
279 abc_code_t* abc_subtract_i(abc_code_t*prev);
280 #define subtract_i(method) {method->code = abc_subtract_i(method->code);}
281 abc_code_t* abc_swap(abc_code_t*prev);
282 #define swap(method) {method->code = abc_swap(method->code);}
283 abc_code_t* abc_throw(abc_code_t*prev);
284 #define throw(method) {method->code = abc_throw(method->code);}
285 abc_code_t* abc_typeof(abc_code_t*prev);
286 #define typeof(method) {method->code = abc_typeof(method->code);}
287 abc_code_t* abc_urshift(abc_code_t*prev);
288 #define urshift(method) {method->code = abc_urshift(method->code);}
289 abc_code_t* abc_xxx(abc_code_t*prev);
290 #define xxx(method) {method->code = abc_xxx(method->code);}
291 #endif