Léo Gaspard
2e035be60a
make WasiCtxBuilder be an actual builder, allowing to call .build() at the end of a call chain
2021-01-13 04:57:16 +01:00
Léo Gaspard
f3156114c4
reserve keys 0, 1 and 2 for stdio
2021-01-13 04:24:02 +01:00
Léo Gaspard
7303793fa0
also expose WasiCtxBuilder
2021-01-13 04:10:12 +01:00
Pat Hickey
81065eba38
more scheduler
2021-01-12 17:42:59 -08:00
Pat Hickey
b79bdcee84
port subscriptions in from old branch
2021-01-12 15:55:25 -08:00
Pat Hickey
0e42c2e1d9
scaffold a scheduler
2021-01-12 12:07:00 -08:00
Pat Hickey
e7018bf6e0
wiggle flags are now bitflags!
2021-01-11 18:33:52 -08:00
Pat Hickey
b53aecb367
Merge branch 'pch/wiggle_flags_bitflags' into pch/wasi_common_cap_std
2021-01-11 18:31:43 -08:00
Pat Hickey
75a9dc7fe2
wasi-common: wiggle flags are now bitflags!
...
this mostly mechanical change is just getting rid of passing to
`contains` by reference.
2021-01-11 18:27:55 -08:00
Pat Hickey
ed44a19e5e
wiggle: use bitflags to generate flags
...
more consistient with the rest of the ecosystem.
2021-01-11 18:20:57 -08:00
Pat Hickey
e2fb99af86
wiggle: depend on bitflags, and re-export it.
2021-01-11 18:04:43 -08:00
Pat Hickey
94467bcd9a
wiggle: bugfix, generated code should use Names::runtime_mod not wiggle
...
as the crate from which these deps come.
I worked around this in lucet, but I'll be able to revert that
workaround.
2021-01-11 18:03:48 -08:00
Pat Hickey
4a54db0837
derive debug and clone on DirFdStat / FdStat
2021-01-11 17:58:53 -08:00
Pat Hickey
d56d2f0219
directory seek test: code does not agree with comment. Fix code.
...
the directory was opened with the seek right, and this test says that it
was asserting that the seek right was present. However, the test was
actually asserting that the seek right was *not* present.
This fixes the code of the test, because I believe the comment is
correct.
2021-01-11 17:58:32 -08:00
Pat Hickey
b1d32f419c
use bitflags crate to define bitflags, rather than by hand
2021-01-11 17:48:41 -08:00
Pat Hickey
3863b8b3d3
re-organize failures todo list
2021-01-11 17:11:50 -08:00
Pat Hickey
4044977f50
just ignore nofollow on links for now
2021-01-11 17:05:09 -08:00
Pat Hickey
f084cf1fd0
failure to create trailing slash symlink to file can be EEXIST or ENOTDIR
2021-01-11 15:56:13 -08:00
Pat Hickey
932ba6b4f3
need DirExt::hard_link_nofollow to implement path_link properly
2021-01-11 15:47:57 -08:00
Pat Hickey
09861c20db
symlink-related tests: accept either ELOOP or ENOTDIR
...
when opening a symlink loop as directory, or nofollow opening a valid
symlink as directory.
2021-01-11 15:35:48 -08:00
Pat Hickey
2d2e6d16a1
Dir::open_file, open_dir: correct symlink following
2021-01-11 15:15:54 -08:00
Chris Fallin
7ed7c088a4
Merge pull request #2564 from cfallin/load-coalesce-bug
...
machinst lowering: update inst color when scanning across branch to allow more load-op merging.
2021-01-11 12:06:29 -08:00
Nick Fitzgerald
af772c86c5
Merge pull request #2568 from fitzgen/cargo-toml-metadata
...
Cargo.toml metadata for publishing
2021-01-11 11:21:47 -08:00
Chris Fallin
b4426be072
machinst lowering: update inst color when scanning across branch to allow more load-op merging.
...
A branch is considered side-effecting and so updates the instruction
color (which is our way of computing how far instructions can sink).
However, in the lowering loop, we did not update current instruction
color when scanning backward across branches, which are side-effecting.
As a result, the color was stale and fewer load-op merges were permitted
than are actually possible.
Note that this would not have resulted in any correctness issues, as the
stale color is too high (so no merges are permitted that should have
been disallowed).
Fixes #2562 .
2021-01-11 11:20:44 -08:00
Nick Fitzgerald
3068d55fa1
wasi-nn: Fix keyword form in Cargo.toml metadata
...
Keywords may not have spaces, apparently.
2021-01-11 10:46:00 -08:00
Nick Fitzgerald
5ce6e009fc
Add Cargo.toml metadata to peepmatic-test-operator crate
2021-01-11 10:46:00 -08:00
Julian Seward
07652ca0d4
wasm->CLIF: fn translate_operator: Select/TypedSelect: add missing bitcasts
...
The translation of Operator::Select and Operator::TypedSelect for vector-typed
operands, lacks the relevant bitcasting of the operands to I8X16. This commit
adds it.
2021-01-11 11:59:05 +01:00
Chris Fallin
cacebfb19c
Merge pull request #2563 from abrown/fix-build
...
fix: `dst` should be `Writable`, not `ValueRegs`
2021-01-08 17:31:39 -08:00
Andrew Brown
2adb0e8964
security: upgrade smallvec to 1.6.1
...
Fixes advisory https://rustsec.org/advisories/RUSTSEC-2021-0003 .
2021-01-08 16:54:54 -08:00
Andrew Brown
b25a3c387e
fix: dst should be Writable, not ValueRegs
2021-01-08 16:49:28 -08:00
Andrew Brown
09a5b91b9d
x64: make several structures debuggable
2021-01-08 16:21:57 -08:00
Andrew Brown
bb2dd5b68b
[machinst x64]: implement load*_zero for x64
2021-01-08 16:21:57 -08:00
Chris Fallin
81bc811236
Merge pull request #2558 from cfallin/pic-symbol-refs
...
x64: support PC-rel symbol references using the GOT when in PIC mode.
2021-01-08 10:03:10 -08:00
Yury Delendik
3580205f12
[Cranelift][Atomics] Add address folding for atomic notify/wait. ( #2556 )
...
* fold address in wasm wait and notify ops
* add atomics addr folding tests
2021-01-08 11:55:21 -06:00
Chris Fallin
3ee898cb2c
x64: support PC-rel symbol references using the GOT when in PIC mode.
2021-01-07 22:46:56 -08:00
Pat Hickey
4a6e92f52f
upgrade to cap-std 0.9
2021-01-07 16:47:26 -08:00
Pat Hickey
a900d0431d
Merge remote-tracking branch 'origin/main' into pch/wasi_common_cap_std
2021-01-07 16:39:27 -08:00
Nick Fitzgerald
5de5bf1565
Merge pull request #2550 from bytecodealliance/pch/wiggle_trapping
...
wiggle: introduce Trap enum
2021-01-07 16:23:21 -08:00
Nick Fitzgerald
9f4859b963
Merge pull request #2557 from fitzgen/wasmtime-0.22.0
...
Wasmtime 0.22.0
2021-01-07 15:59:09 -08:00
Nick Fitzgerald
3a3f35e158
Add release notes for Wasmtime 0.22.0
2021-01-07 15:17:02 -08:00
Pat Hickey
539058b329
fix windows
2021-01-07 14:57:18 -08:00
Pat Hickey
82128cbc5b
trap proc_exit and unsupported funcs
2021-01-07 14:56:22 -08:00
Nick Fitzgerald
5ad82de3c5
Bump Wasmtime to 0.22.0; Cranelift to 0.69.0
2021-01-07 14:51:12 -08:00
Pat Hickey
c2a715ca54
wiggle traps
2021-01-07 14:43:56 -08:00
Pat Hickey
13cd7a4a8e
Merge branch 'pch/wiggle_trapping' into pch/wasi_common_cap_std
2021-01-07 14:10:59 -08:00
Pat Hickey
c2004001cb
Merge remote-tracking branch 'origin/main' into pch/wasi_common_cap_std
2021-01-07 14:10:43 -08:00
Pat Hickey
b149a03d5d
wasi-common: instead of panicking, use an Error::Unsupported that Traps
2021-01-07 14:05:49 -08:00
Nick Fitzgerald
ee7131bc0b
Merge pull request #2555 from alexcrichton/doc-module-linking
...
Document that the module linking proposal is implemented
2021-01-07 13:21:49 -08:00
Nick Fitzgerald
79aaeb5eda
docs: Add wasm-{smith,encoder} crates to Wasm proposal checklist ( #2554 )
2021-01-07 14:11:42 -06:00
Pat Hickey
030f01345a
cli exit tests: valid wasi commands must export a memory
...
wiggle enforces this but the specially-overridden proc_exit
function did not. Now that we proc_exit through wiggle, wiggle
will trap if it cannot import the instance's memory
2021-01-07 11:45:35 -08:00