2 # [MAIN] #default section name
4 # MMD_EQ ... MMD_STRCMP must be in one block
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 void init_pmc_props(PMC* initializer, PMC* properties)
14 PMC* new_from_string(STRING* rep, INTVAL flags)
15 void morph(INTVAL type)
19 PMC* getprop(STRING* key)
20 void setprop(STRING* key, PMC* value)
21 void delprop(STRING* key)
25 INTVAL type_keyed(PMC* key)
26 INTVAL type_keyed_int(INTVAL key)
27 INTVAL type_keyed_str(STRING* key)
29 UINTVAL subtype(INTVAL type)
35 PMC* find_method(STRING* method_name)
37 INTVAL hash(size_t seed)
41 INTVAL get_integer_keyed(PMC* key)
42 INTVAL get_integer_keyed_int(INTVAL key)
43 INTVAL get_integer_keyed_str(STRING* key)
46 FLOATVAL get_number_keyed(PMC* key)
47 FLOATVAL get_number_keyed_int(INTVAL key)
48 FLOATVAL get_number_keyed_str(STRING* key)
54 STRING* get_string_keyed(PMC* key)
55 STRING* get_string_keyed_int(INTVAL key)
56 STRING* get_string_keyed_str(STRING* key)
61 PMC* get_pmc_keyed(PMC* key)
62 PMC* get_pmc_keyed_int(INTVAL key)
63 PMC* get_pmc_keyed_str(STRING* key)
64 PMC* slice(PMC* key, INTVAL flag)
67 void* get_pointer_keyed(PMC* key)
68 void* get_pointer_keyed_int(INTVAL key)
69 void* get_pointer_keyed_str(STRING* key)
72 void set_integer_native(INTVAL value)
73 void set_integer_same(PMC* value)
74 void set_integer_keyed(PMC* key, INTVAL value)
75 void set_integer_keyed_int(INTVAL key, INTVAL value)
76 void set_integer_keyed_str(STRING* key, INTVAL value)
78 void set_number_native(FLOATVAL value)
79 void set_number_same(PMC* value)
80 void set_number_keyed(PMC* key, FLOATVAL value)
81 void set_number_keyed_int(INTVAL key, FLOATVAL value)
82 void set_number_keyed_str(STRING* key, FLOATVAL value)
84 void set_bignum_int(INTVAL value)
85 void set_bignum_num(FLOATVAL value)
86 void set_bignum_str(STRING* value)
88 void set_string_native(STRING* value)
89 void assign_string_native(STRING* value)
90 void set_string_same(PMC* value)
91 void set_string_keyed(PMC* key, STRING* value)
92 void set_string_keyed_int(INTVAL key, STRING* value)
93 void set_string_keyed_str(STRING* key, STRING* value)
95 void set_bool(INTVAL value)
97 void set_pmc(PMC* value)
98 void assign_pmc(PMC* value)
99 void set_pmc_keyed(PMC* key, PMC* value)
100 void set_pmc_keyed_int(INTVAL key, PMC* value)
101 void set_pmc_keyed_str(STRING* key, PMC* value)
103 void set_pointer(void* value)
104 void set_pointer_keyed(PMC* key, void* value)
105 void set_pointer_keyed_int(INTVAL key, void* value)
106 void set_pointer_keyed_str(STRING* key, void* value)
118 void push_integer(INTVAL value)
119 void push_float(FLOATVAL value)
120 void push_string(STRING* value)
121 void push_pmc(PMC* value)
124 INTVAL shift_integer()
125 FLOATVAL shift_float()
126 STRING* shift_string()
130 void unshift_integer(INTVAL value)
131 void unshift_float(FLOATVAL value)
132 void unshift_string(STRING* value)
133 void unshift_pmc(PMC* value)
138 void splice(PMC* value, INTVAL offset, INTVAL count)
141 PMC* add(PMC* value, PMC* dest) MMD_ADD
142 PMC* add_int(INTVAL value, PMC* dest) MMD_ADD_INT
143 PMC* add_float(FLOATVAL value, PMC* dest) MMD_ADD_FLOAT
145 void i_add(PMC* value) MMD_I_ADD
146 void i_add_int(INTVAL value) MMD_I_ADD_INT
147 void i_add_float(FLOATVAL value) MMD_I_ADD_FLOAT
149 PMC* subtract(PMC* value, PMC* dest) MMD_SUBTRACT
150 PMC* subtract_int(INTVAL value, PMC* dest) MMD_SUBTRACT_INT
151 PMC* subtract_float(FLOATVAL value, PMC* dest) MMD_SUBTRACT_FLOAT
153 void i_subtract(PMC* value) MMD_I_SUBTRACT
154 void i_subtract_int(INTVAL value) MMD_I_SUBTRACT_INT
155 void i_subtract_float(FLOATVAL value) MMD_I_SUBTRACT_FLOAT
157 PMC* multiply(PMC* value, PMC* dest) MMD_MULTIPLY
158 PMC* multiply_int(INTVAL value, PMC* dest) MMD_MULTIPLY_INT
159 PMC* multiply_float(FLOATVAL value, PMC* dest) MMD_MULTIPLY_FLOAT
161 void i_multiply(PMC* value) MMD_I_MULTIPLY
162 void i_multiply_int(INTVAL value) MMD_I_MULTIPLY_INT
163 void i_multiply_float(FLOATVAL value) MMD_I_MULTIPLY_FLOAT
165 PMC* divide(PMC* value, PMC* dest) MMD_DIVIDE
166 PMC* divide_int(INTVAL value, PMC* dest) MMD_DIVIDE_INT
167 PMC* divide_float(FLOATVAL value, PMC* dest) MMD_DIVIDE_FLOAT
169 void i_divide(PMC* value) MMD_I_DIVIDE
170 void i_divide_int(INTVAL value) MMD_I_DIVIDE_INT
171 void i_divide_float(FLOATVAL value) MMD_I_DIVIDE_FLOAT
173 PMC* floor_divide(PMC* value, PMC* dest) MMD_FLOOR_DIVIDE
174 PMC* floor_divide_int(INTVAL value, PMC* dest) MMD_FLOOR_DIVIDE_INT
175 PMC* floor_divide_float(FLOATVAL value, PMC* dest) MMD_FLOOR_DIVIDE_FLOAT
177 void i_floor_divide(PMC* value) MMD_I_FLOOR_DIVIDE
178 void i_floor_divide_int(INTVAL value) MMD_I_FLOOR_DIVIDE_INT
179 void i_floor_divide_float(FLOATVAL value) MMD_I_FLOOR_DIVIDE_FLOAT
181 PMC* modulus(PMC* value, PMC* dest) MMD_MOD
182 PMC* modulus_int(INTVAL value, PMC* dest) MMD_MOD_INT
183 PMC* modulus_float(FLOATVAL value, PMC* dest) MMD_MOD_FLOAT
185 void i_modulus(PMC* value) MMD_I_MOD
186 void i_modulus_int(INTVAL value) MMD_I_MOD_INT
187 void i_modulus_float(FLOATVAL value) MMD_I_MOD_FLOAT
189 PMC* cmodulus(PMC* value, PMC* dest) MMD_CMOD
190 PMC* cmodulus_int(INTVAL value, PMC* dest) MMD_CMOD_INT
191 PMC* cmodulus_float(FLOATVAL value, PMC* dest) MMD_CMOD_FLOAT
193 void i_cmodulus(PMC* value) MMD_I_CMOD
194 void i_cmodulus_int(INTVAL value) MMD_I_CMOD_INT
195 void i_cmodulus_float(FLOATVAL value) MMD_I_CMOD_FLOAT
197 PMC* pow(PMC* value, PMC* dest) MMD_POW
198 PMC* pow_int(INTVAL value, PMC* dest) MMD_POW_INT
199 PMC* pow_float(FLOATVAL value, PMC* dest) MMD_POW_FLOAT
201 void i_pow(PMC* value) MMD_I_POW
202 void i_pow_int(INTVAL value) MMD_I_POW_INT
203 void i_pow_float(FLOATVAL value) MMD_I_POW_FLOAT
208 PMC* absolute(PMC* dest)
215 PMC* bitwise_or(PMC* value, PMC* dest) MMD_BOR
216 PMC* bitwise_or_int(INTVAL value, PMC* dest) MMD_BOR_INT
218 void i_bitwise_or(PMC* value) MMD_I_BOR
219 void i_bitwise_or_int(INTVAL value) MMD_I_BOR_INT
221 PMC* bitwise_and(PMC* value, PMC* dest) MMD_BAND
222 PMC* bitwise_and_int(INTVAL value, PMC* dest) MMD_BAND_INT
224 void i_bitwise_and(PMC* value) MMD_I_BAND
225 void i_bitwise_and_int(INTVAL value) MMD_I_BAND_INT
227 PMC* bitwise_xor(PMC* value, PMC* dest) MMD_BXOR
228 PMC* bitwise_xor_int(INTVAL value, PMC* dest) MMD_BXOR_INT
230 void i_bitwise_xor(PMC* value) MMD_I_BXOR
231 void i_bitwise_xor_int(INTVAL value) MMD_I_BXOR_INT
233 PMC* bitwise_ors(PMC* value, PMC* dest) MMD_SOR
234 PMC* bitwise_ors_str(STRING* value, PMC* dest) MMD_SOR_STR
236 void i_bitwise_ors(PMC* value) MMD_I_SOR
237 void i_bitwise_ors_str(STRING* value) MMD_I_SOR_STR
239 PMC* bitwise_ands(PMC* value, PMC* dest) MMD_SAND
240 PMC* bitwise_ands_str(STRING* value, PMC* dest) MMD_SAND_STR
242 void i_bitwise_ands(PMC* value) MMD_I_SAND
243 void i_bitwise_ands_str(STRING* value) MMD_I_SAND_STR
245 PMC* bitwise_xors(PMC* value, PMC* dest) MMD_SXOR
246 PMC* bitwise_xors_str(STRING* value, PMC* dest) MMD_SXOR_STR
248 void i_bitwise_xors(PMC* value) MMD_I_SXOR
249 void i_bitwise_xors_str(STRING* value) MMD_I_SXOR_STR
251 PMC* bitwise_not(PMC* dest)
254 PMC* bitwise_nots(PMC* dest)
255 void i_bitwise_nots()
257 PMC* bitwise_shl(PMC* value, PMC* dest) MMD_BSL
258 PMC* bitwise_shl_int(INTVAL value, PMC* dest) MMD_BSL_INT
260 void i_bitwise_shl(PMC* value) MMD_I_BSL
261 void i_bitwise_shl_int(INTVAL value) MMD_I_BSL_INT
263 PMC* bitwise_shr(PMC* value, PMC* dest) MMD_BSR
264 PMC* bitwise_shr_int(INTVAL value, PMC* dest) MMD_BSR_INT
266 void i_bitwise_shr(PMC* value) MMD_I_BSR
267 void i_bitwise_shr_int(INTVAL value) MMD_I_BSR_INT
269 PMC* bitwise_lsr(PMC* value, PMC* dest) MMD_LSR
270 PMC* bitwise_lsr_int(INTVAL value, PMC* dest) MMD_LSR_INT
272 void i_bitwise_lsr(PMC* value) MMD_I_LSR
273 void i_bitwise_lsr_int(INTVAL value) MMD_I_LSR_INT
276 INTVAL is_equal(PMC* value) MMD_EQ
277 INTVAL is_equal_num(PMC* value) MMD_NUMEQ
278 INTVAL is_equal_string(PMC* value) MMD_STREQ
280 INTVAL is_same(PMC* value)
282 INTVAL cmp(PMC* value) MMD_CMP
283 INTVAL cmp_num(PMC* value) MMD_NUMCMP
284 INTVAL cmp_string(PMC* value) MMD_STRCMP
286 PMC* logical_or(PMC* value, PMC* dest) MMD_LOR
288 PMC* logical_and(PMC* value, PMC* dest) MMD_LAND
290 PMC* logical_xor(PMC* value, PMC* dest) MMD_LXOR
292 PMC* logical_not(PMC* dest)
297 PMC* concatenate(PMC* value, PMC* dest) MMD_CONCAT
298 PMC* concatenate_str(STRING* value, PMC* dest) MMD_CONCAT_STR
300 void i_concatenate(PMC* value) MMD_I_CONCAT
301 void i_concatenate_str(STRING* value) MMD_I_CONCAT_STR
303 PMC* repeat(PMC* value, PMC* dest) MMD_REPEAT
304 PMC* repeat_int(INTVAL value, PMC* dest) MMD_REPEAT_INT
306 void i_repeat(PMC* value) MMD_I_REPEAT
307 void i_repeat_int(INTVAL value) MMD_I_REPEAT_INT
309 void substr(INTVAL offset, INTVAL length, PMC* dest)
310 STRING* substr_str(INTVAL offset, INTVAL length)
313 INTVAL exists_keyed(PMC* key)
314 INTVAL exists_keyed_int(INTVAL key)
315 INTVAL exists_keyed_str(STRING* key)
319 INTVAL defined_keyed(PMC* key)
320 INTVAL defined_keyed_int(INTVAL key)
321 INTVAL defined_keyed_str(STRING* key)
324 void delete_keyed(PMC* key)
325 void delete_keyed_int(INTVAL key)
326 void delete_keyed_str(STRING* key)
329 PMC* nextkey_keyed(PMC* key, INTVAL what)
330 PMC* nextkey_keyed_int(INTVAL key, INTVAL what)
331 PMC* nextkey_keyed_str(STRING* key, INTVAL what)
334 void* invoke(void* next)
336 INTVAL can(STRING* method)
338 INTVAL does(STRING* method)
340 INTVAL isa(STRING* _class)
342 PMC* subclass(STRING* name)
344 PMC* get_attr(INTVAL idx)
345 PMC* get_attr_str(STRING* idx)
346 void set_attr(INTVAL idx, PMC* value)
347 void set_attr_str(STRING* idx, PMC* value)
350 void add_parent(PMC* parent)
351 void become_parent(PMC* class)
353 void add_method(STRING* method, PMC* sub_pmc)
354 void remove_method(STRING* method)
356 PMC* get_anonymous_subclass()
358 void freeze(visit_info* info)
359 void thaw (visit_info* info)
360 void thawfinish (visit_info* info)
361 void visit (visit_info* info)