Dan Gohman
74ccddcd64
Update to Cranelift 0.24.
2018-11-25 05:08:29 -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
5a96e022db
Update to the rustfmt in rust 1.29, which is now stable.
2018-10-09 14:36:48 -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
Dan Gohman
4992162fab
Format with rustfmt.
2018-08-03 15:37:57 -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
ef5254c0da
More code reorganization and cleanups.
2018-08-03 15:06:59 -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
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
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
Dan Gohman
99ee96ca16
Update to latest stable rustfmt-preview.
2018-06-07 14:17:56 -07:00
Dan Gohman
b5e794a584
Update to Cretonne 0.8.0.
2018-05-14 12:58:28 -10:00
Dan Gohman
f276a021cb
Update wasmstandalone for API changes.
...
This updates to the latest faerie and cretonne API changes.
2018-02-22 09:44:02 -08:00
Dan Gohman
ca1b461375
Begin internal reorganization.
...
This begins reorganizing how translation and compilation occur, and
setting up infrastructure for imports/exports and relocations. It
splits parts out of StandaloneRuntime, forming Module, Compilation,
and Instance structs, which can be used more independently.
It also simplifies the command-line interface, in a step towards
making simple tools that just expose the functionality of the
libraries.
2017-10-13 14:47:01 -07:00
Dan Gohman
142b17a3f0
Delete an unused settings builder.
2017-10-10 09:47:04 -07:00
Dan Gohman
f90e7ade86
Enable the cretonne verifier by default in debug builds.
2017-10-05 18:01:27 -07:00
Dan Gohman
b5732bc200
On error, always print the error message and exit with non-zero status.
2017-10-05 08:49:32 -07:00
Dan Gohman
c8e015f31a
Remove an unused argument.
2017-10-04 12:32:45 -07:00
Dan Gohman
fc857a758e
Remove an unneeded block.
2017-10-04 12:22:32 -07:00
Dan Gohman
b4e7e918cc
Use the correct index for printing function definitions when imports are present.
2017-10-04 12:22:07 -07:00
Dan Gohman
23bafd1218
Split the runtime and execution code into separate crates.
2017-10-03 14:57:52 -07:00
Dan Gohman
865a3d9f31
Rename wasmstandalone::StandaloneRuntime to wasmstandalone::Runtime.
2017-10-03 13:01:31 -07:00
Dan Gohman
a68b2619bd
Sniff the wasm magic bytes, rather than relying on the filename extension.
2017-10-03 12:23:59 -07:00
Dan Gohman
e5ed1517ce
Fix the command name in the usage message.
2017-10-03 12:21:09 -07:00
Dan Gohman
324a395a95
Make the "wat2wasm" error message not panic.
2017-10-03 12:20:37 -07:00
Dan Gohman
5b0a083124
Avoid unnecessary BufReaders.
2017-10-03 06:56:23 -07:00
Dan Gohman
e64eb79aaf
Fix dependency paths. wasmstandalone no longer depends on out-of-tree patches.
2017-09-23 15:38:38 -07:00
Dan Gohman
0c78a2f298
Import the wasm2obj experiment and minimally update it.
2017-09-23 15:38:38 -07:00
Dan Gohman
b583d75c7a
Fix redundant borrows.
2017-09-22 16:11:11 -07:00
Dan Gohman
382415ed0c
Fix a useless format!.
2017-09-22 16:09:10 -07:00
Dan Gohman
b89277d9ce
Rename "wast" to "wat".
2017-09-22 15:57:32 -07:00
Dan Gohman
cdffc1b50a
Roughly update for the recent Cretonne API changes.
...
Everything builds and simple modules run, though there's still lots more
to do.
2017-09-22 15:56:18 -07:00
Dan Gohman
73f5adb19d
Clippy cleanups.
2017-09-06 09:56:14 -07:00
Dan Gohman
3868467917
Format with rustfmt 0.9.0.
2017-09-06 08:37:12 -07:00
Dan Gohman
d0fe50a2a8
Check in the wasmstandalone code.
...
This is based on the code in https://github.com/denismerigoux/cretonne/commits/wasm2cretonne
before wasmstandalone was removed, with minor updates for the new library structure.
It is not yet updated for the latest cretonne API changes.
2017-09-05 17:06:51 -07:00