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
Brian Carroll
a99db445e4
Disable broken tests
2021-12-21 18:36:30 +00:00
Folkert de Vries
2f1c648602
Merge pull request #2253 from rtfeldman/wasm-no-block-results
...
Wasm: fix nested conditionals
2021-12-21 16:35:22 +01:00
Folkert de Vries
18187bc43f
Merge pull request #2245 from rtfeldman/wasm-tag-eq
...
Wasm tag equality
2021-12-21 16:24:14 +01:00
Brian Carroll
2a141b3586
Automatically clean up any unused values at the end of a block
2021-12-21 13:16:15 +00:00
Brian Carroll
17dc6668ec
Make all Wasm blocks NoResult and always put return value in a local var.
2021-12-21 13:16:15 +00:00
rvcas
e269fc4345
test(wasm): more wasm_str tests
2021-12-20 17:48:34 -05:00
Brian Carroll
9b833720d4
Further refactor and debug ==
in Wasm
2021-12-20 08:39:16 +00:00
Brian Carroll
c510226c15
Reorganise Wasm lowlevels to get pointer equality working correctly
2021-12-19 21:20:06 +00:00
Brian Carroll
0bdf76f81a
Merge pull request #2234 from rtfeldman/str-split-empty-delimiter
...
Add empty-delimiter handling for `Str.split`
2021-12-19 12:43:01 +00:00
Brian Carroll
a1d883600c
Equality operator for records
2021-12-18 17:25:00 +00:00
Jan Van Bruggen
96724e73aa
Add empty-delimiter handling for Str.split
2021-12-18 00:53:17 -07:00
Brian Carroll
d32d1e8e61
enable more Str equality tests for wasm
2021-12-17 23:47:28 +00:00
rvcas
14e66de0b7
tests(wasm): assert_concat_work needs a feature flag too
2021-12-17 12:52:55 -05:00
rvcas
a18c3e2c3a
tests(wasm): fix tests
2021-12-17 12:44:11 -05:00
rvcas
edd3c8c4c1
tests(wasm): List.isEmpty already works now
2021-12-17 12:05:17 -05:00
rvcas
b9bd75d643
Merge branch 'trunk' into wasm_arrays
2021-12-17 11:54:23 -05:00
rvcas
660c3dc111
tests(wasm): prep tests for CI
2021-12-17 11:47:58 -05:00
rvcas
40da207859
feat(wasm): LowLevel::ListLen
2021-12-16 21:50:12 -05:00