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