4 /* Generated with PRIMITIVE in primitives.cpp */
6 #define EACH_PRIMITIVE(_) \
10 _(array_to_quotation) \
38 _(callstack_to_array) \
45 _(compute_identity_hashcode) \
47 _(context_object_for) \
49 _(counting_profiler) \
54 _(disable_gc_events) \
95 _(identity_hashcode) \
96 _(innermost_stack_frame_executing) \
97 _(innermost_stack_frame_scan) \
103 _(modify_code_heap) \
108 _(reset_dispatch_stats) \
110 _(resize_byte_array) \
114 _(sampling_profiler) \
116 _(save_image_and_exit) \
117 _(set_context_object) \
119 _(set_innermost_stack_frame_quot) \
122 _(set_special_object) \
123 _(set_string_nth_fast) \
128 _(strip_stack_traces) \
132 _(uninitialized_byte_array) \
137 #define EACH_ALIEN_PRIMITIVE(_) \
138 _(signed_cell,fixnum,from_signed_cell,to_fixnum) \
139 _(unsigned_cell,cell,from_unsigned_cell,to_cell) \
140 _(signed_8,s64,from_signed_8,to_signed_8) \
141 _(unsigned_8,u64,from_unsigned_8,to_unsigned_8) \
142 _(signed_4,s32,from_signed_cell,to_fixnum) \
143 _(unsigned_4,u32,from_unsigned_cell,to_cell) \
144 _(signed_2,s16,from_signed_cell,to_fixnum) \
145 _(unsigned_2,u16,from_unsigned_cell,to_cell) \
146 _(signed_1,s8,from_signed_cell,to_fixnum) \
147 _(unsigned_1,u8,from_unsigned_cell,to_cell) \
148 _(float,float,allot_float,to_float) \
149 _(double,double,allot_float,to_double) \
150 _(cell,void *,allot_alien,pinned_alien_offset)
152 #define DECLARE_PRIMITIVE(name) VM_C_API void primitive_##name(factor_vm *parent);
154 #define DECLARE_ALIEN_PRIMITIVE(name, type, from, to) \
155 DECLARE_PRIMITIVE(alien_##name) \
156 DECLARE_PRIMITIVE(set_alien_##name)
158 EACH_PRIMITIVE(DECLARE_PRIMITIVE)
159 EACH_ALIEN_PRIMITIVE(DECLARE_ALIEN_PRIMITIVE)