Remove use of offset_of! from wasmtime-environ.

wasmtime-environ is meant to support cross compilation, so it shouldn't
have dependencies on target layout of structs. This moves the layout
back into wasmtime-execute, and adds a system of asserts for checking
that wasmtime-environ's offsets stay in sync.
This commit is contained in:
Dan Gohman
2018-11-30 16:50:05 -08:00
parent 099f85f821
commit fe1643733b
10 changed files with 355 additions and 66 deletions

View File

@@ -40,6 +40,10 @@ extern crate alloc;
#[macro_use]
extern crate lazy_static;
extern crate libc;
#[cfg(test)]
#[macro_use]
extern crate memoffset;
extern crate cast;
mod code;
mod execute;