Folkert
fd209f90ff
fix bug where incorrect stack size is given
2022-03-30 17:25:28 +02:00
Folkert
c73c01aa34
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-30 14:07:17 +02:00
Folkert
53d426300e
add additonal tests
2022-03-26 12:46:31 +01:00
Folkert
311e464b70
add load_internal
2022-03-23 15:18:22 +01:00
Richard Feldman
381acbf734
Merge pull request #2765 from rtfeldman/simplify-stdlib-use
...
Simplify stdlib use
2022-03-22 20:14:38 -04:00
Brian Carroll
3c9d624a73
Merge pull request #2757 from rtfeldman/fix_shift_filling
...
Fix (flip) `Num.shiftRight*` builtins
2022-03-23 00:07:19 +00:00
Brian Carroll
faaa1ca8f9
test_gen: crazy conditional compilation options for right-shift tests!
2022-03-22 22:55:00 +00:00
Brian Carroll
24e6cd80e7
wasm: fix argument order for shiftRightBy & disable tests with 8-bit values
2022-03-22 22:28:18 +00:00
Folkert
d8fa2b8d92
stop passing stdlib (use lazy_static)
2022-03-22 19:53:02 +01:00
Folkert de Vries
5e9e7f3ad5
Merge pull request #2760 from rtfeldman/wasm-reset-reuse
...
Wasm reset & reuse
2022-03-21 23:02:28 +01:00
Brendan Hansknecht
42f49c1d79
also add test for overshifting to make sure we don't get bits from higher up in the type
2022-03-20 22:09:11 -07:00
Brendan Hansknecht
20ed4cbacb
cleanup test type sizes and add more cases for i8
2022-03-20 22:01:13 -07:00
Jan Van Bruggen
46fc305d56
Fix Num.shiftRight* tests
2022-03-20 21:39:39 -06:00
Jan Van Bruggen
9fb3549c24
Enable Num.shiftRight* tests
2022-03-20 21:39:39 -06:00
Brian Carroll
9b6b81a438
WIP
2022-03-20 11:17:34 +00:00
hafiz
3f07afe3b5
Merge pull request #2750 from rtfeldman/delay-instantiating-aliases-fix-limitations
...
Delay instantiating aliases fix limitations
2022-03-19 20:41:14 -04:00
Folkert
0b74fcd07b
add test of alias of alias with type variables but without lambda set
2022-03-18 20:10:49 +01:00
Folkert
6134e57921
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-18 18:13:55 +01:00
Brian Carroll
549b4be907
test_gen: change styling in wasm test debugger
2022-03-18 14:58:48 +00:00
Brian Carroll
21ee531e8c
wasm: Add Roc procedure names to Names section for debug
2022-03-18 14:46:53 +00:00
ayazhafiz
17029cff7e
Link aliased lambdas to the partial procs of the original symbol
...
This ensures that we use the correct specialized variable at the call
site of a function. In #2725 what happened was that a generalized
function was aliased, causing it to undergo generalization again. Then,
we lost the variable used to specialize at the call site. Instead, just
link to the partial proc being aliased directly.
There is an added benefit here, which is that we can avoid the
possibly-quadratic replacement of symbols in the generated statement.
Closes #2725
2022-03-14 16:42:53 -05:00
ayazhafiz
2d01c21b5c
Codegen tags that are polymorphic because of rigids
...
Closes #2724
2022-03-14 15:25:25 -05:00
ayazhafiz
530fa9943a
Generate unsigned div and modulo correctly
...
Closes #2705
2022-03-13 18:44:38 -05:00
Folkert
e3e9215578
Merge remote-tracking branch 'origin/trunk' into type-checking-storage-subs
2022-03-12 14:10:43 +01:00
Brendan Hansknecht
bc492fa22b
run cargo fmt
2022-03-11 19:29:34 -08:00
Folkert
e1d5b748b1
fix wasm/dev tests
2022-03-12 00:13:49 +01:00
Folkert
01b810266b
test cleanup
2022-03-11 22:15:36 +01:00
Brian Carroll
456d8ff9cb
Merge branch 'trunk' of github.com:rtfeldman/roc into list-str-capacity
2022-03-11 19:28:13 +00:00
Brian Carroll
ad5da76588
wasm: fix remaining tests for capacity
2022-03-11 19:20:57 +00:00
Brendan Hansknecht
d681062c63
add Num.toNat
2022-03-11 11:17:42 -08:00
Brian Carroll
38b8c45b23
wasm: fix Str decoding in tests
2022-03-11 19:07:18 +00:00
Brian Carroll
a9e0ff6b4b
wasm: update small string tests to expect 12 bytes
2022-03-11 08:34:27 +00:00
Brendan Hansknecht
cdf19e3feb
Merge pull request #2698 from rtfeldman/i/2696
...
Make sure casting to unsigned types performs zero-extension
2022-03-10 20:10:33 -08:00
hafiz
8679904fc3
Disable wasm test for now
2022-03-10 18:19:27 -06:00
ayazhafiz
a90bba3d1d
Make sure casting to unsigned types performs zero-extension
...
Closes #2696
2022-03-10 17:39:37 -06:00
Folkert
e90c12ba1f
Merge remote-tracking branch 'origin/trunk' into box-all-the-things
2022-03-10 18:01:09 +01:00
Folkert
98b2ed5d60
add test
2022-03-09 23:07:24 +01:00
Folkert
07063a8e18
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-09 14:36:34 +01:00
Folkert
6543c9bbc6
Merge remote-tracking branch 'origin/trunk' into box-all-the-things
2022-03-09 00:00:15 +01:00
Folkert
be28ee2a64
add test
2022-03-08 22:21:37 +01:00
Brian Carroll
7e0b439ef5
test_gen: add missing #[test] attribute
2022-03-08 08:57:52 +00:00
Brian Carroll
4d14fbf562
wasm: use a debug-friendly enum for refcount tests
2022-03-08 07:43:01 +00:00
Brian Carroll
eaf76aa879
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error
2022-03-07 20:02:44 +00:00
Brian Carroll
92ace8ff67
Merge pull request #2626 from rtfeldman/gen-dev/quicksort2
...
Gen dev - Quicksort
2022-03-07 17:46:46 +00:00
ayazhafiz
3bff99b0a2
Register accessor closures when they are bound
...
Previously we only registered record accessor closures in anonymous
contexts, where we assume they must already be specialized based on the
surrounding contexts. This is not true in general since one might bind
an accessor to a name.
Closes #2567
2022-03-06 10:53:12 -05:00
Brian Carroll
770155312c
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error
2022-03-04 21:22:08 +00:00
Brian Carroll
338961d202
wasm: go back to custom bytes->string transformation
...
CStr version is too hard to get working correctly. I get weird test failures
with random characters in the middle of strings.
2022-03-04 19:52:27 +00:00
Brian Carroll
20e46fbda4
wasm: address PR feedback
2022-03-04 19:12:18 +00:00
Brian Carroll
a7899bdded
wasm: enable another roc_panic test
2022-03-02 08:15:36 +00:00
Brian Carroll
561a1d16ff
wasm: add expect_runtime_error_panic test macro
2022-03-02 08:05:48 +00:00