Commit graph

6044 commits

Author SHA1 Message Date
Brian Carroll
a25101b378 Remove unusable variants from Align enum
I discovered today that Wasmer throws an error if you use
"higher than natural" alignment in a store instruction.
So let's take them out of the enum.
2021-12-08 21:55:14 +00:00
Brian Carroll
8a1a164544 Prevent >8 bit alignment specifier in Wasm store instruction, which is not allowed 2021-12-08 21:42:48 +00:00
Brian Carroll
760f4c0ed4 Add an optional Wasm debug feature - hex memory dump 2021-12-08 21:28:59 +00:00
Brian Carroll
1ba654c5b2 Change round_up_to_alignment to a macro to work on more Rust types 2021-12-08 21:11:10 +00:00
Brian Carroll
6a801ebc7e gen_wasm: add support for non-recursive Tags 2021-12-08 20:45:49 +00:00
Brian Carroll
f6b6d91c56 More accurate comment for EmptyArray 2021-12-08 20:30:26 +00:00
Brian Carroll
73c9c7089a Fix gen_wasm Let statement for heap-allocating expressions
When we allocate on the heap we'll need to force LocalId storage.
In that case we don't want CodeBuilder to track the Symbol,
even though it has WasmLayout::Primitive.
So basically it was always the wrong condition to check, but we
got away with it when we had no heap allocations.
2021-12-08 20:30:26 +00:00
Brian Carroll
0220f7d921 Remove an assumption of 64-bit pointer alignment 2021-12-08 20:30:26 +00:00
Brian Carroll
2f4225eec6 Add more doc comments to UnionLayout enum 2021-12-08 20:30:26 +00:00
Brendan Hansknecht
b8a287d1ba Merge remote-tracking branch 'origin/trunk' into refcount-gen-dev 2021-12-08 11:22:36 -08:00
Brendan Hansknecht
5f9ae24d14 remove unused comments 2021-12-08 11:19:17 -08:00
Brian Carroll
5c8f3fa26f Generate refcount procedure names from the correct layout ID 2021-12-08 17:33:08 +00:00
Brendan Hansknecht
c7e7186be0 generate rc proc names when building the procedure to fix borrowing issue 2021-12-07 17:39:22 -08:00
Brendan Hansknecht
845a5ca731 clippy fix 2021-12-07 16:58:56 -08:00
Brendan Hansknecht
8c6e5360cd Remove Cell around interns 2021-12-07 16:54:06 -08:00
Folkert de Vries
f8fad7f4f4
Merge branch 'trunk' into clippy-1.57 2021-12-06 10:31:41 +01:00
Folkert
873ccc5d96 remove incorrect space 2021-12-06 09:45:11 +01:00
Folkert de Vries
8459339230
Merge branch 'trunk' into joshuawarner32/keep-trailing-comments 2021-12-06 09:19:13 +01:00
Joshua Warner
f3ed335a6c Remove unused import 2021-12-05 12:59:15 -08:00
Joshua Warner
e6eb9138f7 Improve TypedIdent spacing in formatting 2021-12-05 12:58:48 -08:00
Joshua Warner
f3dd9e411f Keep trailing comments at the end of a file 2021-12-05 12:19:58 -08:00
Folkert
f06565d248 format 2021-12-05 16:30:52 +01:00
Folkert
c6b06005cc mut not needed 2021-12-05 15:40:11 +01:00
Folkert
28b4388488 remove unneeded field 2021-12-05 15:25:46 +01:00
Folkert
d7045b037f use param_map instead of localcontext 2021-12-05 15:21:25 +01:00
Folkert
4957b84eae remove unused struct in unify 2021-12-05 15:19:39 +01:00
Folkert
0052ccda38 cleanup in file.rs 2021-12-05 15:19:02 +01:00
Folkert
bb73ac94eb remove unused struct type 2021-12-05 15:18:00 +01:00
Folkert
bb853a1a64 remove unused fields from State 2021-12-05 15:16:48 +01:00
Folkert
21ff434fe3 use unused values 2021-12-05 15:13:41 +01:00
Folkert
e0468363fb remove headers_parsed 2021-12-05 15:13:32 +01:00
Folkert
4af9539ce6 fixes by cargo clippy --fix 2021-12-05 15:04:28 +01:00
Joshua Warner
e3f2f8d9a4 keep indent state in fmt Buf 2021-12-04 18:26:32 -08:00
Brendan Hansknecht
a7725a81d5 Fix string argument loading and refcount functions 2021-12-04 14:46:02 -08:00
Brendan Hansknecht
6205816db4 Get refcounting working 2021-12-04 10:43:45 -08:00
Brendan Hansknecht
c11484e968 add Num.Gte 2021-12-04 10:00:22 -08:00
Brendan Hansknecht
5cb682140d ignore empty struct loading 2021-12-04 09:59:56 -08:00
Brian Carroll
1fccd5bede Suppress Clippy error 2021-12-04 10:04:19 +00:00
Richard Feldman
e872d00b13
Merge pull request #2128 from rtfeldman/joshuawarner32/check-format-stable
Check that formatting is stable/idempotent
2021-12-03 22:53:30 -05:00
Joshua Warner
4bbe1d308a rename expect_format_helper and add comment 2021-12-03 19:32:44 -08:00
Joshua Warner
5d3d4467c1 Fix indentation & stability in with formatting 2021-12-03 13:33:25 -08:00
Folkert
eaefb56994 make some helper functions non-mut 2021-12-03 21:50:39 +01:00
Folkert
3291cc680e use Cell, remove threading of identids 2021-12-03 21:50:26 +01:00
Folkert
47840a4e65 use env through backend, preventing a double borrow 2021-12-03 20:49:51 +01:00
Folkert
edf113513c add helper methods for layout -> string conversion in dev backend 2021-12-03 20:49:09 +01:00
Anton-4
e50fb25b38 forgot about Aarch64 2021-12-03 20:03:45 +01:00
Anton-4
4427779c7a set zig builtins target for compatibility 2021-12-03 19:57:19 +01:00
Joshua Warner
270cc49867 Also check formatting is stable in tests; ignore a test that's invalid / incorrect 2021-12-02 17:46:50 -08:00
Brian Carroll
e088eceb29 Generate refcounting procs in gen_dev 2021-12-02 15:41:09 +00:00
Brian Carroll
d0ef1e5b36 Route IdentIds to refcount proc generator in dev backend 2021-12-02 09:58:34 +00:00