Commit Graph

135 Commits

Author SHA1 Message Date
Simon Warta
82e9c0c18f Fix spelling WASM -> Wasm 2021-01-03 21:59:11 +01:00
Simon Warta
271c767785 Replace all usages of to_wasm_error 2020-12-22 09:17:09 +01:00
Mark McCaskey
95b0970b8f Enable clippy linting and fix issues 2020-12-18 11:50:27 -08:00
bors[bot]
8e343633df Merge #1948
1948: doc: Fix links r=Hywan a=Hywan

# Description

Since the `intra-doc-links` feature has been stabilized, we can see more clearly that we have many broken links. This PR is an attempt to fix them!

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Ivan Enderlin <ivan@mnt.io>
2020-12-17 13:35:59 +00:00
Ivan Enderlin
5a08680fc3 Update lib/compiler-cranelift/src/config.rs
Co-authored-by: Julien BIANCHI <contact@jubianchi.Fr>
2020-12-17 14:34:11 +01:00
Ivan Enderlin
78faa4fa25 doc: Fix links.
Since the `intra-doc-links` feature has been stabilized, we can see
more clearly that we have many broken links. This PR is an attempt to
fix them!
2020-12-17 11:24:54 +01:00
Simon Warta
85bb1039f8 Expose wasmer::CraneliftOptLevel
This is required to do something like

```rust
use wasmer::{Cranelift, CraneliftOptLevel};

let mut compiler = Cranelift::default();
compiler.opt_level(CraneliftOptLevel::None);
let engine = JIT::new(compiler).engine();
// ...
```
2020-12-17 10:13:07 +01:00
Ivan Enderlin
a9947943a2 doc(compiler-cranelift) Fix a typo. 2020-12-14 15:23:34 +01:00
Syrus Akbary
1ee0146954 Fix all compilation issues simplifying the code 2020-12-04 15:58:38 -08:00
Syrus
13e6f29c29 Set compiler config to be owned (following wasm-c-api) 2020-12-04 02:39:19 -08:00
nlewycky
f110c4d308 Merge branch 'master' into feature/middleware 2020-11-30 15:12:02 -08:00
losfair
9d8f315d4c Update module info in-place. 2020-11-23 13:42:51 -08:00
Syrus Akbary
a11a4a41b8 Merge branch 'arm64' of github.com:wasmerio/wasmer into arm64 2020-11-20 21:23:17 -08:00
Syrus Akbary
af4993cea6 Updated Cranelift to latest version 2020-11-20 21:23:05 -08:00
losfair
e7dd725c6d Add module info transformation method to ModuleMiddleware. 2020-11-20 14:34:46 -08:00
Ivan Enderlin
49ea2bf530 chore(compiler) Rename ModuleInfoTranslation.module_translation to .module_translation_state.
The idea is to avoid confusion with th e`ModuleInfoTranslation` type itself.
2020-11-17 15:58:25 +01:00
Syrus
eef543a1bc Fixed code linting 2020-10-29 20:45:06 -07:00
Syrus
9dcc409720 Use matches! macro for legibility 2020-10-29 20:42:41 -07:00
Syrus Akbary
dff27052fa Update lib/compiler-cranelift/src/translator/code_translator.rs
Co-authored-by: nlewycky <nick@wasmer.io>
2020-10-29 20:40:18 -07:00
Syrus
9bd2c47730 Upgraded Cranelift to 0.67 2020-10-29 20:19:16 -07:00
Syrus
c60eab2b6a Upgrade to wasmparser 0.65 2020-10-29 16:48:39 -07:00
Syrus
382394828f Upgrade wasmparser to 0.64 2020-10-29 16:46:20 -07:00
Syrus
68a0ae9615 Upgrade wasmparser to 0.63 2020-10-29 16:43:02 -07:00
Syrus
ba60630407 Upgrade wasmparser to 0.62 2020-10-29 16:21:43 -07:00
Syrus
b7792f03c2 Upgrade wasmparser to 0.60 2020-10-29 15:50:04 -07:00
Syrus
3da4445e59 Update wasmparser to 0.59 2020-10-29 15:17:53 -07:00
Syrus
7da1555284 Remove unused imports 2020-10-28 14:10:02 -07:00
Syrus
73e502ecc5 Remove unused sourceloc 2020-10-28 13:01:18 -07:00
Ivan Enderlin
f146f5ad6d fix(compiler-cranelift) Don't generate a FrameTable if function body inputs is empty.
If we have no function body inputs, we don't need to construct the
`FrameTable`. Constructing it, with empty FDEs will cause some issues
in Linux.
2020-08-31 12:22:04 +02:00
Mark McCaskey
6e974b92cd Run cargo fmt 2020-08-13 18:12:43 -07:00
Mark McCaskey
5049c543dc Rename wasm-common crate to wasmer-types 2020-08-13 17:59:26 -07:00
Nick Lewycky
fadd5d6699 Remove nearly-all mentions of reborn. 2020-08-13 11:32:14 -07:00
Syrus
55886c4a34 Enable SIMD in cranelift 2020-07-29 20:19:02 -07:00
Syrus
a732159514 Use better naming for module functions 2020-07-26 12:02:45 -07:00
Syrus
b7d41e1e31 Merge branch 'master' into feature/improve-thread-safety-of-core-types
# Conflicts:
#	lib/api/src/instance.rs
#	lib/engine-jit/src/artifact.rs
#	lib/engine-native/src/artifact.rs
2020-07-23 15:29:13 -07:00
Syrus
1293df8dd6 Added Debug to public structs. Close #173 2020-07-21 20:38:32 -07:00
Nick Lewycky
138899c186 Remove verify_ir() from Cranelift and LLVM config classes.
It's replaced by `enable_verifier()` on the CompilerConfig trait.

Enable verifier for all compilers (it's a no-op on singlepass but enabled
nevertheless) when running tests.
2020-07-13 12:13:49 -07:00
Nick Lewycky
635f8a4284 Remove references to non-existant clippy.toml. 2020-07-10 14:49:37 -07:00
Mark McCaskey
f9bce8858b Merge branch 'master' into feature/improve-thread-safety-of-core-types 2020-07-09 13:57:58 -07:00
Syrus
92f8651312 Renamed wasmer_runtime to wasmer_vm 2020-07-07 21:26:06 -07:00
Syrus
b57a28edc7 Removed Memory plans in favor of direct styles 2020-07-07 16:50:08 -07:00
Syrus
416b76ab34 Move offset_guard_size to the memory style 2020-07-07 15:58:46 -07:00
Syrus
98f2e8fe26 Remove TablePlans 2020-07-07 15:10:03 -07:00
Mark McCaskey
d4d738d97e Add an extra layer of indirection for shared globals 2020-07-02 18:23:19 -07:00
Ivan Enderlin
fb956bf51e fix(compiler-cranelift) Remove an unused import. 2020-06-23 10:34:17 +02:00
Syrus
56c2f52001 Improved Compiler API 2020-06-22 14:58:58 -07:00
Nick Lewycky
2017acf99e Some clippy cleanup. 2020-06-20 13:43:46 -07:00
Syrus
e604d6db49 Fixed linting 2020-06-18 13:08:52 -07:00
Syrus
769ffebb61 Improved feature-generation to be compiler-based 2020-06-18 02:11:54 -07:00
Syrus
422051ebe5 Simplified compiler config names 2020-06-18 01:36:25 -07:00