Dan Gohman
0a0108f959
Update to Cranelift 0.22.
2018-11-25 05:08:29 -08:00
Dan Gohman
9e56ed5aad
Bump the minimum Rust version to 1.30.1, following Cranelift's policy.
2018-11-16 12:10:52 -08:00
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>)
2018-11-16 09:56:36 -08:00
Dan Gohman
d72ebe53d4
Use the correct base address for memories.
2018-11-02 16:18:18 -07:00
Dan Gohman
8e114a2703
Update authors in Cargo.toml.
2018-10-30 13:08:42 -07:00
Dan Gohman
4a41d2d6c6
Delete obsolete clippy scripts.
2018-10-30 13:08:42 -07:00
Dan Gohman
0ff372a6b8
Adjust whitespace to match the upstream exception text.
...
This is a whitespace-only change.
2018-10-30 13:08:42 -07:00
Nathan Froyd
5f11f44482
add a --target option to wasm2obj
2018-10-10 08:10:09 -07:00
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.
2018-10-09 14:41:07 -07:00
Dan Gohman
5a96e022db
Update to the rustfmt in rust 1.29, which is now stable.
2018-10-09 14:36:48 -07:00
Dan Gohman
ecae909b9e
Add the "wasm" category in Cargo.toml files.
2018-08-28 21:03:07 -07:00
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.
2018-08-28 21:02:18 -07:00
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.
2018-08-28 20:56:58 -07:00
Dan Gohman
c5f0cd7d5e
Enforce the wasm memory size limit on heaps with no maximum.
2018-08-28 16:54:28 -07:00
Dan Gohman
f2ad79963c
Add a comment about "dynamic" heaps.
2018-08-28 16:54:28 -07:00
Dan Gohman
d3fcb596b3
Support multiple memory spaces.
2018-08-28 16:54:28 -07:00
Dan Gohman
4e24064251
grow_memory is renamed to memory.grow in the spec.
2018-08-28 16:54:28 -07:00
Dan Gohman
c12ae182c3
Enforce the linear-memory maximum size.
...
Also, support linear memories with no maximum, and dynamic remapping.
2018-08-28 16:54:28 -07:00
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.
2018-08-15 16:25:49 -07:00
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
2018-08-11 06:52:43 -07:00
Dan Gohman
5379605737
Use the correct organization name.
2018-08-03 16:03:09 -07:00
Dan Gohman
c59cec6205
Update for Cretonne->Cranelift rename.
2018-08-03 16:02:00 -07:00
Dan Gohman
bb2589c63f
Remove python code artifacts.
2018-08-03 16:00:41 -07:00
Dan Gohman
f500b7d68d
Add build status badges.
2018-08-03 16:00:24 -07:00
Dan Gohman
1f21570c38
Bump version to 0.0.0
2018-08-03 15:44:31 -07:00
Dan Gohman
48e46c4fae
Update fuzz targets for API changes.
2018-08-03 15:43:51 -07:00
Dan Gohman
4992162fab
Format with rustfmt.
2018-08-03 15:37:57 -07:00
Dan Gohman
40791787c7
Update repository URLs.
2018-08-03 15:37:30 -07:00
Dan Gohman
a1b4c865d1
Prepare wasmtime-environ for publishing.
2018-08-03 15:33:15 -07:00
Dan Gohman
bba733b7a1
Tidy up a comment.
2018-08-03 15:26:26 -07:00
Dan Gohman
548c45c604
Rename wasmtime-runtime to wasmtime-environ.
...
This mirrors changes in cranelift.
2018-08-03 15:20:19 -07:00
Dan Gohman
b8daa27884
Update test-all.sh.
2018-08-03 15:11:02 -07:00
Dan Gohman
ef5254c0da
More code reorganization and cleanups.
2018-08-03 15:06:59 -07:00
Dan Gohman
33b7dfac00
Rename ptr_size.
2018-08-03 14:20:15 -07:00
Dan Gohman
831b481f13
More code reorganization.
2018-08-03 14:18:23 -07:00
Dan Gohman
6659ef7018
More code reorganization.
2018-08-03 13:35:25 -07:00
Dan Gohman
fdd3600f1b
Delete a redundant function.
2018-08-03 13:19:21 -07:00
Dan Gohman
0d8a69189c
Remove unused TableElement struct.
2018-08-03 13:15:31 -07:00
Dan Gohman
779128d14d
Factor out FuncEnvironment and ModuleEnvironment into a separate file.
2018-08-03 13:04:05 -07:00
Dan Gohman
63bc52d9fd
Eliminate runtime's direct dependeny on wasmparser.
2018-08-03 12:43:36 -07:00
Dan Gohman
753d650f1a
Update to cranelift 0.18.1.
2018-08-02 20:50:28 -07:00
Dan Gohman
c7c94a3786
Remove an old rustfmt script.
2018-07-21 06:50:34 -07:00
Dan Gohman
1413a58544
Update the fuzzing harness for API changes.
2018-07-21 06:47:02 -07:00
Dan Gohman
dd3a9dab6e
Make an initial pass through clippy warnings.
2018-07-21 06:46:53 -07:00
Dan Gohman
f3a6cab472
Make package names consistent with cranelift's.
2018-07-21 06:46:37 -07:00
Dan Gohman
2608dd0c47
Update to cranelift 0.16.1, target-lexicon 0.0.3, faerie 0.4.4.
2018-07-21 06:46:19 -07:00
Dan Gohman
7a26b76521
Change the license to "Apache-2.0 WITH LLVM-exception".
2018-07-21 06:46:02 -07:00
Dan Gohman
a2f70a3544
Update to cranelift's formatting and testing scripts.
2018-07-20 20:48:34 -07:00
Dan Gohman
c612d48b33
Rename to wasmtime. It's wasmtime!
...
Also, update to Cretonne 0.13.0.
2018-07-02 16:20:22 -07:00
Dan Gohman
73639e4557
Update to cretonne 0.9.0 and faerie 0.4.1.
2018-06-07 14:37:36 -07:00