Alex Crichton
de27fbe20f
Tweak C API for fuel
* Ensure `store` is in the function names
* Don't abort the process on `add_fuel` when fuel isn't configured
* Allow learning about failure in both `add_fuel` and `fuel_consumed`
4 years ago
Alex Crichton
5b55ba8053
Use `sigsetjmp` instead of `setjmp` ( #2645 )
Apparently on macOS `setjmp` manipulates the process-wide signal mask
which adds a good deal of overhead. We don't actually need this
functionality so this commit switches to using the `sig` version of
setjmp/longjmp where we can explicitly ask the signal mask to not get
preserved. This came out of poking around on #2644 and on macOS locally
thi sdropped the overhead from 721ns to 55ns.
4 years ago
Shu
8ee0f09983
Add fuel related functions to c-api ( #2643 )
Co-authored-by: Shu <me@wadza.fr>
4 years ago
Pat Hickey
1fe58fe9a4
Merge pull request #2641 from bytecodealliance/pch/fix_wasi_ctx_build
WasiCtx: default to empty/sink stdio files rather than throw
4 years ago
Pat Hickey
e4ce04bab4
WasiCtx: default to empty/sink stdio files rather than throw
the test harness now uses the empty stdin file. I tested manually that
the sink stdout & stderr files work, but theres no test in tree at the
moment
4 years ago
Pat Hickey
e4827ad779
Merge pull request #2487 from bytecodealliance/pch/wasi_common_cap_std
rewrite wasi-common in terms of cap-std
4 years ago
Pat Hickey
6fb2c29654
remove development scaffolding
4 years ago
Pat Hickey
21a1307c10
latest cap-std 0.13.3 fixes windows bug
4 years ago
Pat Hickey
c535b94c73
theres the bug
4 years ago
Pat Hickey
4681e18ee0
will this fix it?
4 years ago
Pat Hickey
5ff9578b5c
wasi-common: WASI/phases is included in the package
4 years ago
Pat Hickey
35261453e9
wasi-common 0.13.2
4 years ago
Chris Fallin
40c4c6ac9b
Merge pull request #2636 from bjorn3/fix_build_value_labels_ranges_no_labels
Fix build_value_labels_ranges for newBE when there are no labels
4 years ago
bjorn3
602006ff9d
Fix build_value_labels_ranges for newBE when there are no labels
4 years ago
Pat Hickey
e2b67aa9a3
simplify life for readdir implementors
4 years ago
Pat Hickey
72a8f9235d
cap-primitives bump fixes windows bugs
4 years ago
Pat Hickey
c8ca639b93
new cap-std apis fix some windows tests!
fix for fd_readdir test on linux, and symlink_create / nofollow_errors
4 years ago
Pat Hickey
e670c46862
system-interface 0.6
4 years ago
Pat Hickey
1a45096ee6
wasi-common, wasi-cap-std-sync, wasmtime-wasi should all be published now
4 years ago
Pat Hickey
bc1992b9a8
cap-std 0.13
4 years ago
Pat Hickey
31145060b2
remove virtfs - it is not suitable for use
4 years ago
Pat Hickey
7a35763d62
collapse two test flags into dangling_filesystem
4 years ago
Pat Hickey
a9639e52a4
publish script: tell me more about the failure please
4 years ago
Pat Hickey
b382a1e0d7
back out wasi-cap-std-sync special test step
4 years ago
Pat Hickey
d62b0a1f97
table keys can wrap around
4 years ago
Kasey Carrothers
7bd96c8e2f
Refactor x64::Insts that use an is_64 bool to use OperandSize.
4 years ago
Kasey Carrothers
3306408100
Refactor x64::Inst to use OperandSize instead of u8s.
TODO: some types take a 'is_64_bit' bool. Those are left unchanged for now.
4 years ago
Kasey Carrothers
b12d41bfe9
Expand x64 OperandSize to support 8 and 16-bit operands.
This is in preparation for refactoring all x64::Inst arms to use OperandSize.
Current uses of OperandSize fall into two categories:
1. XMM operations which require 32/64 bit operands
2. Immediates which only care about 64-bit or not.
Adds assertions to existing Inst constructors to check that they are passed valid sizes.
This change also removes the implicit widening of 1 and 2 byte values to 4 bytes. from_bytes() is only used by category 2, so removing this behavior will not change any visible behavior.
Overall this change should be a no-op.
4 years ago
Chris Fallin
7aecd6dac9
Merge pull request #2631 from bjorn3/newbe_debuginfo_stackslot_offsets
Make the stackslot offsets available for debuginfo
4 years ago
bjorn3
76d615049d
Make the stackslot offsets available for debuginfo
4 years ago
Pat Hickey
b29a3bfbb2
fix warnings
4 years ago
Pat Hickey
857ef411b5
upstream fixes are pending for symlink_create & nofollow_errors on windows
4 years ago
Pat Hickey
cd02e5a942
path_rename: make more concessions for windows. this shit sucks but oh well
4 years ago
Pat Hickey
186360fab2
delete temporary tests
4 years ago
Pat Hickey
a06b23a308
even simpler test case
4 years ago
Pat Hickey
330902f44e
add test for incredibly cursed windows rename behavior
4 years ago
Pat Hickey
47a89d3cc2
cargo update. wanted the latest `cap-primitives`
4 years ago
Pat Hickey
dec0038ba0
add a readdir unit test to wasi-cap-std-sync
4 years ago
Pat Hickey
80fce7c1c8
unlink behavior on macos...
4 years ago
Pat Hickey
ca657186f2
fix wasmtime doctest
4 years ago
Pat Hickey
544a491639
fail-fast false on the other matrix too
4 years ago
Pat Hickey
e3850752b2
this windows test should be fixed...
4 years ago
Pat Hickey
f48b45784e
remove dead comment
4 years ago
Pat Hickey
a29b5bdcc8
dep to latest, lockfile already has it
4 years ago
Pat Hickey
c77a11bd5c
tests: macos-specific behavior
4 years ago
Pat Hickey
d83dba47a3
fix publish script
4 years ago
Pat Hickey
b59160c3da
docs!
4 years ago
Pat Hickey
58aa98ac8e
cap-std-sync docs
4 years ago
Pat Hickey
7daa7763e0
rustdoc the errors
4 years ago
Pat Hickey
0ef691b74e
rustdocs!!
4 years ago