Skip to content

Commit

Permalink
Implement UntypedValue in wasmi_core (wasmi-labs#369)
Browse files Browse the repository at this point in the history
* implement UntypedValue

* add missing From impls for UntypedValue

* add UntypedValue::{decode_slice, encode_slice} methods

This is useful to replace wasmi_v1's ReadParams and WriteResults API.

* silence unused let binding warning

* use UntypedValue in wasmi_v1 engine

* rename StackEntry to UntypedValue

Thereby we simply use UntypedValue directly, now.

* add UntypedValue::{i32,i64}_eqz methods

* fix docs

* use UntypedValue API in engine executor for cmp instructions

* rename helper methods in executor

* use UntypedValue API in wasmi_v1 executor for more instructions

* use more UntypedValue API for wasmi_v1 executor

* apply rustfmt
  • Loading branch information
Robbepop authored Mar 28, 2022
1 parent 29110ed commit 805ff4e
Show file tree
Hide file tree
Showing 9 changed files with 1,256 additions and 769 deletions.
2 changes: 2 additions & 0 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mod host_error;
mod nan_preserving_float;
mod trap;
mod untyped;
mod value;

#[cfg(feature = "virtual_memory")]
Expand All @@ -24,6 +25,7 @@ pub use self::{
host_error::HostError,
nan_preserving_float::{F32, F64},
trap::{Trap, TrapCode},
untyped::{DecodeUntypedSlice, EncodeUntypedSlice, UntypedError, UntypedValue},
value::{
ArithmeticOps,
ExtendInto,
Expand Down
Loading

0 comments on commit 805ff4e

Please sign in to comment.