Add back wasmtime-wast support for V128 (#442)
Accidentally left removed #434 when I meant to add it back in! Updates the `wast` crate dependency and adds support for translating `v128.const` instructions to a `RuntimeValue` Closes #441
This commit is contained in:
committed by
Dan Gohman
parent
9947bc5209
commit
e37168a88d
@@ -19,6 +19,7 @@ fn runtime_value(v: &wast::Expression<'_>) -> RuntimeValue {
|
||||
I64Const(x) => RuntimeValue::I64(*x),
|
||||
F32Const(x) => RuntimeValue::F32(x.bits),
|
||||
F64Const(x) => RuntimeValue::F64(x.bits),
|
||||
V128Const(x) => RuntimeValue::V128(x.to_le_bytes()),
|
||||
other => panic!("couldn't convert {:?} to a runtime value", other),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user