Add V128 to wasmer runtime. Unimplemented in clif-backend. Other backends don't build.

This commit is contained in:
Nick Lewycky
2019-07-02 14:55:10 -07:00
parent 0a1bdd449e
commit df5c12cbe1
6 changed files with 23 additions and 6 deletions

View File

@ -380,12 +380,7 @@ pub fn wp_type_to_type(ty: WpType) -> Result<Type, BinaryReaderError> {
WpType::I64 => Type::I64,
WpType::F32 => Type::F32,
WpType::F64 => Type::F64,
WpType::V128 => {
return Err(BinaryReaderError {
message: "the wasmer llvm backend does not yet support the simd extension",
offset: -1isize as usize,
});
}
WpType::V128 => Type::V128,
_ => panic!("broken invariant, invalid type"),
})
}
@ -396,6 +391,7 @@ pub fn type_to_wp_type(ty: Type) -> WpType {
Type::I64 => WpType::I64,
Type::F32 => WpType::F32,
Type::F64 => WpType::F64,
Type::V128 => WpType::V128,
}
}