losfair
510b56a31e
Check memory offset calculation overflow.
2020-05-30 00:35:27 +08:00
losfair
83a50a560e
Fix stack guard page skipping on singlepass.
2020-05-30 00:26:45 +08:00
nlewycky
c0dac31be2
Merge pull request #74 from wasmerio/llvm-needs-more-volatile
...
Mark atomicrmw and cmpxchg volatile when appropriate.
2020-05-28 17:25:06 -07:00
Mark McCaskey
acfb081d6c
Merge pull request #68 from wasmerio/feat-api-exportsiterator
...
feat(api) Implement `ExportsIterator` to iterate over `Extern`
2020-05-28 15:06:51 -07:00
Nick Lewycky
d597a97aa1
Annotate atomicrmw and cmpxchg with volatile if needed.
2020-05-28 14:04:19 -07:00
Nick Lewycky
fd37486040
Update to a newer inkwell.
2020-05-28 14:04:19 -07:00
Syrus
eaff807bc3
Fixed wasmparser wrong message on shared memories
2020-05-28 14:03:30 -07:00
Syrus
cb7a106354
Use user-provided features
2020-05-28 13:54:41 -07:00
Syrus
d360fb33a8
Improved compiler tests
2020-05-28 11:28:38 -07:00
nlewycky
76a56261f9
Merge pull request #72 from wasmerio/fix-build-minifb
...
minifb::Window::update_with_buffer takes size parameters.
2020-05-28 10:27:07 -07:00
Nick Lewycky
9ef0786152
minifb::Window::update_with_buffer takes size parameters too.
2020-05-28 09:42:53 -07:00
Syrus Akbary
2929179c67
Update data_initializer.rs
2020-05-28 08:52:17 -07:00
Syrus Akbary
7fd8a3c36d
Merge pull request #69 from wasmerio/doc-compiler-fix-examples
...
doc(compiler) Fix examples
2020-05-28 08:31:02 -07:00
Syrus Akbary
ad127b24bc
Merge pull request #71 from wasmerio/feat-api-split-externals
...
feat(api) Split the `externals` module into sub-modules
2020-05-28 08:29:36 -07:00
Syrus Akbary
4a848c4aa4
Merge pull request #70 from wasmerio/feat-api-export-atomically
...
feat(api) Export `Atomically`
2020-05-28 08:28:20 -07:00
Ivan Enderlin
0ba966018b
feat(api) Split the externals module into sub-modules.
2020-05-28 16:07:17 +02:00
Ivan Enderlin
4b584ed816
feat(api) Export Atomically.
2020-05-28 14:57:15 +02:00
Ivan Enderlin
f3c389acd9
doc(compiler) Fix examples.
2020-05-28 12:54:16 +02:00
Ivan Enderlin
ed9871a6a1
feat(api) Explicitly specify the iterator lifetime.
2020-05-28 11:29:58 +02:00
Ivan Enderlin
6d6274ba45
feat(api) Implement ExportsIterator to iterate over Extern.
...
This patch adds the `Exports::iter()` method, which returns an
`ExportsIterator`. This latter new structure implements `Iterator` and
`ExactSizeIterator`.
Similarly to `runtime::module::ExportsIterator`, it comes with
`functions`, `globals`, `memories` and `tables` methods to compute
sub-iterators that filter items to the expected extern type.
2020-05-28 10:55:14 +02:00
Syrus
dfd6e7c193
Added singlepass into tests
2020-05-27 17:50:08 -07:00
Syrus
0b61a7d079
Merge branch 'master' into singlepass-dynamicfunc
2020-05-27 17:46:51 -07:00
Syrus
7f30b810c6
Use cranelift by default
2020-05-27 17:43:41 -07:00
Syrus
bf50ced1a3
Merge branch 'master' into singlepass-dynamicfunc
2020-05-27 17:43:06 -07:00
Syrus
17bca3cf8e
Use minor versions instead of patch
2020-05-27 17:42:47 -07:00
Syrus
dafcd9069a
Merge branch 'master' into singlepass-dynamicfunc
2020-05-27 17:27:44 -07:00
Syrus Akbary
eb62964290
Merge pull request #67 from wasmerio/llvm-caching
...
Cache accesses to vmctx members.
2020-05-27 17:26:45 -07:00
Nick Lewycky
fd64edf4c8
Return a FunctionCache instead of its members.
2020-05-27 16:28:00 -07:00
Syrus Akbary
24445768c8
Merge pull request #50 from wasmerio/tests
...
Tests
2020-05-27 15:00:33 -07:00
Nick Lewycky
fce259befa
Cache lookup of memory_grow and memory_size functions.
2020-05-27 14:55:46 -07:00
Nick Lewycky
d88e875e60
Cache function lookups.
2020-05-27 14:55:46 -07:00
Nick Lewycky
74355b0b03
NFC. Move looking up a function in the same wasm module to CtxType.
...
This is a straight refactor, this doesn't add caching yet.
2020-05-27 14:55:46 -07:00
Syrus
30dd994cd6
Changed module set_name to return a boolean
2020-05-27 14:29:54 -07:00
Syrus
28c2a05853
Improved Engine artifact logic
2020-05-27 14:29:54 -07:00
Syrus Akbary
6d934545ab
Update tests/lib/engine-dummy/Cargo.toml
...
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com >
2020-05-27 13:13:49 -07:00
nlewycky
5cb72b3062
Merge pull request #66 from wasmerio/llvm-tbaa
...
Implement all TODOs for TBAA labels.
2020-05-27 12:44:24 -07:00
Nick Lewycky
9eba8f798f
Implement all TODOs for TBAA labels.
2020-05-27 12:18:02 -07:00
Syrus
53b5644b59
Fixed store getter
2020-05-27 12:12:14 -07:00
Syrus
4cda8a29f7
Moved wast test into compiler tests
2020-05-27 11:55:45 -07:00
Syrus
62fb4f79c1
Moved misc test into api test
2020-05-27 11:55:21 -07:00
Syrus
2feccbadf2
Added compiler tests
2020-05-27 11:46:07 -07:00
Syrus
c0e5c794d6
Added module imports and exports testing
2020-05-27 11:11:00 -07:00
Syrus
3bac7117cb
Added module tests
2020-05-27 10:42:19 -07:00
Syrus
32daf6edfe
Added module tests
2020-05-27 10:30:15 -07:00
losfair
f1883508e5
Dynamic function support for singlepass.
2020-05-27 23:56:39 +08:00
nlewycky
58e0c30c34
Merge pull request #64 from wasmerio/fix-mac-build
...
Fix discovery of stack base and size on mac.
2020-05-26 19:13:24 -07:00
Nick Lewycky
bb14a9d820
It appears that pthread_get_stackaddr_np returns the address of the top of the stack, not the bottom of the stack.
...
Remove debug statements.
2020-05-26 18:52:19 -07:00
Nick Lewycky
f921290d92
Get some debug info from the builders.
2020-05-26 18:39:24 -07:00
Nick Lewycky
d960611de0
Move this code into whole functions so that we don't get errors on symbols that aren't defined in the crate on the wrong platform.
2020-05-26 18:21:17 -07:00
Syrus
82785df3f0
Merge branch 'master' into tests
2020-05-26 18:16:01 -07:00