Dan Gohman
8a5429ce74
Factor out functions for working with table and memory initializers.
2019-01-03 12:04:58 -08:00
Dan Gohman
df7724ce2b
Update Cargo.toml authors fields.
2019-01-03 12:04:37 -08:00
Dan Gohman
2f04b78ecf
Use cast::usize rather than as usize to avoid silent overflow.
2019-01-03 12:04:24 -08:00
Dan Gohman
529de7ca60
Tidy up unneeded '&'s.
2019-01-03 12:03:52 -08:00
Dan Gohman
c66a3c23f3
Tidy up some documentation comments.
2019-01-03 12:03:43 -08:00
Dan Gohman
3ce2127bfa
Eliminate the intermediate "base" global variables.
2019-01-03 12:03:33 -08:00
Dan Gohman
3431122440
Update to bindgen 0.46.
2019-01-03 12:03:22 -08:00
Dan Gohman
8939d1252a
Document that wasmtime-runtime is meant to be compiled for the target.
2019-01-03 12:02:57 -08:00
Dan Gohman
3270369a69
Restructure VMContext to eliminate a level of indirection.
2019-01-03 12:02:35 -08:00
Dan Gohman
ff6776fe10
Refactor instance accessor routines.
...
This helps localize the unsafe code needed to access these fields.
2019-01-03 11:49:25 -08:00
Dan Gohman
482a054c75
Move the signature_ids field first.
2019-01-03 11:49:15 -08:00
Dan Gohman
087b5b4dff
Implement cross-instance indirect calls.
2019-01-03 11:48:53 -08:00
Dan Gohman
9d73123e3e
Reformat a comment to fit within 100 columns.
2019-01-03 11:48:34 -08:00
Dan Gohman
bec724b501
Whitespace tidying.
2019-01-03 11:48:26 -08:00
Dan Gohman
63c9143e87
Update to bindgen 0.45.
2019-01-03 11:48:05 -08:00
Dan Gohman
7592c99f3b
Refactor the compilation and instantiation pipeline.
...
wasmtime-execute is now wasmtime-jit. Move `JITCode` and the TargetIsa
into a new `Compiler` type. `InstancePlus` is no more, with trampoline
functionality now handled by `Compiler`.
2019-01-03 11:47:55 -08:00
Dan Gohman
57a1618742
Catch EXCEPTION_INT_OVERFLOW exceptions too.
2018-12-24 22:08:36 -08:00
Dan Gohman
71c0142cd4
Rename the address field of Table/Memory/Global exports to definition.
...
For functions, `address` makes sense because it's the address of the
function. Bt for Table/Memory/Global, it points to a `VM*Definition` field.
2018-12-24 18:20:15 -08:00
Dan Gohman
8f74c7f3d5
Add derive(Debug) to Export.
2018-12-24 18:14:00 -08:00
Dan Gohman
c4e10227de
Tidy up trap-handling code.
2018-12-19 15:14:30 -08:00
Dan Gohman
4d4ecfd812
Bump version to 0.1.0
2018-12-17 13:45:12 -08:00
Dan Gohman
0c0ccc5d09
Add unsigned access methods to VMGlobalDefinition.
2018-12-13 15:50:58 -08:00
Dan Gohman
717f60bda1
Misc cleanups in the trap handling code.
2018-12-13 13:14:08 -08:00
Dan Gohman
26eb8131da
Avoid unnecessary clone() calls.
2018-12-13 09:13:04 -08:00
Dan Gohman
3f24098edc
Implement the remaining valid spec tests.
...
And lots of other miscellaneous changes. Rename InstanceWorld to
InstancePlus and reorganize its contents. This still isn't a great name,
but at least now it has a clear purpose.
2018-12-12 11:49:02 -08:00
Dan Gohman
6dd39dee6a
Update to Cranelift 0.26.0.
2018-12-11 13:21:03 -08:00
Dan Gohman
56850d481d
Initial support for function, table, memory, and global imports.
2018-12-11 12:49:14 -08: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
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
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
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
9d41135fe3
Translate from function-body index to function-index-space index.
...
The wasm function index space consists of the index space of the
imported functions concatenated with the index space of the defined
functions. When iterating through function definitions, it's necessary
to adjust the index when a function-index-space index is needed.
2018-05-17 20:39:19 -07:00
Dan Gohman
b5e794a584
Update to Cretonne 0.8.0.
2018-05-14 12:58:28 -10:00
Dan Gohman
ed734f8ecb
Update to Cretonne 0.4.0.
2018-03-16 16:34:20 -07:00
Dan Gohman
5a5f4e4a2f
Switch to published packages rather than straight git paths.
...
We can do this now that all our dependencies are available in published
form, and this should reduce accidental breakage which APIs change.
2018-02-28 12:33:37 -08: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
29db33e7f8
Replace reserve with reserve_exact when applicable.
2017-11-17 11:14:45 -08:00