phobos2077
fcea09ea73
Rewrite "stringify" logic for consistency and take it into account when removing unused strings
2023-06-09 15:13:52 +02:00
phobos2077
bf164be1fc
Fix error in FindVarUsage resulting in node indexes getting borked
2023-06-09 11:15:11 +02:00
phobos2077
e1483a8e44
Fix crash for scripts with no strings
2023-06-09 10:55:54 +02:00
phobos2077
b5b0e2de98
Reduce code duplication between namespace and stringspace optimization
2023-06-09 02:36:11 +02:00
phobos2077
507331ca51
Compress stringspace, closes #5
2023-06-09 01:52:06 +02:00
phobos2077
867be799d2
Fix optimizer not treating CALL as variable use (valid case when variable contains procedure name) - closes #6
2023-06-09 00:54:45 +02:00
phobos2077
ca1746a1f7
Fix erronous "symbol or string expected" when trying to call procedure using a string literal (valid case)
2023-06-09 00:49:55 +02:00
phobos2077
9d1c521869
Gitignore
2023-06-09 00:49:12 +02:00
phobos2077
8162a01b63
Full optimization: don't eliminate proc args if any consequent args were used, to prevent invalid values ( closes #4 )
...
- This happens because proc will still have it's original arg count and calling side will still pass all arguments, but inside the proc, wrong argument will be used, due to how variable removal works
2023-05-25 01:48:32 +02:00
phobos2077
a7375398d2
Fill extern procedure variable list when it's defined ( closes #3 )
...
- This satisfies expectation in procedure() that forward-declared procedures already have variable list initialized, thus preventing crash
2023-05-24 00:31:40 +02:00