2 # [MAIN] #default section name
4 # MMD_EQ ... MMD_STRCMP must be in one block
5 # see src/multidispatch.c
7 # INPLACE MMD variant must always be normal op + 1
10 # init must be first for JITed vtable meths
11 void init_pmc(PMC* initializer)
12 PMC* instantiate(PMC* sig)
13 void morph(PMC* type) :write
18 # XXX FIXME should this be marked as writing?
19 PMC* getprop(STRING* key)
20 void setprop(STRING* key, PMC* value)
21 void delprop(STRING* key)
29 PMC* clone_pmc(PMC* args)
31 PMC* find_method(STRING* method_name)
35 INTVAL get_integer_keyed(PMC* key)
36 INTVAL get_integer_keyed_int(INTVAL key)
37 INTVAL get_integer_keyed_str(STRING* key)
40 FLOATVAL get_number_keyed(PMC* key)
41 FLOATVAL get_number_keyed_int(INTVAL key)
42 FLOATVAL get_number_keyed_str(STRING* key)
48 STRING* get_string_keyed(PMC* key)
49 STRING* get_string_keyed_int(INTVAL key)
50 STRING* get_string_keyed_str(STRING* key)
55 PMC* get_pmc_keyed(PMC* key)
56 PMC* get_pmc_keyed_int(INTVAL key)
57 PMC* get_pmc_keyed_str(STRING* key)
58 PMC* slice(PMC* key, INTVAL flag)
61 void* get_pointer_keyed(PMC* key)
62 void* get_pointer_keyed_int(INTVAL key)
63 void* get_pointer_keyed_str(STRING* key)
66 void set_integer_native(INTVAL value)
67 void set_integer_keyed(PMC* key, INTVAL value)
68 void set_integer_keyed_int(INTVAL key, INTVAL value)
69 void set_integer_keyed_str(STRING* key, INTVAL value)
71 void set_number_native(FLOATVAL value)
72 void set_number_keyed(PMC* key, FLOATVAL value)
73 void set_number_keyed_int(INTVAL key, FLOATVAL value)
74 void set_number_keyed_str(STRING* key, FLOATVAL value)
76 void set_bignum_int(INTVAL value)
77 void set_bignum_num(FLOATVAL value)
78 void set_bignum_str(STRING* value)
80 void set_string_native(STRING* value)
81 void assign_string_native(STRING* value)
82 void set_string_keyed(PMC* key, STRING* value)
83 void set_string_keyed_int(INTVAL key, STRING* value)
84 void set_string_keyed_str(STRING* key, STRING* value)
86 void set_bool(INTVAL value)
88 void set_pmc(PMC* value)
89 void assign_pmc(PMC* value)
90 void set_pmc_keyed(PMC* key, PMC* value)
91 void set_pmc_keyed_int(INTVAL key, PMC* value)
92 void set_pmc_keyed_str(STRING* key, PMC* value)
94 void set_pointer(void* value)
95 void set_pointer_keyed(PMC* key, void* value)
96 void set_pointer_keyed_int(INTVAL key, void* value)
97 void set_pointer_keyed_str(STRING* key, void* value)
109 void push_integer(INTVAL value)
110 void push_float(FLOATVAL value)
111 void push_string(STRING* value)
112 void push_pmc(PMC* value)
115 INTVAL shift_integer()
116 FLOATVAL shift_float()
117 STRING* shift_string()
121 void unshift_integer(INTVAL value)
122 void unshift_float(FLOATVAL value)
123 void unshift_string(STRING* value)
124 void unshift_pmc(PMC* value)
129 void splice(PMC* value, INTVAL offset, INTVAL count)
131 # XXX marking writing here?
133 PMC* add(PMC* value, PMC* dest)
134 PMC* add_int(INTVAL value, PMC* dest)
135 PMC* add_float(FLOATVAL value, PMC* dest)
137 void i_add(PMC* value) :write
138 void i_add_int(INTVAL value) :write
139 void i_add_float(FLOATVAL value) :write
141 PMC* subtract(PMC* value, PMC* dest)
142 PMC* subtract_int(INTVAL value, PMC* dest)
143 PMC* subtract_float(FLOATVAL value, PMC* dest)
145 void i_subtract(PMC* value) :write
146 void i_subtract_int(INTVAL value) :write
147 void i_subtract_float(FLOATVAL value) :write
149 PMC* multiply(PMC* value, PMC* dest)
150 PMC* multiply_int(INTVAL value, PMC* dest)
151 PMC* multiply_float(FLOATVAL value, PMC* dest)
153 void i_multiply(PMC* value) :write
154 void i_multiply_int(INTVAL value) :write
155 void i_multiply_float(FLOATVAL value) :write
157 PMC* divide(PMC* value, PMC* dest)
158 PMC* divide_int(INTVAL value, PMC* dest)
159 PMC* divide_float(FLOATVAL value, PMC* dest)
161 void i_divide(PMC* value) :write
162 void i_divide_int(INTVAL value) :write
163 void i_divide_float(FLOATVAL value) :write
165 PMC* floor_divide(PMC* value, PMC* dest)
166 PMC* floor_divide_int(INTVAL value, PMC* dest)
167 PMC* floor_divide_float(FLOATVAL value, PMC* dest)
169 void i_floor_divide(PMC* value) :write
170 void i_floor_divide_int(INTVAL value) :write
171 void i_floor_divide_float(FLOATVAL value) :write
173 PMC* modulus(PMC* value, PMC* dest)
174 PMC* modulus_int(INTVAL value, PMC* dest)
175 PMC* modulus_float(FLOATVAL value, PMC* dest)
177 void i_modulus(PMC* value) :write
178 void i_modulus_int(INTVAL value) :write
179 void i_modulus_float(FLOATVAL value) :write
181 PMC* pow(PMC* value, PMC* dest)
182 PMC* pow_int(INTVAL value, PMC* dest)
183 PMC* pow_float(FLOATVAL value, PMC* dest)
185 void i_pow(PMC* value) :write
186 void i_pow_int(INTVAL value) :write
187 void i_pow_float(FLOATVAL value) :write
189 void increment() :write
190 void decrement() :write
192 PMC* absolute(PMC* dest)
193 void i_absolute() :write
199 PMC* bitwise_or(PMC* value, PMC* dest)
200 PMC* bitwise_or_int(INTVAL value, PMC* dest)
202 void i_bitwise_or(PMC* value) :write
203 void i_bitwise_or_int(INTVAL value) :write
205 PMC* bitwise_and(PMC* value, PMC* dest)
206 PMC* bitwise_and_int(INTVAL value, PMC* dest)
208 void i_bitwise_and(PMC* value) :write
209 void i_bitwise_and_int(INTVAL value) :write
211 PMC* bitwise_xor(PMC* value, PMC* dest)
212 PMC* bitwise_xor_int(INTVAL value, PMC* dest)
214 void i_bitwise_xor(PMC* value) :write
215 void i_bitwise_xor_int(INTVAL value) :write
217 PMC* bitwise_ors(PMC* value, PMC* dest)
218 PMC* bitwise_ors_str(STRING* value, PMC* dest)
220 void i_bitwise_ors(PMC* value) :write
221 void i_bitwise_ors_str(STRING* value) :write
223 PMC* bitwise_ands(PMC* value, PMC* dest)
224 PMC* bitwise_ands_str(STRING* value, PMC* dest)
226 void i_bitwise_ands(PMC* value) :write
227 void i_bitwise_ands_str(STRING* value) :write
229 PMC* bitwise_xors(PMC* value, PMC* dest)
230 PMC* bitwise_xors_str(STRING* value, PMC* dest)
232 void i_bitwise_xors(PMC* value) :write
233 void i_bitwise_xors_str(STRING* value) :write
235 PMC* bitwise_not(PMC* dest)
236 void i_bitwise_not() :write
238 PMC* bitwise_nots(PMC* dest)
239 void i_bitwise_nots() :write
241 PMC* bitwise_shl(PMC* value, PMC* dest)
242 PMC* bitwise_shl_int(INTVAL value, PMC* dest)
244 void i_bitwise_shl(PMC* value) :write
245 void i_bitwise_shl_int(INTVAL value) :write
247 PMC* bitwise_shr(PMC* value, PMC* dest)
248 PMC* bitwise_shr_int(INTVAL value, PMC* dest)
250 void i_bitwise_shr(PMC* value) :write
251 void i_bitwise_shr_int(INTVAL value) :write
253 PMC* bitwise_lsr(PMC* value, PMC* dest)
254 PMC* bitwise_lsr_int(INTVAL value, PMC* dest)
256 void i_bitwise_lsr(PMC* value) :write
257 void i_bitwise_lsr_int(INTVAL value) :write
260 INTVAL is_equal(PMC* value)
261 INTVAL is_equal_num(PMC* value)
262 INTVAL is_equal_string(PMC* value)
264 INTVAL is_same(PMC* value)
266 INTVAL cmp(PMC* value)
267 INTVAL cmp_num(PMC* value)
268 INTVAL cmp_string(PMC* value)
269 PMC* cmp_pmc(PMC* value)
271 PMC* logical_or(PMC* value, PMC* dest)
273 PMC* logical_and(PMC* value, PMC* dest)
275 PMC* logical_xor(PMC* value, PMC* dest)
277 PMC* logical_not(PMC* dest)
278 void i_logical_not() :write
282 PMC* concatenate(PMC* value, PMC* dest)
283 PMC* concatenate_str(STRING* value, PMC* dest)
285 void i_concatenate(PMC* value) :write
286 void i_concatenate_str(STRING* value) :write
288 PMC* repeat(PMC* value, PMC* dest)
289 PMC* repeat_int(INTVAL value, PMC* dest)
291 void i_repeat(PMC* value) :write
292 void i_repeat_int(INTVAL value) :write
294 void substr(INTVAL offset, INTVAL length, PMC* dest)
295 STRING* substr_str(INTVAL offset, INTVAL length)
298 INTVAL exists_keyed(PMC* key)
299 INTVAL exists_keyed_int(INTVAL key)
300 INTVAL exists_keyed_str(STRING* key)
304 INTVAL defined_keyed(PMC* key)
305 INTVAL defined_keyed_int(INTVAL key)
306 INTVAL defined_keyed_str(STRING* key)
309 void delete_keyed(PMC* key)
310 void delete_keyed_int(INTVAL key)
311 void delete_keyed_str(STRING* key)
317 opcode_t* invoke(void* next)
319 INTVAL can(STRING* method)
321 INTVAL does_pmc(PMC* role)
322 INTVAL does(STRING* role)
324 INTVAL isa_pmc(PMC* _class)
325 INTVAL isa(STRING* _class)
327 PMC* get_attr_str(STRING* idx)
328 PMC* get_attr_keyed(PMC* key, STRING* idx)
329 void set_attr_str(STRING* idx, PMC* value) :write
330 void set_attr_keyed(PMC* key, STRING* idx, PMC* value) :write
334 void add_parent(PMC* parent) :write
335 void remove_parent(PMC* parent) :write
337 void add_role(PMC* role) :write
338 void remove_role(PMC* role) :write
340 void add_attribute(STRING* name, PMC* type) :write
341 void remove_attribute(STRING* name) :write
343 void add_method(STRING* method_name, PMC* sub_pmc) :write
344 void remove_method(STRING* method_name) :write
346 void add_vtable_override(STRING* vtable_name, PMC* sub_pmc) :write
347 void remove_vtable_override(STRING* vtable_name) :write
350 PMC* inspect_str(STRING* what)
352 void freeze(visit_info* info)
353 void thaw (visit_info* info) :write
354 void thawfinish (visit_info* info) :write
355 void visit (visit_info* info)