Commit graph

6629 commits

Author SHA1 Message Date
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
Brian Carroll
51119c8142 Emit less code for ensure_value_has_local 2021-12-21 13:16:15 +00:00
rvcas
e269fc4345 test(wasm): more wasm_str tests 2021-12-20 17:48:34 -05:00
rvcas
c6eaf3abd3 feat(wasm): enable more Str LowLevels 2021-12-20 17:47:39 -05:00
Richard Feldman
3ffe5768e1
Merge pull request #2239 from rtfeldman/joshuawarner32/pipeline-format-fail
Fix formatting of pipelined call exprs
2021-12-20 15:46:23 -05:00
Richard Feldman
5aa67d4244
Merge pull request #2231 from rtfeldman/joshuawarner32/record_func_type_decl
Allow function types in records
2021-12-20 11:45:27 -05:00
Brian Carroll
6480a720ae Move symbol_layouts to storage.rs 2021-12-20 16:06:39 +00:00
Richard Feldman
4a900b3097
Merge pull request #2238 from rtfeldman/joshuawarner32/refactor-BadOperator
Refactor BadOperator to take a &str rather than &[u8]
2021-12-20 10:16:27 -05:00
Richard Feldman
f32b208ba9
Merge pull request #2240 from rtfeldman/joshuawarner32/trailing-spaces
Remove trailing whitespace from the output of the formatter
2021-12-20 10:14:10 -05:00
Brian Carroll
3b2aa0bf6a Fix bugs with symbol layouts in Wasm 2021-12-20 09:53:24 +00:00
Brian Carroll
9b833720d4 Further refactor and debug == in Wasm 2021-12-20 08:39:16 +00:00
Brian Carroll
f59e0e249b Use native instructions for NotEq in Wasm 2021-12-19 21:20:06 +00:00
Brian Carroll
e0ffaca3df Refactor Wasm equality operator 2021-12-19 21:20:06 +00:00
Brian Carroll
c510226c15 Reorganise Wasm lowlevels to get pointer equality working correctly 2021-12-19 21:20:06 +00:00
Brian Carroll
ece28f1975 Fix loading code for Zig calling convention 2021-12-19 21:20:06 +00:00
Brian Carroll
635c9757dd Implement Eq for tags in CodeGenHelp 2021-12-19 21:20:01 +00:00
Brian Carroll
3041b6fa1c
Merge pull request #2242 from rtfeldman/lowlevel-ptr-cast
Lowlevel ptr cast
2021-12-19 16:45:12 +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
570044f88a Check pointer equality for Eq on Structs 2021-12-19 09:06:06 +00:00
Brian Carroll
e847c924dd Lowlevels: replace RefCountGetPtr with the more general GetPtrAsInt. 2021-12-19 08:29:17 +00:00
Joshua Warner
48c207bb06 Remove trailing whitespace from the output of the formatter 2021-12-18 17:14:14 -08:00
Joshua Warner
61cdbd1531 Fix formatting of pipelined call exprs 2021-12-18 16:36:51 -08:00
Lucas
6685321df0
Merge pull request #2235 from rtfeldman/fix-maxDec-minDec-docs
Fix typos in docs for `Num.maxDec` & `Num.minDec`
2021-12-18 19:33:48 -05:00
Joshua Warner
96e8916594 Refactor BadOperator to take a &str rather than &[u8] 2021-12-18 14:42:48 -08:00
Joshua Warner
efa54287f1 Return the original error if there's an unexpected trailing comma 2021-12-18 13:26:59 -08:00
Folkert de Vries
39979702f4
Merge pull request #2237 from rtfeldman/wasm-record-equality
Wasm record equality
2021-12-18 22:25:11 +01:00
Brian Carroll
a1d883600c Equality operator for records 2021-12-18 17:25:00 +00:00
Jan Van Bruggen
8cc5abd219 Fix typos in docs for Num.maxDec & Num.minDec 2021-12-18 01:21:20 -07:00
Jan Van Bruggen
96724e73aa Add empty-delimiter handling for Str.split 2021-12-18 00:53:17 -07:00
Jan Van Bruggen
12818f9b9d
Merge pull request #2223 from rtfeldman/alphabetize-builtins-docs-exposures
Alphabetize compiler/builtins/docs/ exposures
2021-12-18 07:32:08 +00:00
Brian Carroll
55f5956175 Add comments to group code together 2021-12-18 00:23:31 +00:00
Brian Carroll
71bb756d20 Move related code closer together 2021-12-18 00:12:19 +00:00
Brian Carroll
2d887b297f Fill out match expressions in generate_procs 2021-12-18 00:11:18 +00:00
Brian Carroll
d32d1e8e61 enable more Str equality tests for wasm 2021-12-17 23:47:28 +00:00
Joshua Warner
7b9c8ed939 Allow function types in records 2021-12-17 15:09:15 -08:00
Joshua Warner
5e7e77dbb1 Add a couple failing parser tests 2021-12-17 15:09:15 -08:00
Joshua Warner
5a236899fa Add some optional debug tracing to the parser 2021-12-17 15:09:15 -08:00
Joshua Warner
bb5b9677a3 Allow specifying failing parse tests 2021-12-17 15:09:15 -08:00
Brian Carroll
c7b826e3d4
Merge pull request #2219 from rtfeldman/faster-str-eq
Faster Str equality
2021-12-17 21:02:20 +00:00
Brian Carroll
228033cdae
Merge pull request #2180 from rtfeldman/wasm_arrays
WASM Arrays & LowLevel::ListLen
2021-12-17 20:19:05 +00:00
Richard Feldman
cb4a74ac46
Merge pull request #2233 from rtfeldman/joshuawarner32/encapsulate-state
Encapsulate the `bytes` field of State in the parser
2021-12-17 14:42:06 -05: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
787900d291 fix(wasm): ListLen does not need to match ret_layout 2021-12-17 11:38:09 -05:00
rvcas
bc94683100 feat(wasm): copy value to memory 2021-12-17 11:37:40 -05:00
Brian Carroll
77d73f35eb Merge branch 'trunk' of github.com:rtfeldman/roc into faster-str-eq 2021-12-17 13:47:25 +00:00