Commit Graph

9046 Commits

Author SHA1 Message Date
Alex Crichton
fe4b15c8b0 Checkout submodules in cargo audit CI (#3463)
This should help address the failure that happened last night.

https://github.com/bytecodealliance/wasmtime/actions/runs/1361422923
2021-10-20 10:45:53 -05:00
Alex Crichton
e8d3b8e3ea Fix an off-by-two condition in heap legalization (#3462)
This commit fixes an issue in Cranelift where legalization of
`heap_addr` instructions (used by wasm to represent heap accesses) could
be off-by-two where loads that should be valid were actually treated as
invalid. The bug here happened in an optimization where tests against
odd constants were being altered to tests against even constants by
subtracting one from the limit instead of adding one to the limit. The
comment around this area has been updated in accordance with a little
more math-stuff as well to help future readers.
2021-10-19 13:19:20 -05:00
Alex Crichton
b553d84362 Change how security advisories work on CI (#3461)
Before this commit we actually have two builders checking for security
advisories on CI, one is `cargo audit` and one is `cargo deny`. The
`cargo deny` builder is slightly different in that it checks a few other
things about our dependency tree such as licenses, duplicates, etc. This
commit removes the advisory check from `cargo deny` on CI and then moves
the `cargo audit` check to a separate workflow.

The `cargo audit` check will now run nightly and will open an issue on
the Wasmtime repository when an advisory is found. This should help make
it such that our CI is never broken by the publication of an advisory
but we're still promptly notified whenever an advisory is made. I've
updated the release process notes to indicate that the open issues
should be double-checked to ensure that there are no open advisories
that we need to take care of.
2021-10-19 10:12:36 -05:00
Chris Fallin
13feef7bb8 Merge pull request #3459 from bytecodealliance/fitzgen-patch-1
Add ISLE item for next cranelift meeting
2021-10-18 10:57:40 -07:00
Nick Fitzgerald
707c9018ca Add ISLE item for next cranelift meeting 2021-10-18 10:47:03 -07:00
Alex Crichton
a52bc0f9ed Add 2021-10-18 Cranelift meeting notes (#3458)
* Add 2021-10-18 Cranelift meeting notes

* Update cranelift-10-18.md
2021-10-18 12:16:12 -05:00
Chris Fallin
3ba9e5865a Merge pull request #3455 from bytecodealliance/fitzgen-patch-1
Add an update on ISLE integration to the next cranelift meeting
2021-10-15 13:49:40 -07:00
Nick Fitzgerald
e80e34b76e Add an update on ISLE integration to the next cranelift meeting 2021-10-15 13:48:09 -07:00
Alex Crichton
1a5fa3ed3f Enable stable wasm features for spectest fuzzing (#3454)
These are now required for the general suite of spec tests we're running
by default.
2021-10-15 10:40:42 -05:00
Nathan Froyd
35cdd53989 fix typo in stability-platform-support.md 2021-10-14 12:19:29 -04:00
Chris Fallin
d5a02e86e4 Merge pull request #3453 from cfallin/wasmtime-mtg-20211028
Wasmtime meetings: move Wasm EH to Oct 28; note no agenda for Oct 14 meeting minutes.
2021-10-14 09:08:56 -07:00
Chris Fallin
892eefcf09 Wasmtime meetings: move Wasm EH to Oct 28; note no agenda for Oct 14 meeting minutes. 2021-10-14 09:07:40 -07:00
Alex Crichton
9c6884e28d Update the spec reference testsuite submodule (#3450)
* Update the spec reference testsuite submodule

This commit brings in recent updates to the spec test suite. Most of the
changes here were already fixed in `wasmparser` with some tweaks to
esoteric modules, but Wasmtime also gets a bug fix where where import
matching for the size of tables/memories is based on the current runtime
size of the table/memory rather than the original type of the
table/memory. This means that during type matching the actual value is
consulted for its size rather than using the minimum size listed in its
type.

* Fix now-missing directories in build script
2021-10-13 16:14:12 -05:00
Chris Fallin
14cde24377 Merge pull request #3447 from bjorn3/remove_unused_inst_flags
Remove various unused things from the meta crate
2021-10-13 11:31:31 -07:00
Shinobu Hayashi
59a9bd6285 Chore fix typo in docs/contributing-architecture.md (#3449) 2021-10-13 09:56:56 -05:00
Pat Hickey
6a970d096e Merge pull request #3446 from bjorn3/remove_old_insts
Remove many unused instructions
2021-10-13 07:46:44 -07:00
Alex Crichton
f7543d3d10 Update docs of Module::serialize (#3448)
The docs hadn't been updated since `Module::deserialize` was added!
2021-10-12 09:47:12 -05:00
bjorn3
b2d9faa472 Slightly simplify build script 2021-10-12 15:12:26 +02:00
bjorn3
b0b8c1edbf Remove default_map 2021-10-12 15:12:26 +02:00
bjorn3
6b32fcfcea Remove Constraint 2021-10-12 15:12:26 +02:00
bjorn3
466a446f8c Remove OpcodeNumber 2021-10-12 15:12:26 +02:00
bjorn3
99114547be Remove clobbers_all_regs 2021-10-12 15:12:26 +02:00
bjorn3
e8b18b58a1 Remove is_ghost 2021-10-12 15:12:26 +02:00
bjorn3
a05bf2bf42 Remove instructions necessary for the old regalloc 2021-10-12 14:37:36 +02:00
bjorn3
1fd491dadd Remove fallthrough instruction 2021-10-12 14:22:07 +02:00
bjorn3
5b24e117ee Remove instructions used by old br_table legalization 2021-10-12 14:18:52 +02:00
Chris Fallin
783bb1f759 Merge pull request #3443 from adv-sw/main
Fixes (indirectly) #3419 by providing debugger with ability to resolve sandbox pointers
2021-10-11 13:37:04 -07:00
Chris Fallin
5c2a629871 Merge pull request #2455 from Hywan/feat-cranelift-codegen-re-export-gimli
feat(cranelift-codegen) Re-export `gimli` when `unwind` feature is enabled
2021-10-11 13:09:16 -07:00
Steve
4975bf8b62 Merge branch 'main' of https://github.com/adv-sw/wasmtime 2021-10-11 19:58:18 +01:00
Steve
807619a874 as requested: cargo fmt 2021-10-11 19:57:07 +01:00
Pat Hickey
8554d69e4b update userfaultfd to 0.4.1 (#3442)
which updates nix to 0.23.0, getting rid of the benign RUSTSEC-2021-0119
in our dep tree
2021-10-11 13:06:54 -05:00
Alex Crichton
713ce07d35 Add some debug logging for timing in module compiles (#3417)
* Add some debug logging for timing in module compiles

This is sometimes helpful when debugging slow compiles from fuzz bugs or
similar.

* Fix total duration calculation to not double-count
2021-10-11 12:50:15 -05:00
Advance Software
8194c3a2a1 Merge branch 'bytecodealliance:main' into main 2021-10-11 18:47:02 +01:00
Pat Hickey
3d8253beb5 Merge pull request #3433 from bjorn3/stackslot_remove_dead_code
Remove a lot of dead code from the stackslot module
2021-10-11 10:34:22 -07:00
Chris Fallin
ee60a361e9 Merge pull request #3440 from cfallin/wasmtime-meeting-20211014
Add Wasm EH discussion (#3427) to Wasmtime meeting agenda for 2021-10-14.
2021-10-11 09:54:23 -07:00
Chris Fallin
92eb210ff7 Add Wasm EH discussion (#3427) to Wasmtime meeting agenda for 2021-10-14. 2021-10-11 09:52:08 -07:00
bjorn3
3f87b768d5 Update filetests 2021-10-11 17:44:21 +02:00
bjorn3
a894594ae5 Update parser 2021-10-11 16:41:45 +02:00
bjorn3
20463d60f3 Replace StackSlots struct with a type alias 2021-10-11 16:41:45 +02:00
bjorn3
fd59a3e045 Remove all unused stackslot handling code 2021-10-11 16:41:45 +02:00
Steve
92a10d1ace Added resolve_vmctx_memory function to enable debuggers to resolve sandbox pointers - required because sandbox 'this' pointer cannot be resolved by lldb any other way as lldb expects "this" and "self" to be standard pointers, not sandbox handles. 2021-10-11 09:08:14 +01:00
Advance Software
2fcce7129c Merge branch 'bytecodealliance:main' into main 2021-10-11 10:04:05 +01:00
Pat Hickey
ed31678161 Merge pull request #3437 from jedisct1/wasi-crypto-update
Update wasi-crypto crate
2021-10-10 17:13:02 -07:00
Frank Denis
0ee1689e2f Update wasi-crypto crate
This pulls more recent versions of its dependencies.
2021-10-10 21:34:43 +02:00
Pat Hickey
f3d06d61d2 Merge pull request #3428 from bjorn3/fix_cranelift_codegen_benches
Fix cranelift-codegen benches
2021-10-10 10:01:27 -07:00
Pat Hickey
d3f81a3cb9 Merge pull request #3435 from bjorn3/remove_various_dead_code
Remove various dead code
2021-10-10 10:00:42 -07:00
Pat Hickey
ccab8c5357 Merge pull request #3434 from bjorn3/remove_cssa_verifier
Remove the CSSA verifier
2021-10-10 10:00:19 -07:00
Pat Hickey
bca6946a9d Merge pull request #3432 from bjorn3/remove_reloc_constant
ConstantData related cleanups for the removal of the old backend
2021-10-10 09:59:13 -07:00
Pat Hickey
b7375817b1 Merge pull request #3431 from bjorn3/remove_sarg_t
Remove the sarg_t type and dummy_sarg_t instruction
2021-10-10 09:58:14 -07:00
Pat Hickey
b0fbab67ba Merge pull request #3429 from bjorn3/shrink_cranelift_codegen_shared
Move condcodes from cranelift-codegen-shared to cranelift-codegen
2021-10-10 09:56:44 -07:00