buckle2000
01ed463c7a
Change SignalHandlers.h to SignalHandlers.hpp
6 years ago
Dan Gohman
9fe08c9341
Tidy up pointer casting to avoid casts that change mutability.
6 years ago
Dan Gohman
0a2b0ee9b0
Mmap API tidying.
Establish more clear expectations for who is expected to page-align what
and when.
6 years ago
Dan Gohman
0826e32c9a
Tidy up unnecessary return statements.
6 years ago
Dan Gohman
3143e22566
Move the creation of linear-memory guard pages into the mmap module.
Create linear-memory pages as PROT_NONE and then make them accessible on
demand.
6 years ago
Dan Gohman
3ac4269dc5
Add `host_state()` accessors to `InstanceContents` and `VMContext` too.
6 years ago
Dan Gohman
73b2c45313
Add a `host_state` field to `Instance`.
This allows hosts to embed arbitrary state along with instances.
6 years ago
Dan Gohman
3aef763046
Delete an unneeded comment.
6 years ago
Dan Gohman
6661228c86
Tidy up whitespace.
6 years ago
Dan Gohman
e876f0fb1d
Add some Cargo.toml keywords.
6 years ago
Dan Gohman
35d7f78a11
Handle errors cleanly in the wast runner.
6 years ago
Dan Gohman
40acc1f340
Add crate version identifiers.
6 years ago
Dan Gohman
585bdac91e
Use `vec![0; size]` instead of creating an empty `Vec` and resizing.
6 years ago
Dan Gohman
a41bc1fe1e
Fix `unused use` warnings.
6 years ago
Dan Gohman
ca2fdc5ccb
Update `no_std` support.
This `no_std` support isn't complete though, as some dependencies
don't support it.
6 years ago
Dan Gohman
f6c2fe7d2d
Update to Rust 2018 Edition.
6 years ago
Dan Gohman
00a84672f7
Use `Vec::with_capacity`.
6 years ago
Dan Gohman
fdc66e130f
Eliminate unneeded casts.
6 years ago
Dan Gohman
39770ec72c
Minor code tidying.
6 years ago
Dan Gohman
701b1998e9
Avoid creating slices with null pointers.
6 years ago
Dan Gohman
57e183f5f8
Use TablePlan::for_table and MemoryPlan::for_memory instead of manual code.
6 years ago
Dan Gohman
8a5429ce74
Factor out functions for working with table and memory initializers.
6 years ago
Dan Gohman
747dbb23e7
Add fuzz targets for module instantiation.
6 years ago
Dan Gohman
df7724ce2b
Update Cargo.toml authors fields.
6 years ago
Dan Gohman
2f04b78ecf
Use `cast::usize` rather than `as usize` to avoid silent overflow.
6 years ago
Dan Gohman
529de7ca60
Tidy up unneeded '&'s.
6 years ago
Dan Gohman
c66a3c23f3
Tidy up some documentation comments.
6 years ago
Dan Gohman
3ce2127bfa
Eliminate the intermediate "base" global variables.
6 years ago
Dan Gohman
3431122440
Update to bindgen 0.46.
6 years ago
Dan Gohman
1ae5c13b8c
Signature ID loads are readonly.
6 years ago
Dan Gohman
8939d1252a
Document that wasmtime-runtime is meant to be compiled for the target.
6 years ago
Dan Gohman
3270369a69
Restructure VMContext to eliminate a level of indirection.
6 years ago
Dan Gohman
ff6776fe10
Refactor instance accessor routines.
This helps localize the unsafe code needed to access these fields.
6 years ago
Dan Gohman
482a054c75
Move the signature_ids field first.
6 years ago
Dan Gohman
e8e8f453a4
Refactor out the code for creating the signature_ids base global value.
6 years ago
Dan Gohman
087b5b4dff
Implement cross-instance indirect calls.
6 years ago
Dan Gohman
b646f9b4e0
Clarify a comment.
6 years ago
Dan Gohman
9d73123e3e
Reformat a comment to fit within 100 columns.
6 years ago
Dan Gohman
bec724b501
Whitespace tidying.
6 years ago
Dan Gohman
b704f5ad30
Update to wasmparser 0.23.0.
6 years ago
Dan Gohman
63c9143e87
Update to bindgen 0.45.
6 years ago
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`.
6 years ago
Dan Gohman
450a279e18
Rename wasmtime's logfile names.
6 years ago
Dan Gohman
f997cde2db
Don't create Static memories larger than the Tunables' static bound size.
6 years ago
Dan Gohman
57a1618742
Catch EXCEPTION_INT_OVERFLOW exceptions too.
6 years ago
Dan Gohman
a5a23d8c4a
Factor WasmNamespace out of lib/wast and into lib/execute as Namespace.
This makes it usable for things other than just wast tests.
6 years ago
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.
6 years ago
Dan Gohman
8f74c7f3d5
Add derive(Debug) to Export.
6 years ago
Dan Gohman
c4e10227de
Tidy up trap-handling code.
6 years ago
Dan Gohman
4d4ecfd812
Bump version to 0.1.0
6 years ago