Commit Graph

123 Commits

Author SHA1 Message Date
Ivan Enderlin
c212f74e19 test: Implement MemoryUsage on test middlewares. 2021-03-22 15:35:22 +01:00
jubianchi
5962d3fd4c chore: Fix errors to be able to build on musl
Closes #1482
Closes #1766
2021-01-27 21:05:15 +01:00
Nick Lewycky
5892d06a44 Fix lint warnings about unnecessary trailing semicolons. 2021-01-21 22:15:20 -08:00
Syrus Akbary
52b62d63d7 Added support for LLVM 11 and improved Apple Silicon 2021-01-11 19:38:15 -08:00
Simon Warta
df74a4812c Create dedicated MiddlewareError 2020-12-23 00:07:00 +01:00
Simon Warta
c41451a547 Replace wasmparser::Result with wasmer::WasmResult in middleware 2020-12-23 00:07:00 +01:00
Mark McCaskey
6a2116917f Fix up tests, make WasmerEnv: Send 2020-12-15 13:35:19 -08:00
Mark McCaskey
62d15fae36 Merge branch 'master' into fix/host-func-env-memory-leak 2020-12-15 08:37:18 -08:00
Simon Warta
69f834a9e8 Accept Into<FunctionType> as signatures 2020-12-14 13:08:15 +01:00
Mark McCaskey
6e95c50dc2 Address feedback 2020-12-08 11:02:26 -08:00
Mark McCaskey
476e8d1cd6 Merge branch 'master' into fix/host-func-env-memory-leak 2020-12-07 11:06:01 -08:00
Syrus Akbary
c76bb9824c Remove unused else in wast check 2020-12-06 12:39:15 -08:00
Mark McCaskey
e43d9d2732 Experimental: clone host envs during construction 2020-12-04 16:04:03 -08:00
Syrus
13e6f29c29 Set compiler config to be owned (following wasm-c-api) 2020-12-04 02:39:19 -08:00
Syrus Akbary
11bf406a2b Merge pull request #1857 from wasmerio/fix/dynamic-fn-env-wasmer-env
Fix dynamic function envs not working with `WasmerEnv`
2020-12-01 17:06:05 -08:00
Mark McCaskey
2d74536661 Add test for dynamic fn using WasmerEnv 2020-12-01 16:43:19 -08:00
Syrus Akbary
097bfeb479 Merge branch 'master' into feature/middleware 2020-11-30 21:31:56 -05:00
Mark McCaskey
4ef3286f2e Merge branch 'master' into feature/host-env-prototype 2020-11-30 16:52:34 -08:00
nlewycky
f110c4d308 Merge branch 'master' into feature/middleware 2020-11-30 15:12:02 -08:00
Syrus Akbary
081af6428e Update tests/compilers/native_functions.rs
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
2020-11-30 14:09:13 -05:00
Mark McCaskey
82fc0080ba Allow closures with non-native host functions 2020-11-24 13:15:38 -08:00
Mark McCaskey
29d50a55ca Disable closures as host functions for now + docs + tests 2020-11-24 12:44:13 -08:00
Nick Lewycky
21369a26d3 Clean up build warnings. 2020-11-23 15:23:33 -08:00
losfair
77b99a0b18 Port a metering test from the old repo. 2020-11-23 13:44:14 -08:00
losfair
17e7feabe8 Add more metering tests. 2020-11-23 13:43:59 -08:00
Syrus Akbary
475082e6e8 Merge branch 'master' into arm64 2020-11-20 21:13:56 -08:00
Mark McCaskey
de6cb9c4c4 Merge branch 'master' into feature/host-env-prototype 2020-11-20 15:54:35 -08:00
losfair
13a979a53d Add metering middleware. 2020-11-20 14:57:58 -08:00
losfair
e7dd725c6d Add module info transformation method to ModuleMiddleware. 2020-11-20 14:34:46 -08:00
Syrus Akbary
47c958dc43 Improved Native support 2020-11-19 20:31:26 -08:00
Syrus Akbary
1f66798bed All WASI tests now pass in Apple Silicon 2020-11-19 19:25:57 -08:00
Syrus Akbary
eba54b78ef Improved Native function tests 2020-11-19 18:31:44 -08:00
Mark McCaskey
84370c7930 Merge branch 'master' into feature/make-env-immutable 2020-11-18 15:40:11 -08:00
Mark McCaskey
37d0c364e6 Clean up code, reduce memory usage, improve correctness 2020-11-18 15:21:59 -08:00
Mark McCaskey
3580f165e8 Rename WasmerEnv::finish to WasmerEnv::init_with_instance 2020-11-17 17:14:11 -08:00
Mark McCaskey
a19705ae11 Remove free method, call finalizers in C API 2020-11-16 16:36:58 -08:00
Mark McCaskey
2690e5e8f6 Merge branch 'master' into feature/host-env-prototype 2020-11-16 15:13:29 -08:00
Syrus
3da4445e59 Update wasmparser to 0.59 2020-10-29 15:17:53 -07:00
Mark McCaskey
83008a7771 Fix up error handling code, get tests passing 2020-10-29 11:13:51 -07:00
Mark McCaskey
011ec22d43 Merge branch 'master' into feature/host-env-prototype 2020-10-20 15:46:50 -07:00
Mark McCaskey
103ea03536 Rename trait, get tests running 2020-10-20 15:40:51 -07:00
Syrus Akbary
00c931051c Merge branch 'master' into feature/trampoline-in-artifact 2020-10-19 15:11:51 -07:00
Nick Lewycky
f11f231acc Remove unused imports. 2020-10-16 17:02:48 -07:00
Nick Lewycky
797db5cd65 wasi tests should use whichever enginer we're testing. 2020-10-16 17:01:50 -07:00
Nick Lewycky
259c928c25 Thread canonicalize_nans through these utils functions and into the callers. 2020-10-16 17:01:40 -07:00
Nick Lewycky
ff15be3a75 Un-ignore these fixed tests. 2020-10-15 17:05:21 -07:00
Nick Lewycky
69eef6e490 Enable cranelift on aarch64.
Add comments to tests/ignores.txt explaining why they're disabled.

Add a list of engines to test so that we don't test engine-native on aarch64.

Disable tests in tests/compilers/traps.rs that fail with cranelift on aarch64.

Disable tests in examples/ that use cranelift + native, on aarch64.
2020-10-15 15:25:43 -07:00
Nick Lewycky
8d835485b6 Merge branch 'master' into feature/ignore-on-engine 2020-10-14 16:21:45 -07:00
Nick Lewycky
e025778574 Limit these disables to cranelift, add one test failure with link for llvm. 2020-10-14 16:20:21 -07:00
Nick Lewycky
e6cd0ab8d4 Generalize the one-off code for matching of mismatched assert_trap messages.
Use this to match all the mismatching trap messages in engine-native testing.
2020-10-14 13:39:32 -07:00