Commit graph

5373 commits

Author SHA1 Message Date
Brian Carroll
0d1946a782 Don't generate a DataSection unless we actually need it! 2021-11-04 20:50:32 +00:00
Brian Carroll
c798c9d444 Implement long string literals 2021-11-04 20:44:29 +00:00
Brian Carroll
414c9e6f86 Move WasmModule initialisation into WasmBackend
It helps to coordinate different sections with related values,
based on knowledge of Roc rather than Wasm.
2021-11-04 20:41:23 +00:00
Brian Carroll
1b91fd9533 Get rid of some overcomplicated Data section stuff
Currently a Wasm module can only have one memory
The Data Segment spec allows for more in future
But the format is confusing enough already without that!
Let's just get rid of that complexity, we don't need it.
2021-11-04 19:44:10 +00:00
Brian Carroll
c57d99c1ac Create types for DataSection 2021-11-04 18:58:17 +00:00
Brian Carroll
21988b5fd6 More rigorous test of zeroing-out small string 2021-11-04 17:31:14 +00:00
Brian Carroll
46c19b59d4 Add support for small string literals 2021-11-04 14:29:46 +00:00
Brian Carroll
2f430fce86 Refactor literals 2021-11-04 13:40:34 +00:00
Brian Carroll
9111f3cf6c Add wasm_str tests 2021-11-04 08:08:45 +00:00
Brian Carroll
0166bb1bbd Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_more_num_tests 2021-11-04 07:55:19 +00:00
Brian Carroll
d36ac73d46 Enable some more wasm_num tests that are working 2021-11-04 07:53:47 +00:00
Luiz Carlos L. G. de Oliveira
cf1d365170
Merge branch 'trunk' into Change--arch-flag-to--A-when-calling-ld 2021-11-03 22:04:51 -03:00
Richard Feldman
697134cc8c
Merge pull request #1882 from rtfeldman/partialproc-by-reference
Partialproc optimizations
2021-11-03 19:12:55 -04:00
Folkert de Vries
ff485a4dcd
Merge branch 'trunk' into wasm_module_builder 2021-11-03 15:48:49 +01:00
Folkert
98d13f944d Merge remote-tracking branch 'origin/trunk' into partialproc-by-reference 2021-11-03 15:33:26 +01:00
Folkert
c5005d3dd1 Merge remote-tracking branch 'origin/trunk' into partialproc-by-reference 2021-11-03 15:32:39 +01:00
Folkert
353ad04229 simplify noncapturing closure IR gen 2021-11-03 15:18:11 +01:00
Shritesh Bhattarai
ec8c4665ab
Merge branch 'trunk' into shritesh/hello-swift 2021-11-03 09:46:56 -04:00
Folkert
bc71cf53d6 simplify capturing closure IR gen 2021-11-03 14:26:14 +01:00
Brian Carroll
2070555697
Merge branch 'trunk' into wasm_module_builder 2021-11-03 13:18:00 +00:00
Folkert
a15183a7d1 refactor 2021-11-03 14:09:04 +01:00
Folkert
74df66a472 make new PartialProcs struct 2021-11-03 13:59:00 +01:00
Luiz Carlos L. G. de Oliveira
7cdf8a9d70
Merge branch 'trunk' into Change--arch-flag-to--A-when-calling-ld 2021-11-03 09:25:36 -03:00
Luiz Carlos L. G. de Oliveira
07246c8c6e
Change linking for linux to correctly specify architecture
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
2021-11-03 09:16:07 -03:00
Brian Carroll
7fdd6cf952 rust-fmt 2021-11-03 11:59:49 +00:00
Brian Carroll
b432d923b1 Create a linking module 2021-11-03 11:46:46 +00:00
Richard Feldman
0378affa80
Merge pull request #1878 from rtfeldman/remove-unused-parser-newline-functions
Remove unused spaces_till_end_of_line / chomp_line_comment functions
2021-11-03 07:36:50 -04:00
Brian Carroll
e10b7d1f2c Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_module_builder 2021-11-03 11:32:45 +00:00
Brian Carroll
d87db20478 clippy 2021-11-03 11:31:12 +00:00
Brian Carroll
ad9b761fce Move wasm file format code into a submodule 2021-11-03 11:20:16 +00:00
Folkert de Vries
416a143a7d
Merge branch 'trunk' into shritesh/hello-swift 2021-11-03 12:12:42 +01:00
Brian Carroll
7fa6436ee6 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_module_builder 2021-11-03 10:36:34 +00:00
Brian Carroll
87f6246851 Remove parity-wasm! 2021-11-03 10:36:08 +00:00
Brian Carroll
59757d638a Migrate the last sections: Type and Function 2021-11-03 10:24:03 +00:00
Anton-4
824373dfb8
Merge branch 'trunk' into deps 2021-11-03 10:50:50 +01:00
Anton-4
a3fc724df3 removed unused maplit 2021-11-03 10:50:25 +01:00
Joshua Warner
6a30e422da Remove unused spaces_till_end_of_line / chomp_line_comment functions from the parser 2021-11-02 20:28:16 -07:00
Shritesh Bhattarai
e3a0dfe264 Separate ld_command and ld_child 2021-11-02 21:13:37 -04:00
Shritesh Bhattarai
ec78b9eade Move sdk_path back up 2021-11-02 21:10:50 -04:00
Shritesh Bhattarai
6c6d64506b Revert comment layout oops 2021-11-02 20:56:40 -04:00
Shritesh Bhattarai
8b2d3dbe44 Swiftc -O support 2021-11-02 20:33:04 -04:00
Shritesh Bhattarai
66e9a7f82e No need to allocate a vec 2021-11-02 20:28:10 -04:00
Shritesh Bhattarai
6590d4fe41 big_sur_fix -> sdk_path 2021-11-02 20:28:10 -04:00
Shritesh Bhattarai
bc63536938 A lot of todos but big RocStr works 2021-11-02 20:28:10 -04:00
Richard Feldman
16e80cd5aa
Merge pull request #1845 from rtfeldman/shritesh/aarch64-tests
Add aarch64-target in roc_cli and rebuild_host
2021-11-02 20:10:02 -04:00
Richard Feldman
e7c9a5211f Drop file that was accidentally restored in rebase 2021-11-02 19:39:11 -04:00
Richard Feldman
ac42470c81 Drop unused libc deps 2021-11-02 19:37:38 -04:00
Richard Feldman
0bc3ff4ca5 Use std and core over libc where equivalent 2021-11-02 19:37:05 -04:00
Richard Feldman
bb49593c2e Move test_mono deps into dev deps 2021-11-02 19:37:05 -04:00
Richard Feldman
abe0da2eb0 Drop some unused deps 2021-11-02 19:37:05 -04:00