This repository was archived by the owner on May 18, 2019. It is now read-only.
Commit 8a7d7b1
Redesign SymbolTable handling
The SymbolTable has been moved out from the frontend completely. It is
now handled by a new module called SymbolTable, which uses a thread-
local variable to avoid passing around the symbol table. This makes the
handling of caching SCode much simpler.
Some functionality has been removed:
- Cached classes in the symbol table (we use the FCache instead)
- Instantiated functions (since they were not used before, and -d=gen
is not used anyway)
- The LoadedFiles list (since the result was ignored anyway)
- OpenModelicaInternal.simplify (since the bootstrapping tests can run
simplify instead)
Other functionality has been moved between frontend and backend files in
order to make the interface cleaner.
The handling of loadResource has been updated. The locations of
resources is now stored in the runtime in order to make the handling
of URIs easier to implement for FMI.
There are also fixes for e.g. getErrorString and runScript to not
generate error-messages during elaboration. This is done by making
getErrorString impure, and by making elabCall able to roll back messages
that were not at the top of the stack previously.
CevalFunction now stops evaluation on fail() like it does for
assert(false).
The frontend now fails when the function tree is not valid because there
seems to be some model(s) that manage to ignore failing to instantiate a
function.
We now handle assertions triggered in built-in functions that previously
printed to stderr by making them write to the Error.mo buffer instead.
Belonging to [master]:
- #2116
- OpenModelica/OpenModelica-testsuite#8291 parent 105aad9 commit 8a7d7b1
File tree
60 files changed
+5375
-6736
lines changed- Compiler
- BackEnd
- FFrontEnd
- FrontEnd
- Global
- Main
- Script
- SimCode
- Stubs
- Template
- Util
- boot
- runtime
- SimulationRuntime
- c
- gc
- util
- fmi/export
- fmi1
- fmi2
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
60 files changed
+5375
-6736
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
| 570 | + | |
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
| 839 | + | |
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
| 844 | + | |
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
| 884 | + | |
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
889 | | - | |
| 889 | + | |
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
| 921 | + | |
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
926 | | - | |
| 926 | + | |
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
| 97 | + | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
102 | | - | |
| 100 | + | |
| 101 | + | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| |||
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | | - | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| |||
134 | 132 | | |
135 | 133 | | |
136 | 134 | | |
137 | | - | |
| 135 | + | |
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
| 139 | + | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
| |||
284 | 283 | | |
285 | 284 | | |
286 | 285 | | |
287 | | - | |
288 | | - | |
| 286 | + | |
| 287 | + | |
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | 415 | | |
417 | 416 | | |
418 | 417 | | |
| |||
443 | 442 | | |
444 | 443 | | |
445 | 444 | | |
446 | | - | |
| 445 | + | |
447 | 446 | | |
448 | 447 | | |
449 | 448 | | |
| |||
467 | 466 | | |
468 | 467 | | |
469 | 468 | | |
470 | | - | |
471 | 469 | | |
472 | | - | |
473 | | - | |
| 470 | + | |
| 471 | + | |
474 | 472 | | |
475 | | - | |
476 | | - | |
| 473 | + | |
| 474 | + | |
477 | 475 | | |
478 | 476 | | |
479 | 477 | | |
| |||
506 | 504 | | |
507 | 505 | | |
508 | 506 | | |
509 | | - | |
510 | 507 | | |
511 | | - | |
512 | | - | |
| 508 | + | |
| 509 | + | |
513 | 510 | | |
514 | 511 | | |
515 | 512 | | |
| |||
586 | 583 | | |
587 | 584 | | |
588 | 585 | | |
589 | | - | |
590 | 586 | | |
591 | 587 | | |
592 | 588 | | |
| |||
595 | 591 | | |
596 | 592 | | |
597 | 593 | | |
598 | | - | |
| 594 | + | |
599 | 595 | | |
600 | 596 | | |
601 | 597 | | |
| |||
622 | 618 | | |
623 | 619 | | |
624 | 620 | | |
625 | | - | |
626 | 621 | | |
627 | | - | |
| 622 | + | |
628 | 623 | | |
629 | 624 | | |
630 | 625 | | |
| |||
645 | 640 | | |
646 | 641 | | |
647 | 642 | | |
648 | | - | |
649 | 643 | | |
650 | | - | |
| 644 | + | |
651 | 645 | | |
652 | 646 | | |
653 | 647 | | |
| |||
656 | 650 | | |
657 | 651 | | |
658 | 652 | | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | 653 | | |
687 | 654 | | |
688 | 655 | | |
| |||
735 | 702 | | |
736 | 703 | | |
737 | 704 | | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | 705 | | |
744 | 706 | | |
745 | 707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2738 | 2738 | | |
2739 | 2739 | | |
2740 | 2740 | | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
2741 | 2755 | | |
2742 | 2756 | | |
2743 | 2757 | | |
| |||
0 commit comments