Commit graph

652 commits

Author SHA1 Message Date
Brian Carroll
3d00217b53 Wasm: rename build_module_help -> build_module_without_test_wrapper 2022-01-14 18:20:52 +00:00
Brian Carroll
ca2597973e Wasm: store function_count on the ImportSection 2022-01-14 18:20:52 +00:00
Brian Carroll
7f5b8c7296 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-pre-linking 2022-01-14 18:20:24 +00:00
Folkert de Vries
e1d990896a
Merge branch 'trunk' into mono-display 2022-01-14 13:55:52 +01:00
ayazhafiz
9f78eb2e01 Fix bug that caused extraneous assignment in IR generation
Previously we would expand optional record fields to assignments when
converting record patterns to "when" expressions. This resulted in
incorrect code being generated.
2022-01-13 18:34:25 -05:00
ayazhafiz
72ee2d6327 Mark pretty_print_ir_symbols public 2022-01-13 16:35:09 -05:00
hafiz
5f216122d6 Update dev.rs 2022-01-13 16:33:26 -05:00
Brian Carroll
535927a85e Wasm: fix test_wrapper function index 2022-01-13 05:41:52 +00:00
Brian Carroll
b46124234f Wasm: Add mock functions to HTML debugger for the full set of WASI imports 2022-01-13 05:41:52 +00:00
Brian Carroll
4f15fb3967 Wasm: Adjust funciton index for test_wrapper export declaration 2022-01-13 05:41:52 +00:00
Brian Carroll
9f0e0d5099 Wasm: create a hashmap of exported functions 2022-01-13 05:41:52 +00:00
Brian Carroll
9c0abcd0da Wasm: Preload WasmModule from object file bytes 2022-01-13 05:41:52 +00:00
Brian Carroll
fd79613f0d Wasm: load platform object file in tests and pass the bytes to the backend 2022-01-13 05:41:52 +00:00
Brian Carroll
5d5e0eca96 Wasm: Convert remaining sections to store bytes, and add .size() methods 2022-01-13 05:41:52 +00:00
Brian Carroll
56316da870 Wasm: skip linking step in tests 2022-01-13 05:41:52 +00:00
Brian Carroll
5a39002e8b Wasm: Serialize WasmModule without linking info 2022-01-13 05:41:52 +00:00
Brian Carroll
d88b86e884 Wasm: change TypeSection tests to unit tests rather than integration tests 2022-01-13 05:41:52 +00:00
Brian Carroll
5de9581b62 Wasm: pre-link app-independent code before running tests (builtins, plaform & libc) 2022-01-13 05:41:52 +00:00
Richard Feldman
d0e3c45986
Merge pull request #2328 from rtfeldman/wasm-module-refactor
Wasm module refactor
2022-01-12 11:28:12 -05:00
Richard Feldman
f83f50a9a7
Merge pull request #2337 from rtfeldman/i/2331
Use unsigned LLVM intrinsic arithmetic for unsigned integers
2022-01-12 08:29:30 -05:00
ayazhafiz
fefbb5312e Yet more quicksort bugs 2022-01-11 18:17:57 -05:00
Brian Carroll
92ec680a25 Fix clippy error on non-wasm test builds 2022-01-11 21:54:03 +00:00
Brian Carroll
54f2855349 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-module-refactor 2022-01-11 21:51:03 +00:00
Folkert de Vries
c16506fc8d
Merge pull request #2315 from rtfeldman/wasm-refcount-union
Wasm: refcount for tag unions
2022-01-11 22:33:52 +01:00
ayazhafiz
fe114e5e09 Improve test names 2022-01-10 23:42:15 -05:00
ayazhafiz
fba1c64c4b Fix another quicksort bug 2022-01-10 23:41:08 -05:00
ayazhafiz
2c41c43aea Implement saturated add/subtract 2022-01-10 22:37:08 -05:00
ayazhafiz
abe42781d5 Use unsigned LLVM intrinsic arithmetic for unsigned integers
Closes #2331
2022-01-10 19:20:51 -05:00
Brian Carroll
fc677e8d58 Wasm: add preloading logic for Types section 2022-01-10 10:26:43 +00:00
Brian Carroll
738434329e Wasm: refactor the model of the Linking section 2022-01-10 10:26:42 +00:00
Brian Carroll
8cf82ae1b3 Wasm: Delete old output files before compiling new ones 2022-01-10 10:26:42 +00:00
Brian Carroll
5560ecb63e Implement tail recursion for union refcounting procs 2022-01-06 22:43:02 +00:00
Brian Carroll
71a5013ed4 Add an HTML file for debugging wasm 2022-01-06 10:49:58 +00:00
Brian Carroll
8ebdc8ea7f Tests for linked list tail recursion in helper procs 2022-01-06 10:49:34 +00:00
Brian Carroll
bfec255501 More refcount tests 2022-01-06 10:49:34 +00:00
Brian Carroll
854106972c Nicer assertions in C test platform 2022-01-06 10:49:34 +00:00
Brian Carroll
d9cc3c5692 Modify refcount of contents *before* structure to prevent use-after-free 2022-01-06 10:49:34 +00:00
Brian Carroll
456bda0895 Prevent confusion between separate instances of RecursivePointer 2022-01-06 10:49:34 +00:00
Brian Carroll
5e642c880c Mask out union tag ID from pointer when calculating refcount address 2022-01-06 10:49:34 +00:00
Brian Carroll
94dea1df9f Add a refcount test for recursive unions 2022-01-05 12:24:04 +00:00
Brian Carroll
e0d0e1884d Check number of allocations in refcount tests 2022-01-05 12:24:04 +00:00
Brian Carroll
5d7b4018b7 Generate refcounting helper procedures for tag unions 2022-01-05 12:24:04 +00:00
Richard Feldman
54eb9ef669
Merge pull request #2307 from rtfeldman/make-tag-recursive-loop
Make tag recursive loop
2022-01-03 21:44:50 -05:00
Lucas
ef4bb5e124
Merge pull request #2287 from rtfeldman/str_to_num
WASM StrToNum
2022-01-03 19:28:18 -05:00
Joshua Warner
9b24a4ed9b Fix dev backend problem reporter 2022-01-02 09:41:41 -08:00
Joshua Warner
e1c0acb650 Fix region formatting test issues 2022-01-02 09:13:04 -08:00
Brian Carroll
a85fdda07a Fix misalignment bug in wasm tests (copy/paste error) 2022-01-02 12:38:41 +00:00
Brian Carroll
aec8d1bf3d Merge branch 'trunk' of github.com:rtfeldman/roc into str_to_num 2022-01-02 12:31:59 +00:00
Joshua Warner
82d2be0635 Introduce LineColumnRegion and force conversion 2022-01-01 18:20:05 -08:00
Brian Carroll
310de090a3 Wasm: Refcounting for struct fields 2022-01-01 11:32:53 +00:00