Geoffroy Couprie
bf5a06bc95
separate the context intialization from the function execution ( #21 )
the start function is called from the initialization phase
6 years ago
Dan Gohman
95fba6a9de
Update to Cranelift 0.25.
6 years ago
Dan Gohman
0e19f39831
Temporarily disable the fuzz check in test-all.sh
We can re-enable it once https://github.com/Amanieu/hashmap_core/pull/8
is merged.
6 years ago
Dan Gohman
e8201d0f93
Begin work on no_std support.
This adds no_std support to a bunch of things, but more work is needed.
6 years ago
Dan Gohman
82c8ef95c4
Update for Cranelift API changes.
6 years ago
Dan Gohman
f823526a42
Update to wasmparser 0.22.
6 years ago
Dan Gohman
df2b610304
Add a Rust version badge.
6 years ago
Dan Gohman
74ccddcd64
Update to Cranelift 0.24.
6 years ago
Dan Gohman
0a0108f959
Update to Cranelift 0.22.
6 years ago
Dan Gohman
9e56ed5aad
Bump the minimum Rust version to 1.30.1, following Cranelift's policy.
6 years ago
Geoffroy Couprie
7fca0792dd
add a way to provide imported functions during relocation
They are provided as a closure taking the module (&str) and function name (&str) as arguments,
returning an address (Option<isize>)
6 years ago
Dan Gohman
d72ebe53d4
Use the correct base address for memories.
6 years ago
Dan Gohman
8e114a2703
Update authors in Cargo.toml.
6 years ago
Dan Gohman
4a41d2d6c6
Delete obsolete clippy scripts.
6 years ago
Dan Gohman
0ff372a6b8
Adjust whitespace to match the upstream exception text.
This is a whitespace-only change.
6 years ago
Nathan Froyd
5f11f44482
add a --target option to wasm2obj
6 years ago
Dan Gohman
1f8b7c31a9
Remove obsolete clippy scripts.
Now that clippy is installable via rustup and is generally more stable,
we no longer need special scripts. `rustup component add clippy-preview` is
sufficient to install clippy, and `cargo clippy` is sufficient to run it.
Also, don't run clippy in test-all.sh. We do generally want to fix things
clippy reports, however it's not a requirement that the code be kept
clippy-warning-free at all times.
6 years ago
Dan Gohman
5a96e022db
Update to the rustfmt in rust 1.29, which is now stable.
6 years ago
Dan Gohman
ecae909b9e
Add the "wasm" category in Cargo.toml files.
6 years ago
Dan Gohman
da4382802a
Add a LICENSE file to published crates.
The individual crates are published separately from the main repository
on crates.io. To ensure that a copy of the LICENSE file accompanies all
published copies of the code, give each crate its own LICENSE file.
6 years ago
Dan Gohman
fb7153ccf4
Update to cranelift 0.20.0.
The biggest change is the split from FunctionIndex to
DefinedFuncIndex to FuncIndex. Take better advantage of this by
converting several Vecs to PrimaryMaps.
Also, table_addr can now handle indices of the table index type,
so we don't need to explicitly uextend them anymore.
6 years ago
Dan Gohman
c5f0cd7d5e
Enforce the wasm memory size limit on heaps with no maximum.
6 years ago
Dan Gohman
f2ad79963c
Add a comment about "dynamic" heaps.
6 years ago
Dan Gohman
d3fcb596b3
Support multiple memory spaces.
6 years ago
Dan Gohman
4e24064251
grow_memory is renamed to memory.grow in the spec.
6 years ago
Dan Gohman
c12ae182c3
Enforce the linear-memory maximum size.
Also, support linear memories with no maximum, and dynamic remapping.
6 years ago
Sergey Pepyakin
7b222190f5
Implement tables and call_indirect ( #12 )
* Implement tables and call_indirect
* Restore comment about sig checking.
* Widen callee index on 64bit platforms.
6 years ago
Sergey Pepyakin
e7c8d23a42
Implement memory.grow and memory.current ( #9 )
* Implement.
* Clean and doc
* Collect base addresses instead of leaking them
* Fix code for 1.25.
* Simplify $assert
* Use AbiParam::special.
* Use &mut self in base_addr
6 years ago
Dan Gohman
5379605737
Use the correct organization name.
6 years ago
Dan Gohman
c59cec6205
Update for Cretonne->Cranelift rename.
6 years ago
Dan Gohman
bb2589c63f
Remove python code artifacts.
6 years ago
Dan Gohman
f500b7d68d
Add build status badges.
6 years ago
Dan Gohman
1f21570c38
Bump version to 0.0.0
6 years ago
Dan Gohman
48e46c4fae
Update fuzz targets for API changes.
6 years ago
Dan Gohman
4992162fab
Format with rustfmt.
6 years ago
Dan Gohman
40791787c7
Update repository URLs.
6 years ago
Dan Gohman
a1b4c865d1
Prepare wasmtime-environ for publishing.
6 years ago
Dan Gohman
bba733b7a1
Tidy up a comment.
6 years ago
Dan Gohman
548c45c604
Rename wasmtime-runtime to wasmtime-environ.
This mirrors changes in cranelift.
6 years ago
Dan Gohman
b8daa27884
Update test-all.sh.
6 years ago
Dan Gohman
ef5254c0da
More code reorganization and cleanups.
6 years ago
Dan Gohman
33b7dfac00
Rename `ptr_size`.
6 years ago
Dan Gohman
831b481f13
More code reorganization.
6 years ago
Dan Gohman
6659ef7018
More code reorganization.
6 years ago
Dan Gohman
fdd3600f1b
Delete a redundant function.
6 years ago
Dan Gohman
0d8a69189c
Remove unused `TableElement` struct.
6 years ago
Dan Gohman
779128d14d
Factor out FuncEnvironment and ModuleEnvironment into a separate file.
6 years ago
Dan Gohman
63bc52d9fd
Eliminate runtime's direct dependeny on wasmparser.
6 years ago
Dan Gohman
753d650f1a
Update to cranelift 0.18.1.
6 years ago
Dan Gohman
c7c94a3786
Remove an old rustfmt script.
6 years ago