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