summary refs log tree commit diff stats
path: root/compiler/ic/packed_ast.nim
Commit message (Collapse)AuthorAgeFilesLines
* move assertions out of system (#19599)flywind2022-03-231-0/+3
|
* typos (#17824)Andreas Rumpf2021-04-231-1/+1
|
* CIs: attempt to use csources_v1 (#16282)Andreas Rumpf2021-04-211-1/+1
| | | | | | | | * CIs: attempt to use csources_v1 * also updated the BSDs * also updated azure pipelines * std modules should not itself use the 'std/' import dir... * compiler has to be careful with std/ for v1 booting
* ic refactoring (#17778)Andreas Rumpf2021-04-191-56/+0
| | | | | * minor IC documentation update * IC: refactoring: removed the 'shared' type and fields, these were a leftover from an earlier design
* IC: rodfiles: no floats (#17720)Andreas Rumpf2021-04-141-4/+7
|
* IC: first steps towards 'nim check --def --ic:on' (#17714)Andreas Rumpf2021-04-141-2/+2
| | | | | | | | | * IC: first steps towards 'nim check --def --ic:on' * IC navigator: deduplicate output lines * IC navigator: progress * IC navigator: use a different nimcache entry * IC navigator: special logic for templates/macros * IC navigator: proper error messages * IC navigator: prepare for testing code; document only what currently works somewhat
* followup custom literals (#17500)Timothee Cour2021-03-271-0/+1
|
* IC: compilerprocs are handled correctly (#17265)Andreas Rumpf2021-03-091-0/+3
| | | | | | | * IC: compilerprocs are handled correctly * IC: special logic for .exportC'ed procs * IC: 'hello world' compiles for the first round (2nd round fails) * IC: hello world seems to work
* IC: bugfixes (WIP) (#16836)Andreas Rumpf2021-02-021-0/+1
| | | | | | | | * minor improvements * IC: added the required logic for compilerProcs * LazySym ftw * we need this testing logic * reimplement the old way we use for module package creation * fixes a regression; don't pick module names if you can avoid it
* IC: final implementation steps (#16801)Andreas Rumpf2021-01-251-2/+4
| | | | | | | | * removed dead code * we need even more laziness for the generic caches * make it bootstrap on older Nims * wrote more deserialization code * IC: replay required methods information
* IC: next steps (#16729)Andreas Rumpf2021-01-231-0/+10
| | | | | | | | | | | * IC: dead code elimination pass * preparations for a different codegen strategy * added documentation to the newly written code * IC: backend code * IC: backend adjustments * optimized the compiler a bit * IC: yet another massive refactoring * fixes regressions * cleanups
* IC: next steps (#16705)Andreas Rumpf2021-01-141-24/+7
| | | | | | | | | | | * code cleanups * refactorings for IC * more refactorings for IC * IC: attach the 'nil' type to its module * IC: refactorings and improvements * IC: progress * IC: more serialization fixes * IC: embarrassing omission * code cleanups
* IC: next steps (#16632)Andreas Rumpf2021-01-121-69/+1
| | | | | | | | | | | | | * removed dead code * beginnings of a rodfile reader * IC: record global VM state changes and pragma state changes * IC: replay pragmas and VM state changes * implemented rod load file simuation for easier, extensive testing * critical bugfix * IC: stress test logic; should also help with recursive module dependencies; WIP * IC: loading from .rod files begins to work reliably * removed ugly hacks * yet another silly mistake
* IC: next steps (#16550)Andreas Rumpf2021-01-071-23/+0
| | | | | | | | | | | | | | | | | | * cleanups * ast.nim: cleanups * IC: no more sym.tab field, stored externally in the module graph * nimble compiles again * rodfiles: store bitwidth of integers and the endianness in the cookie because we serialize 'int' directly * rodfiles: added compilerproc and export sections * rodfiles: added all the missing sections * rodfiles: track the missing information * IC: architecture for lazy loading of proc bodies * make tests green again * completed the lazy loading of proc bodies * symbol lookup integration, part 1 * symbol lookup integration, part 2 * symbol lookup integration, part 3 * make tcompilerapi work again * rodfiles: fixed config change handling
* big steps torwards an efficient, simple IC implementation (#16543)Andreas Rumpf2021-01-021-118/+218
| | | | | | | | | | | | | | | | | | | * reworked ID handling * the packed AST now has its own ID mechanism * basic serialization code works * extract rodfiles to its own module * rodfiles: store and compare configs * rodfiles: store dependencies * store config at the end * precise dependency tracking * dependency tracking for rodfiles * completed loading of PSym, PType, etc * removed dead code * bugfix: do not realloc seqs when taking addr into an element * make IC opt-in for now * makes tcompilerapi green again * final cleanups Co-authored-by: Andy Davidoff <github@andy.disruptek.com>
* refactorings to prepare the compiler for IC (#15935)Andreas Rumpf2020-12-171-0/+461
* added ic specific Nim code; WIP * make the symbol import mechanism lazy; WIP * ensure that modules can be imported multiple times * ambiguity checking * handle converters and TR macros properly * make 'enum' test category green again * special logic for semi-pure enums * makes nimsuggest tests green again * fixes nimdata * makes nimpy green again * makes more important packages work
mes Booth <boothj5@gmail.com> 2012-02-29 23:15:27 +0000 TIdey up input win functions' href='/danisanti/profani-tty/commit/input_win.c?id=88de44744adaceca26b7795d6190606ec882d629'>88de4474 ^
279737ba ^

c8bf654e ^
07f41e64 ^




c8bf654e ^
11125561 ^
c5b4fc4a ^
c8bf654e ^
15a87f0a ^
dae4f1bb ^
c8bf654e ^

279737ba ^

6f69ce26 ^
dae4f1bb ^
6f69ce26 ^
6b1b035d ^
6bad38c2 ^
0cfda7e1 ^

11125561 ^



0cfda7e1 ^

dae4f1bb ^
c8bf654e ^

279737ba ^

c8bf654e ^
ee463894 ^
c8bf654e ^

279737ba ^

03b90cf5 ^



439e6486 ^

c8bf654e ^
c8bf654e ^
88de4474 ^
439e6486 ^





6bad38c2 ^
5e490fb1 ^
c8bf654e ^
e6d016e6 ^
c8bf654e ^
1b88da45 ^
439e6486 ^

1b88da45 ^


81dd0a15 ^
e6d016e6 ^
118d97cd ^
5ce97728 ^
e6d016e6 ^
439e6486 ^
118d97cd ^
5ce97728 ^

2433da63 ^
32e025f5 ^
0214acb6 ^
e6d016e6 ^
b328f368 ^
6bad38c2 ^
32e025f5 ^
439e6486 ^
d2e95716 ^
a96e36a5 ^
32e025f5 ^
a96e36a5 ^







32e025f5 ^
a96e36a5 ^


b328f368 ^
32e025f5 ^
db96aead ^

dae4f1bb ^
db96aead ^

32e025f5 ^

893b6f86 ^
c61522fe ^
6bad38c2 ^
d870ea1a ^










b32f58e2 ^
d870ea1a ^



dae4f1bb ^
d870ea1a ^
ed4377e2 ^
88de4474 ^
32e025f5 ^
6a32ed45 ^
88de4474 ^



439e6486 ^

88de4474 ^

279737ba ^

88de4474 ^
052d7527 ^
dae4f1bb ^
88de4474 ^

15a87f0a ^
88de4474 ^



279737ba ^

88de4474 ^
dae4f1bb ^
88de4474 ^

34392622 ^


dae4f1bb ^
34392622 ^

dae4f1bb ^

73cdcb87 ^

dae4f1bb ^
34392622 ^

dae4f1bb ^













34392622 ^
88de4474 ^




279737ba ^
0214acb6 ^
88de4474 ^
88de4474 ^

88de4474 ^
d30d31b5 ^
05292a0e ^




6bad38c2 ^
b328f368 ^
88de4474 ^
0214acb6 ^
fe87af0a ^
0214acb6 ^

78d11d36 ^



6bad38c2 ^
78d11d36 ^

0214acb6 ^
78d11d36 ^





d30d31b5 ^
78d11d36 ^






0214acb6 ^

78d11d36 ^
0214acb6 ^
78d11d36 ^






d30d31b5 ^
78d11d36 ^
0214acb6 ^









78d11d36 ^

fe87af0a ^
58e62f3e ^



















58e62f3e ^




8aad45f9 ^




58e62f3e ^

78d11d36 ^
58e62f3e ^


78d11d36 ^

58e62f3e ^
0214acb6 ^
78d11d36 ^

0214acb6 ^






























































































f5f7b99e ^
0214acb6 ^



cc4c7f3e ^
0214acb6 ^


20a7d52d ^

05292a0e ^
20a7d52d ^



dae4f1bb ^
20a7d52d ^
0214acb6 ^


772f5857 ^










cc4c7f3e ^
dae4f1bb ^
772f5857 ^
0214acb6 ^
cc4c7f3e ^
0214acb6 ^
11125561 ^
0214acb6 ^


c8bf654e ^
0214acb6 ^




25a056a1 ^
0214acb6 ^
6bad38c2 ^
0214acb6 ^


25a056a1 ^
0214acb6 ^




25a056a1 ^
0214acb6 ^
25a056a1 ^
0214acb6 ^
c72d7ad6 ^
0214acb6 ^



9450c8f2 ^
0214acb6 ^
c72d7ad6 ^
0214acb6 ^



6bad38c2 ^
0214acb6 ^


dae4f1bb ^
0214acb6 ^
6bad38c2 ^
0214acb6 ^


88de4474 ^
0214acb6 ^


5fb98515 ^
0214acb6 ^

d92499da ^
c8bf654e ^
c8bf654e ^

ad000db6 ^
dae4f1bb ^
ad000db6 ^
b328f368 ^
ad000db6 ^

dae4f1bb ^
ad000db6 ^


279737ba ^
439e6486 ^
c8bf654e ^
e6d016e6 ^


e6d016e6 ^

f7ad1c03 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568