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
Brian Carroll
ff0c0766ad
Note on why refcount tests need result type
2021-12-31 23:53:51 +00:00
Brian Carroll
6fabeb345b
edit comment
2021-12-31 21:23:15 +00:00
Brian Carroll
4a6b79b686
Wasm tests: Skip linking step (and all filesystem access) when not needed
2021-12-31 21:23:15 +00:00
Brian Carroll
84661b7ae1
Rename BuildType -> TestType
2021-12-31 21:23:15 +00:00
Brian Carroll
01f293125a
Delete debug code that has been superseded
2021-12-31 21:23:15 +00:00
Brian Carroll
a2e58f8530
Split wasm test code into smaller well-named functions
2021-12-31 21:23:15 +00:00
Brian Carroll
d66d432716
Wasm tests: speed up 3x by only exporting refcount symbols when used
...
49s vs 2m10s
2021-12-31 21:23:15 +00:00
Folkert
2c97c840fc
walk the chain till we find a tag union to make recursive
2021-12-31 14:26:23 +01:00
Brian Carroll
f767014f30
Merge pull request #2301 from rtfeldman/wasm-refcount-list
...
Wasm refcounting for lists
2021-12-31 13:25:38 +00:00
ayazhafiz
f56754a539
Remove bad test
...
We shouldn't expect to generate code for tag destructures that are type
errors
2021-12-30 20:59:59 -06:00
Brian Carroll
101ac69de2
Disable refcounting test code when not in use
2021-12-30 20:00:25 +00:00
Folkert de Vries
aaa041cee5
Merge pull request #2295 from rtfeldman/wasm-refcount-tests
...
Create code gen tests for refcounting
2021-12-30 19:31:41 +01:00
Brian Carroll
c5663e3538
Generate IR helper proc for list refcounting
2021-12-30 17:15:31 +00:00
Brian Carroll
e612f51905
Tweak wasm test platform
2021-12-30 15:45:20 +00:00
Brian Carroll
eeb4b20390
Improve string refcounting tests
2021-12-30 09:09:07 +00:00
ayazhafiz
f52cca40b5
Dereference small (non recursive) tag unions before storing them elsewhere
...
Closes #2290
2021-12-29 17:55:21 -06:00
Brian Carroll
7aa3f77b3c
Handle freed values in refcount tests
2021-12-29 17:31:05 +00:00
Brian Carroll
4d2e4d454b
Create code gen tests for refcounting
2021-12-29 16:48:43 +00:00
rvcas
4298022a89
Merge branch 'trunk' into str_to_num
2021-12-27 19:11:55 -05:00
rvcas
cd42f034b5
feat(wasm): start StrToNum
2021-12-27 19:08:21 -05:00
Richard Feldman
554570a232
Merge pull request #2284 from rtfeldman/roc-std-result
...
add RocResult to roc_std rust crate
2021-12-27 17:43:22 -05:00
Folkert de Vries
249878cbd9
Merge pull request #2281 from rtfeldman/i/2149
...
(llvm) Generate code for tag unions less than 64 bits in size correctly
2021-12-27 22:38:08 +01:00
Folkert
007d777865
flesh out api for RocResult
2021-12-27 20:01:19 +01:00
Brian Carroll
409a32b192
Test for equality on very long linked lists
2021-12-27 18:08:43 +00:00
ayazhafiz
235d6a9e88
Fix gen_tags tests
2021-12-26 15:49:54 -06:00
Lucas
fe62e59e31
Merge pull request #2278 from rtfeldman/configure-zig-executable
...
use ROC_ZIG environment variable to configure which zig is used
2021-12-26 14:40:48 -05:00
Brian Carroll
44b4d2b3c9
Enable remaining gen_compare tests for wasm
2021-12-26 10:45:23 +00:00
Brian Carroll
e10acd59ee
Debug config for Wasm backend
2021-12-26 10:45:18 +00:00
Folkert
022b1ca83a
use ROC_ZIG environment variable to configure which zig is used
2021-12-25 22:27:52 +01:00
Folkert
d70e803dff
add test
2021-12-24 21:19:09 +01:00
Folkert de Vries
db44d03e66
Merge pull request #2259 from rtfeldman/i/2227-record-layout-hang
...
Turn invalid record field types into runtime errors
2021-12-23 20:17:34 +01:00
ayazhafiz
0a94f82bc6
Simplify expect_runtime_error_panic
2021-12-22 12:43:48 -06:00
ayazhafiz
ed64ff912a
Implement List.dropIf
...
This was referenced in the `List` documentation and in the
[tutorial](./TUTORIAL.md), but wasn't actually implemented prior to this
commit!
Part of #2227
2021-12-22 12:34:48 -06:00
ayazhafiz
3c2822224a
Update expected failure tests to use expect_runtime_error_panic
2021-12-22 09:23:50 -06:00
ayazhafiz
823e32961f
Add macro to expect runtime error panic through llvm backend, and a test
2021-12-22 09:17:54 -06:00
Brian Carroll
d33c1b54fd
Ensure unique names for helper procs
2021-12-22 09:28:20 +00:00
Brian Carroll
4a970f089a
Eq for empty list
2021-12-22 09:22:31 +00:00
Brian Carroll
e9ae8452b0
Equality tests passing for List I64
2021-12-22 08:42:39 +00:00
Brian Carroll
1c20075d7b
Change usage of Wasm if
instruction now that we don't support block results anymore
2021-12-21 23:14:55 +00:00