Commit graph

7974 commits

Author SHA1 Message Date
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
615aaa9a77
remove unused number min/max functions 2022-03-22 23:12:50 +01:00
Folkert
d82d1ac2ce
temporary get_project_root to import builtins 2022-03-22 22:45:39 +01:00
Folkert
5ec2c4f1df
make IdentStr len() const 2022-03-22 22:45:19 +01:00
Folkert
7b221d6115
Merge branch 'simplify-identids' into builtins-in-roc 2022-03-22 22:25:55 +01:00
Folkert
30aa242075
flip insert and check 2022-03-22 22:22:24 +01:00
Folkert
a67bb29a36
remove hashmap 2022-03-22 21:58:49 +01:00
Folkert
b4d677ae5f
Merge branch 'simplify-stdlib-use' into builtins-in-roc 2022-03-22 20:13:12 +01:00
Folkert
d8fa2b8d92
stop passing stdlib (use lazy_static) 2022-03-22 19:53:02 +01:00
Folkert
f25afe4629
skip registering of debug symbols in hot loop 2022-03-22 18:51:56 +01:00
Folkert
0b4531425d
skip constraining for cached modules 2022-03-22 18:39:50 +01:00
Folkert
7b86a4b29e
optimize variable substitution in instantiate_rigids 2022-03-21 23:57:40 +01:00
Folkert
7029717cd0
fix missing import 2022-03-21 23:46:25 +01:00
Folkert
5f19410de6
Merge branch 'simplify-unused-defs' into builtins-in-roc 2022-03-21 23:45:09 +01:00
Folkert
725eb217d8
more vecs, less sets 2022-03-21 23:20:57 +01:00
Folkert
14b53c0ccf
simplify local_successors 2022-03-21 23:16:07 +01:00
Folkert
cee1a787c9
and remove everything because it has no effect 2022-03-21 23:07:27 +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
Folkert
1b1a7b0385
more cleaned up 2022-03-21 22:54:24 +01:00
Folkert
a170f461e0
cleanup 2022-03-21 22:44:14 +01:00
Folkert
cc9873eb6d
exploration 2022-03-21 22:41:32 +01:00
Folkert
dc3841ec10
cleanup 2022-03-21 21:13:18 +01:00
Folkert
95b206ea15
use mmap 2022-03-21 21:02:27 +01:00
Folkert
dfa5710932
optimize variable substitution in instantiate_rigids 2022-03-21 20:18:18 +01:00
Folkert
4c37b6f5fb
properly serialize tag names 2022-03-21 19:45:53 +01:00
Folkert
ba5244693a
properly serialize tag names 2022-03-21 19:45:21 +01:00
Folkert
a9982a30aa
WIP 2022-03-21 19:23:13 +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
Jan Van Bruggen
7d95d2b576 Fix shift filling by flipping inkwell sign_extend flags
See https://thedan64.github.io/inkwell/inkwell/builder/struct.Builder.html#method.build_right_shift

Before:
```
» Num.shiftRightBy 1 -8

9223372036854775804 : Int *

» Num.shiftRightZfBy 1 -8

-4 : Int *
```

After:
```
» Num.shiftRightBy 1 -8

-4 : Int *

» Num.shiftRightZfBy 1 -8

9223372036854775804 : Int *
```
2022-03-20 21:39:39 -06:00
Richard Feldman
68adeba43c
Merge pull request #2758 from rtfeldman/intern-tag-names
handle common tag names in type -> subs conversion
2022-03-20 20:39:46 -04:00
Richard Feldman
68e5b1a3ec
Merge pull request #2759 from rtfeldman/serialize-subs
Serialize subs
2022-03-20 20:36:43 -04:00
Brian Carroll
d479d1efb9 Formatting 2022-03-20 23:31:38 +00:00
Brian Carroll
1f82310832 wasm: Add support for Expr::Reuse 2022-03-20 23:01:54 +00:00
Brian Carroll
5de539b9fa mono: Generate IR for refcount reset procedures 2022-03-20 22:48:23 +00:00
Folkert
e36b1e2208
Merge branch 'serialize-subs' into builtins-in-roc 2022-03-20 21:46:57 +01:00
Folkert
7062a71216
clippy 2022-03-20 21:42:04 +01:00
Folkert
832681269e
add serialization test code 2022-03-20 21:32:59 +01:00
Folkert
715d58cf83
serialize field names properly 2022-03-20 21:30:09 +01:00
Folkert
b6f7f77aae
Revert "inline subs operations more aggressively"
This reverts commit f4cb2ec254.

it'll be merged by a different PR
2022-03-20 20:12:20 +01:00
Folkert
c7656955f8
add Subs (de)serialization 2022-03-20 20:03:02 +01:00
Folkert
5a4db4b4ad
inline subs operations more aggressively 2022-03-20 15:31:35 +01:00
Folkert
02944bd2f6
simplify logic (iterators are complicated for the rust compiler in debug mode) 2022-03-20 15:31:09 +01:00
Folkert
38c2710fc5
intern common tag names 2022-03-20 15:30:47 +01:00
Folkert
2516ccf70d
inline subs operations more aggressively 2022-03-20 13:08:20 +01:00
Folkert
6a9b08ed11
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-03-20 13:01:00 +01:00