Dan Gohman
d6d1e7253d
Bump version to 0.17.0
2018-07-23 16:57:51 -07:00
Dan Gohman
6cb03a873d
Bump version to 0.17.0-alpha
2018-07-23 16:15:53 -07:00
Benjamin Bouvier
5f3cd868cd
[wasm] Rename native_pointer() to pointer_type() to make it more apparent it's a type;
2018-07-20 13:11:36 -07:00
Dan Gohman
45ef3149f1
Update hashmap_core to 0.1.9.
2018-07-19 11:08:53 -07:00
Benjamin Bouvier
7b290cd900
Move the code section parsing into its own function;
2018-07-19 06:39:56 -07:00
Benjamin Bouvier
03159a9200
Misc refactorings when looking at the wasm code;
2018-07-19 06:39:56 -07:00
Dan Gohman
c068721964
Bump version to 0.16.1
2018-07-18 13:33:15 -07:00
Dan Gohman
ce27b2a74f
Bump version to 0.16.0
2018-07-17 15:49:04 -07:00
Dan Gohman
76a537e3d4
Update to wasmparser.rs 0.17.2.
2018-07-17 15:46:35 -07:00
Dan Gohman
289145e7cf
Update to wasmparser.rs 0.17.1.
2018-07-17 15:43:39 -07:00
Dan Gohman
17db4e6be8
Add a LICENSE file to each crate.
...
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-07-17 12:48:27 -07:00
Dan Gohman
a28a3c3ea9
Bump version to 0.15.0
2018-07-14 07:27:35 -07:00
Dan Gohman
8930cb1b5d
Update dependency versions.
2018-07-13 16:34:34 -07:00
Dan Gohman
262689908e
Bump version to 0.14.0
2018-07-13 09:26:46 -07:00
Dan Gohman
401c872c52
Update more paths for the CraneStation/cranelift rename.
2018-07-13 09:22:15 -07:00
Dan Gohman
f4dbd38a4c
Rename Cretonne to Cranelift!
2018-07-13 09:15:16 -07:00
Dan Gohman
19a636af96
Change Cretonne's license to "Apache-2.0 WITH LLVM-exception".
...
This adds the "LLVM-exception" to Cretonne's existing Apache-2.0
license.
https://spdx.org/licenses/LLVM-exception.html
2018-07-13 07:25:32 -07:00
Benjamin Bouvier
25508ac66e
[clippy] Pass more types by value;
...
wasmparser::Type is an enum, and there was one Location I missed.
2018-07-11 13:47:25 -07:00
Benjamin Bouvier
bea843519c
[clippy] Return explicit unit values;
2018-07-11 13:47:25 -07:00
Benjamin Bouvier
0ad7dbf689
[clippy] Remove unnecessary closures;
2018-07-10 06:11:30 -07:00
Amanieu d'Antras
c6badde836
Update wabt to 0.4 ( #389 )
...
This fixes compilation on system with GCC 8.
2018-07-05 19:17:53 -07:00
Dan Gohman
112ae6df56
Bump version to 0.13.0
2018-07-02 15:48:18 -07:00
Dan Gohman
b17d1617ca
Update to hashmap_core 0.1.8.
2018-07-02 15:09:30 -07:00
Dan Gohman
7a55a107ae
Say "Global Variable" when referring to the WebAssembly concept.
...
This helps avoid confusion between wasm global variables and cretonne
global values.
2018-07-02 08:05:01 -07:00
Dan Gohman
cc94adca3b
Update to the rustfmt in rust 1.27, which is now stable. ( #377 )
2018-06-26 13:06:16 -07:00
Dan Gohman
0349270b58
Bump version to 0.12.0
2018-06-16 07:50:27 -07:00
Lachlan Sneff
38ab82bcc0
Made changes for review
2018-06-15 18:33:30 -07:00
Lachlan Sneff
3686fc2fc7
Fix typos caused by find-and-replace
2018-06-15 18:33:30 -07:00
Lachlan Sneff
5c320a0d30
Change GlobalVar to GlobalValue
2018-06-15 18:33:30 -07:00
Dan Gohman
49cc693d64
Update to hashmap_core 0.1.7.
2018-06-15 10:35:13 -07:00
Dan Gohman
dfc7065252
Bump version to 0.11.0
2018-06-15 08:46:25 -07:00
Dan Gohman
c506f4cf6b
Use WasmError::Unsupported rather than panic for unsupported extensions.
2018-06-15 08:38:40 -07:00
Dan Gohman
9542cab5ed
Bump version to 0.10.0
2018-06-12 12:29:59 -07:00
Dan Gohman
a7813c4448
Update to target-lexicon 0.0.2.
...
This fixes compilation on rust 1.22.1.
2018-06-12 06:36:07 -07:00
Dan Gohman
1b55a2d005
Rename more Error and Result types.
2018-06-12 05:02:25 -07:00
Dan Gohman
c03d67a4ff
Update for wasm memory instruction renaming.
...
The wasm spec renamed `grow_memory` and `current_memory` to
`memory.grow` and `memory.size`, respectively. Update cretonne's names
to follow.
Also, update to wasmparser 0.17.0, which also renames its corresponding
operators.
2018-06-12 05:02:25 -07:00
Dan Gohman
944251260b
Bump version to 0.9.0
2018-06-07 11:46:36 -07:00
Dan Gohman
b2b20a95a1
Fix missing no_std support in cretonne-module.
...
And, tidy up the extern crate declarations in the std replacement modules.
2018-06-07 11:34:55 -07:00
Dan Gohman
750483b9ac
Update to hashmap_core 0.1.6.
2018-06-07 10:45:30 -07:00
Dan Gohman
6ec3a3f7a1
Pass the "std" feature through to target-lexicon.
2018-06-07 09:56:45 -07:00
Dan Gohman
eb94664285
Add assertions to check translate_call and translate_call_indirect.
...
Assert that the results produced by translate_call and
translate_call_indirect match the results of the call signatures.
2018-06-05 09:21:23 -07:00
Dan Gohman
f48c1d4f89
Update to target-lexicon 0.0.1 and faerie 0.4.1.
...
This fixes handling of custom targets.
2018-05-30 17:25:48 -07:00
Dan Gohman
4e67e08efd
Use the target-lexicon crate.
...
This switches from a custom list of architectures to use the
target-lexicon crate.
- "set is_64bit=1; isa x86" is replaced with "target x86_64", and
similar for other architectures, and the `is_64bit` flag is removed
entirely.
- The `is_compressed` flag is removed too; it's no longer being used to
control REX prefixes on x86-64, ARM and Thumb are separate
architectures in target-lexicon, and we can figure out how to
select RISC-V compressed encodings when we're ready.
2018-05-30 06:13:35 -07:00
Dan Gohman
a1fe0f82e1
Update to the latest stable rustfmt, 0.4.2-stable (febbb36 2018-04-12).
2018-05-29 10:37:38 -07:00
Dan Gohman
6b88cd44a8
Update to rustfmt-preview ( #348 )
...
* Update to rustfmt-preview.
* Run "cargo fmt --all" with rustfmt 0.4.1.
rustfmt 0.4.1 is the latest release of rustfmt-preview available on the
stable channel.
* Fix a long line that rustfmt 0.4.1 can't handle.
* Remove unneeded commas left behind by rustfmt.
2018-05-25 11:38:38 -07:00
Ram
4afb28ef59
Use wabt, and make the wasm subcommand optional. ( #347 )
...
* Use wabt for wasm testing.
* Use wabt in cton-util.
* Make the wasm subcommand optional.
2018-05-24 08:23:00 -07:00
Dan Gohman
b855184ae1
Make WasmError and WasmResult public types.
2018-05-22 09:37:33 -07:00
Dan Gohman
f835a1b662
Followup to #345 to fix no_std errors.
2018-05-22 07:23:28 -07:00
Dan Gohman
89e7d56120
Allow wasm embedders to reject wasm modules with unsupported features. ( #345 )
...
Define `WasmError` (and an accompanying `WasmResult`) to represent
errors translating WebAssembly functions. Make `translate_call` and
related functions return `WasmResult`s so that embedders have the
flexibility to reject features they don't support.
Move `InvalidInput` out of `CtonError` and into `WasmError`, where it's
now named `InvalidWebAssembly`, as it's a WebAssembly-specific error
condition. Also extend it to preserve the original error message and
bytecode offset.
2018-05-21 20:49:19 -07:00
Dan Gohman
b4f9eb5e55
Bump versino to 0.8.0
2018-05-01 19:54:21 -07:00