MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / v128

Function v128

tests/all/globals.rs:93–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92#[test]
93fn v128() -> wasmtime::Result<()> {
94 let mut store = Store::<()>::default();
95 let g = Global::new(
96 &mut store,
97 GlobalType::new(ValType::V128, Mutability::Var),
98 0u128.into(),
99 )?;
100 assert_eq!(g.get(&mut store).v128(), Some(V128::from(0)));
101 g.set(&mut store, 1u128.into())?;
102 assert_eq!(g.get(&mut store).v128(), Some(V128::from(1)));
103 Ok(())
104}
105
106#[test]
107fn i31ref_global_new() -> Result<()> {

Callers 15

visit_v128_constMethod · 0.85
visit_i8x16_shuffleMethod · 0.85
visit_i8x16_swizzleMethod · 0.85
visit_i8x16_eqMethod · 0.85
visit_i16x8_eqMethod · 0.85
visit_i32x4_eqMethod · 0.85
visit_i64x2_eqMethod · 0.85
visit_f32x4_eqMethod · 0.85
visit_f64x2_eqMethod · 0.85
visit_i8x16_neMethod · 0.85
visit_i16x8_neMethod · 0.85
visit_i32x4_neMethod · 0.85

Calls 3

OkFunction · 0.85
newFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected