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