nitdoc: use pratchett.info.uqam.ca/piwik/
[nit.git] / c_src / global_compiler.sep.0.h
1 #include "nit.common.h"
2 extern const int COLOR_time__Object__get_time;
3 extern const int COLOR_modelbuilder__ModelBuilder__toolcontext;
4 val* string__NativeString__to_s_with_length(char* self, long p0);
5 extern const int COLOR_toolcontext__ToolContext__info;
6 val* NEW_global_compiler__GlobalCompiler(const struct type* type);
7 extern const struct type type_global_compiler__GlobalCompiler;
8 extern const int COLOR_global_compiler__GlobalCompiler__init;
9 void CHECK_NEW_global_compiler__GlobalCompiler(val*);
10 extern const int COLOR_abstract_compiler__AbstractCompiler__compile_header;
11 extern const int COLOR_rapid_type_analysis__RapidTypeAnalysis__live_types;
12 extern const int COLOR_abstract_collection__Collection__iterator;
13 extern const int COLOR_abstract_collection__Iterator__is_ok;
14 extern const int COLOR_abstract_collection__Iterator__item;
15 extern const int COLOR_global_compiler__GlobalCompiler__declare_runtimeclass;
16 extern const int COLOR_abstract_collection__Iterator__next;
17 extern const int COLOR_global_compiler__GlobalCompiler__compile_class_names;
18 extern const int COLOR_abstract_compiler__MType__ctype;
19 extern const int COLOR_kernel__Object___61d_61d;
20 extern const int COLOR_global_compiler__GlobalCompiler__generate_init_instance;
21 extern const int COLOR_abstract_compiler__AbstractCompiler__generate_check_init_instance;
22 extern const int COLOR_global_compiler__GlobalCompiler__generate_box_instance;
23 extern const int COLOR_abstract_compiler__AbstractCompiler__compile_main_function;
24 extern const int COLOR_global_compiler__GlobalCompiler__todos;
25 extern const int COLOR_abstract_collection__Collection__is_empty;
26 extern const int COLOR_abstract_collection__Sequence__shift;
27 extern const int COLOR_global_compiler__GlobalCompiler__seen;
28 extern const int COLOR_abstract_collection__Collection__length;
29 val* NEW_array__Array(const struct type* type);
30 extern const struct type type_array__Arraykernel__Object;
31 val* NEW_array__NativeArray(int length, const struct type* type);
32 extern const struct type type_array__NativeArraykernel__Object;
33 extern const int COLOR_array__Array__with_native;
34 void CHECK_NEW_array__Array(val*);
35 extern const int COLOR_string__Object__to_s;
36 extern const int COLOR_abstract_compiler__AbstractRuntimeFunction__compile_to_c;
37 extern const int COLOR_abstract_compiler__AbstractCompiler__display_stats;
38 extern const int COLOR_abstract_compiler__ModelBuilder__write_and_make;
39 void global_compiler__ModelBuilder__run_global_compiler(val* self, val* p0, val* p1);
40 extern const int COLOR_global_compiler__GlobalCompiler___64druntime_type_analysis;
41 val* global_compiler__GlobalCompiler__runtime_type_analysis(val* self);
42 void global_compiler__GlobalCompiler__runtime_type_analysis_61d(val* self, val* p0);
43 extern const int COLOR_abstract_compiler__AbstractCompiler__init;
44 extern const int COLOR_model_base__MModule__name;
45 extern const int COLOR_abstract_compiler__AbstractCompiler__new_file;
46 val* NEW_abstract_compiler__CodeWriter(const struct type* type);
47 extern const struct type type_abstract_compiler__CodeWriter;
48 extern const int COLOR_abstract_compiler__CodeWriter__init;
49 void CHECK_NEW_abstract_compiler__CodeWriter(val*);
50 extern const int COLOR_abstract_compiler__AbstractCompiler__header_61d;
51 extern const int COLOR_global_compiler__GlobalCompiler__runtime_type_analysis_61d;
52 extern const struct type type_array__Arraymodel__MClassType;
53 extern const int COLOR_array__Array__init;
54 extern const int COLOR_global_compiler__GlobalCompiler__live_primitive_types_61d;
55 extern const int COLOR_kernel__Object___33d_61d;
56 extern const int COLOR_global_compiler__GlobalCompiler__live_primitive_types;
57 extern const int COLOR_abstract_collection__SimpleCollection__add;
58 void global_compiler__GlobalCompiler__init(val* self, val* p0, val* p1, val* p2);
59 extern const int COLOR_abstract_compiler__AbstractCompiler__new_visitor;
60 extern const int COLOR_abstract_compiler__AbstractCompiler__header;
61 extern const int COLOR_abstract_compiler__CodeWriter__add_decl;
62 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__add;
63 extern const int COLOR_global_compiler__GlobalCompiler__runtime_type_analysis;
64 extern const int COLOR_global_compiler__GlobalCompiler__classid;
65 void global_compiler__GlobalCompiler__compile_class_names(val* self);
66 extern const int COLOR_global_compiler__GlobalCompiler__classids;
67 extern const int COLOR_abstract_collection__MapRead__has_key;
68 extern const int COLOR_abstract_collection__MapRead___91d_93d;
69 extern const int COLOR_file__Object__print;
70 val* global_compiler__GlobalCompiler__classid(val* self, val* p0);
71 extern const int COLOR_global_compiler__GlobalCompiler___64dclassids;
72 val* global_compiler__GlobalCompiler__classids(val* self);
73 void global_compiler__GlobalCompiler__classids_61d(val* self, val* p0);
74 void global_compiler__GlobalCompiler__compile_header_structs(val* self);
75 extern const int COLOR_global_compiler__GlobalCompiler___64dlive_primitive_types;
76 val* global_compiler__GlobalCompiler__live_primitive_types(val* self);
77 void global_compiler__GlobalCompiler__live_primitive_types_61d(val* self, val* p0);
78 extern const int COLOR_abstract_collection__Collection__has;
79 void global_compiler__GlobalCompiler__todo(val* self, val* p0);
80 extern const int COLOR_global_compiler__GlobalCompiler___64dtodos;
81 val* global_compiler__GlobalCompiler__todos(val* self);
82 void global_compiler__GlobalCompiler__todos_61d(val* self, val* p0);
83 extern const int COLOR_global_compiler__GlobalCompiler___64dseen;
84 val* global_compiler__GlobalCompiler__seen(val* self);
85 void global_compiler__GlobalCompiler__seen_61d(val* self, val* p0);
86 extern const int COLOR_abstract_collection__MapRead__length;
87 extern const int COLOR_abstract_compiler__MType__c_name;
88 extern const int COLOR_string__String___43d;
89 extern const int COLOR_abstract_collection__Map___91d_93d_61d;
90 extern const int COLOR_model__MClassType__mclass;
91 extern const int COLOR_model__MClass__name;
92 extern const int COLOR_model__MClassType__arguments;
93 extern const int COLOR_abstract_collection__Collection__first;
94 extern const int COLOR_abstract_compiler__AbstractCompiler__mainmodule;
95 extern const int COLOR_model__MType__collect_mclassdefs;
96 extern const int COLOR_model__MClassDef__intro_mproperties;
97 extern const struct type type_model__MAttribute;
98 extern const int COLOR_model__MProperty__intro;
99 extern const int COLOR_model__MAttributeDef__static_mtype;
100 extern const int COLOR_model__MType__anchor_to;
101 extern const int COLOR_abstract_compiler__MPropDef__c_name;
102 void global_compiler__GlobalCompiler__declare_runtimeclass(val* self, val* p0);
103 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__add_decl;
104 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__new_var;
105 extern const int COLOR_abstract_compiler__RuntimeVariable__is_exact_61d;
106 extern const int COLOR_abstract_compiler__AbstractCompiler__generate_init_attr;
107 void global_compiler__GlobalCompiler__generate_init_instance(val* self, val* p0);
108 extern const int COLOR_abstract_compiler__AbstractCompiler__modelbuilder;
109 extern const int COLOR_abstract_compiler__ToolContext__opt_no_check_initialization;
110 extern const int COLOR_opts__Option__value;
111 val* NEW_abstract_compiler__RuntimeVariable(const struct type* type);
112 extern const struct type type_abstract_compiler__RuntimeVariable;
113 extern const int COLOR_abstract_compiler__RuntimeVariable__init;
114 void CHECK_NEW_abstract_compiler__RuntimeVariable(val*);
115 extern const int COLOR_abstract_compiler__AbstractCompiler__generate_check_attr;
116 void global_compiler__GlobalCompiler__generate_check_init_instance(val* self, val* p0);
117 void global_compiler__GlobalCompiler__generate_box_instance(val* self, val* p0);
118 val* NEW_global_compiler__GlobalCompilerVisitor(const struct type* type);
119 extern const struct type type_global_compiler__GlobalCompilerVisitor;
120 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__init;
121 void CHECK_NEW_global_compiler__GlobalCompilerVisitor(val*);
122 extern const int COLOR_abstract_compiler__AbstractCompiler_VTVISITOR;
123 val* global_compiler__GlobalCompiler__new_visitor(val* self);
124 extern const int COLOR_global_compiler__GlobalCompiler___64dcollect_types_cache;
125 val* global_compiler__GlobalCompiler__collect_types_cache(val* self);
126 void global_compiler__GlobalCompiler__collect_types_cache_61d(val* self, val* p0);
127 extern const int COLOR_abstract_compiler__RuntimeVariable__mtype;
128 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__new_expr;
129 extern const struct type type_model__MClassType;
130 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__compiler;
131 val* global_compiler__GlobalCompilerVisitor__autobox(val* self, val* p0, val* p1);
132 extern const int COLOR_abstract_compiler__RuntimeVariable__mcasttype;
133 extern const int COLOR_abstract_compiler__RuntimeVariable__is_exact;
134 extern const int COLOR_array__Array__with_capacity;
135 extern const int COLOR_abstract_collection__Sequence__push;
136 extern const int COLOR_global_compiler__GlobalCompiler__collect_types_cache;
137 extern const int COLOR_model__MType__is_subtype;
138 val* global_compiler__GlobalCompilerVisitor__collect_types(val* self, val* p0);
139 extern const int COLOR_abstract_collection__SequenceRead___91d_93d;
140 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__ret;
141 void global_compiler__GlobalCompilerVisitor__native_array_def(val* self, val* p0, val* p1, val* p2);
142 void global_compiler__GlobalCompilerVisitor__calloc_array(val* self, val* p0, val* p1);
143 extern const int COLOR_global_compiler__GlobalCompilerVisitor__collect_types;
144 extern const int COLOR_model__MMethodDef__msignature;
145 extern const int COLOR_model__MSignature__return_mtype;
146 extern const int COLOR_model__MMethod__is_new;
147 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__resolve_for;
148 extern const int COLOR_string__Object__inspect;
149 extern const int COLOR_model__MProperty__lookup_first_definition;
150 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__call;
151 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__assign;
152 extern const int COLOR_abstract_compiler__ToolContext__opt_no_check_other;
153 extern const int COLOR_model__MProperty__name;
154 extern const struct type type_model__MNullableType;
155 extern const struct type type_model__MNullType;
156 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__add_abort;
157 extern const int COLOR_global_compiler__GlobalCompilerVisitor__bugtype;
158 extern const int COLOR_abstract_collection__SequenceRead__last;
159 extern const int COLOR_model__MPropDef__mclassdef;
160 extern const int COLOR_model__MClassDef__mclass;
161 extern const int COLOR_abstract_compiler__AbstractCompiler__hardening;
162 extern const int COLOR_model__MClassDef__bound_mtype;
163 val* global_compiler__GlobalCompilerVisitor__send(val* self, val* p0, val* p1);
164 void global_compiler__GlobalCompilerVisitor__check_valid_reciever(val* self, val* p0);
165 extern const int COLOR_global_compiler__GlobalCompilerVisitor__check_valid_reciever;
166 val* global_compiler__GlobalCompilerVisitor__get_recvtype(val* self, val* p0, val* p1, val* p2);
167 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__autobox;
168 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__autoadapt;
169 val* global_compiler__GlobalCompilerVisitor__get_recv(val* self, val* p0, val* p1);
170 extern const int COLOR_model__MSignature__arity;
171 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__debug;
172 val* NEW_global_compiler__CustomizedRuntimeFunction(const struct type* type);
173 extern const struct type type_global_compiler__CustomizedRuntimeFunction;
174 extern const int COLOR_global_compiler__CustomizedRuntimeFunction__init;
175 void CHECK_NEW_global_compiler__CustomizedRuntimeFunction(val*);
176 extern const int COLOR_abstract_compiler__AbstractRuntimeFunction__call;
177 val* global_compiler__GlobalCompilerVisitor__finalize_call(val* self, val* p0, val* p1, val* p2);
178 extern const int COLOR_global_compiler__GlobalCompilerVisitor__get_recvtype;
179 extern const int COLOR_global_compiler__GlobalCompilerVisitor__get_recv;
180 extern const int COLOR_array__Collection__to_a;
181 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__varargize;
182 extern const int COLOR_abstract_collection__Sequence__first_61d;
183 extern const int COLOR_global_compiler__GlobalCompilerVisitor__finalize_call;
184 val* global_compiler__GlobalCompilerVisitor__call(val* self, val* p0, val* p1, val* p2);
185 val* global_compiler__GlobalCompilerVisitor__call_without_varargize(val* self, val* p0, val* p1, val* p2);
186 extern const int COLOR_model__MPropDef__mproperty;
187 extern const int COLOR_model__MPropDef__lookup_next_definition;
188 extern const int COLOR_global_compiler__GlobalCompilerVisitor__call_without_varargize;
189 val* global_compiler__GlobalCompilerVisitor__supercall(val* self, val* p0, val* p1, val* p2);
190 val* NEW_range__Range(const struct type* type);
191 extern const struct type type_range__Rangekernel__Int;
192 extern const int COLOR_range__Range__without_last;
193 void CHECK_NEW_range__Range(val*);
194 extern const int COLOR_model__MSignature__mparameters;
195 extern const int COLOR_model__MParameter__mtype;
196 extern const int COLOR_model__MSignature__vararg_rank;
197 extern const int COLOR_abstract_collection__Sequence___91d_93d_61d;
198 void global_compiler__GlobalCompilerVisitor__adapt_signature(val* self, val* p0, val* p1);
199 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__array_instance;
200 val* global_compiler__GlobalCompilerVisitor__vararg_instance(val* self, val* p0, val* p1, val* p2, val* p3);
201 void global_compiler__GlobalCompilerVisitor__bugtype(val* self, val* p0);
202 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__check_recv_notnull;
203 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__bool_type;
204 val* global_compiler__GlobalCompilerVisitor__isset_attribute(val* self, val* p0, val* p1);
205 val* global_compiler__GlobalCompilerVisitor__read_attribute(val* self, val* p0, val* p1);
206 void global_compiler__GlobalCompilerVisitor__write_attribute(val* self, val* p0, val* p1, val* p2);
207 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__anchor;
208 val* global_compiler__GlobalCompilerVisitor__init_instance(val* self, val* p0);
209 extern const int COLOR_model__MNullableType__mtype;
210 extern const int COLOR_rapid_type_analysis__RapidTypeAnalysis__live_cast_types;
211 val* global_compiler__GlobalCompilerVisitor__type_test(val* self, val* p0, val* p1, val* p2);
212 val* global_compiler__GlobalCompilerVisitor__is_same_type_test(val* self, val* p0, val* p1);
213 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__get_name;
214 val* global_compiler__GlobalCompilerVisitor__class_name_string(val* self, val* p0);
215 extern const struct type type_array__Arraystring__String;
216 extern const int COLOR_string__Collection__join;
217 val* global_compiler__GlobalCompilerVisitor__equal_test(val* self, val* p0, val* p1);
218 void global_compiler__GlobalCompilerVisitor__check_init_instance(val* self, val* p0, val* p1);
219 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__get_class;
220 extern const struct type type_array__Arraymodel__MType;
221 extern const struct type type_array__NativeArraymodel__MType;
222 extern const int COLOR_model__MClass__get_mtype;
223 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__init_instance;
224 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__int_instance;
225 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__get_property;
226 extern const struct type type_array__Arrayabstract_compiler__RuntimeVariable;
227 extern const struct type type_array__NativeArrayabstract_compiler__RuntimeVariable;
228 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__send;
229 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__check_init_instance;
230 val* global_compiler__GlobalCompilerVisitor__array_instance(val* self, val* p0, val* p1);
231 extern const int COLOR_global_compiler__CustomizedRuntimeFunction___64drecv;
232 val* global_compiler__CustomizedRuntimeFunction__recv(val* self);
233 void global_compiler__CustomizedRuntimeFunction__recv_61d(val* self, val* p0);
234 extern const int COLOR_abstract_compiler__AbstractRuntimeFunction__init;
235 extern const int COLOR_global_compiler__CustomizedRuntimeFunction__recv_61d;
236 void global_compiler__CustomizedRuntimeFunction__init(val* self, val* p0, val* p1);
237 extern const int COLOR_abstract_compiler__AbstractRuntimeFunction__c_name_cache;
238 extern const int COLOR_abstract_compiler__AbstractRuntimeFunction__mmethoddef;
239 extern const int COLOR_global_compiler__CustomizedRuntimeFunction__recv;
240 extern const int COLOR_abstract_compiler__AbstractRuntimeFunction__c_name_cache_61d;
241 val* global_compiler__CustomizedRuntimeFunction__build_c_name(val* self);
242 short int global_compiler__CustomizedRuntimeFunction___61d_61d(val* self, val* p0);
243 extern const int COLOR_kernel__Object__hash;
244 long global_compiler__CustomizedRuntimeFunction__hash(val* self);
245 val* global_compiler__CustomizedRuntimeFunction__to_s(val* self);
246 extern const int COLOR_abstract_compiler__AbstractRuntimeFunction_VTCOMPILER;
247 val* NEW_abstract_compiler__Frame(const struct type* type);
248 extern const struct type type_abstract_compiler__Frame;
249 extern const int COLOR_abstract_compiler__Frame__init;
250 void CHECK_NEW_abstract_compiler__Frame(val*);
251 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__frame_61d;
252 val* NEW_string__Buffer(const struct type* type);
253 extern const struct type type_string__Buffer;
254 extern const int COLOR_string__Buffer__init;
255 void CHECK_NEW_string__Buffer(val*);
256 extern const int COLOR_abstract_collection__Sequence__append;
257 extern const int COLOR_abstract_compiler__AbstractRuntimeFunction__c_name;
258 extern const int COLOR_abstract_compiler__Frame__returnvar_61d;
259 extern const int COLOR_abstract_compiler__Frame__returnlabel_61d;
260 extern const int COLOR_abstract_compiler__MMethodDef__compile_inside_to_c;
261 extern const int COLOR_abstract_compiler__Frame__returnlabel;
262 extern const int COLOR_abstract_compiler__Frame__returnvar;
263 void global_compiler__CustomizedRuntimeFunction__compile_to_c(val* self, val* p0);
264 extern const int COLOR_abstract_compiler__AbstractRuntimeFunction_VTVISITOR;
265 extern const int COLOR_abstract_compiler__MMethodDef__can_inline;
266 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__frame;
267 extern const int COLOR_abstract_compiler__AbstractCompilerVisitor__adapt_signature;
268 extern const int COLOR_global_compiler__GlobalCompiler__todo;
269 val* global_compiler__CustomizedRuntimeFunction__call(val* self, val* p0, val* p1);