41 Commits

Author SHA1 Message Date
Rerumu
34311bd0fb Allow Builder re-use 2022-06-17 22:11:31 -04:00
Rerumu
2fae09e149 Fix minor order peeve 2022-06-17 22:05:57 -04:00
Rerumu
f52033036a Re-classify MemoryGrow as a Statement 2022-06-17 21:56:52 -04:00
Rerumu
0e23793d72 Add accessors for various stack operations 2022-06-17 21:56:49 -04:00
Rerumu
b3c931a38e Add comprehensive stack use analysis 2022-06-17 21:55:08 -04:00
Rerumu
a7f30b8157 Fix stack size heuristic overshooting 2022-06-16 06:33:03 -04:00
Rerumu
9a2b52fde5 Fix memory size leaking behavior 2022-06-16 06:33:03 -04:00
Rerumu
987a19ed8e Make clippy happy 2022-06-15 02:46:55 -04:00
Rerumu
08004a9782 Remove unneeded top level result handling 2022-06-15 02:44:28 -04:00
Rerumu
941bb4842b Fix branching out of loops and improve tracking 2022-06-15 02:34:02 -04:00
Rerumu
a6cf4fdf07 Fix alignment when branching 2022-06-14 00:23:50 -04:00
Rerumu
c15a4b3ec7 Fix unreachable code heuristic for conditionals 2022-06-12 04:38:28 -04:00
Rerumu
735dfc7d96 Fix start_else stack size heuristic 2022-06-12 04:38:03 -04:00
Rerumu
a379fb2e91 Fix BrIf reachability and simplify block adds 2022-06-12 04:27:16 -04:00
Rerumu
c4c0bf8deb Fix temporary alignment 2022-06-12 04:27:16 -04:00
Rerumu
6cdf793818 Fix else not pushing argument copy 2022-06-12 04:27:16 -04:00
Rerumu
954f133557 Move around start_else 2022-06-12 04:27:16 -04:00
Rerumu
32031c8c2c Refactor BrIf behavior 2022-06-12 04:27:16 -04:00
Rerumu
183db977f3 Refactor Return behavior 2022-06-12 04:27:10 -04:00
Rerumu
b8e40fe740 Rename Intermediate to FuncData 2022-06-10 23:35:25 -04:00
Rerumu
78aa47cdd6 Fix missing visit_statement call 2022-06-10 23:35:25 -04:00
Rerumu
2df59b2d82 Refactor Terminator from Statement 2022-06-10 23:35:20 -04:00
Rerumu
472f37d059 Add new Builder backend 2022-06-10 06:13:28 -04:00
Rerumu
e0347c505e Remove verbose Else wrapper 2022-06-10 03:21:16 -04:00
Rerumu
f85235738e Fix severe lapse in naming scheme judgement 2022-06-09 01:05:53 -04:00
Rerumu
c3a3a09107 Adjust some runtime emits 2022-05-21 03:51:27 -04:00
Rerumu
0e92163cb3 Fix constant generation 2022-05-19 17:09:44 -04:00
Rerumu
7913dd507a Factor out operator analysis and simplify output 2022-04-29 23:30:55 -04:00
Rerumu
85e0e2276a Add automatic releasing 2022-04-27 04:49:14 -04:00
Rerumu
d1ad9ddb7a Start aesthetic refactoring 2022-04-27 01:33:45 -04:00
Rerumu
1fda67d6d3 Rename some AST parts to be less odd 2022-04-26 05:03:54 -04:00
Rerumu
36e9ff3c86 Add import formatting default 2022-04-25 21:26:11 -04:00
Rerumu
e7b36a7d94 Unify integer types and simplify some code 2022-04-22 21:57:43 -04:00
Rerumu
233aee2c5e Simplify type and local handling 2022-04-22 04:01:10 -04:00
Rerumu
891851bcb8 Add pop_many to reduce redundancy 2022-02-09 18:47:25 -05:00
Rerumu
80a9230767 Rename fallible operations 2022-02-09 05:32:51 -05:00
Rerumu
bc24765ba9 Fix gen_call_indirect ordering 2022-02-09 05:27:38 -05:00
Rerumu
d6b77b287e Simplify new_stored_body 2022-02-09 04:55:22 -05:00
Rerumu
fbd23e05b6 Simplify value instantiation 2022-02-09 04:48:51 -05:00
Rerumu
460f363c91 Refactor Builder behavior and stack emulation 2022-02-09 04:45:28 -05:00
Rerumu
22ea8910ad Re-structure and decouple AST from generator 2022-02-08 17:39:14 -05:00