Lines Matching refs:engine

91         let engine = Engine::new(&config)?;  in roundtrip()  localVariable
94 test_roundtrip(&engine, src, dst)?; in roundtrip()
101 fn test_roundtrip(engine: &Engine, src: &str, dst: &str) -> Result<()> { in test_roundtrip()
173 let component = Component::new(engine, &component)?; in test_roundtrip()
174 let mut store = Store::new(engine, String::new()); in test_roundtrip()
175 let mut linker = Linker::new(engine); in test_roundtrip()
197 let engine = wasmtime_test_util::component::engine(); in ptr_out_of_bounds() localVariable
200 test_ptr_out_of_bounds(&engine, src, dst)?; in ptr_out_of_bounds()
206 fn test_ptr_out_of_bounds(engine: &Engine, src: &str, dst: &str) -> Result<()> { in test_ptr_out_of_bounds()
245 let component = Component::new(engine, &component)?; in test_ptr_out_of_bounds()
246 let mut store = Store::new(engine, ()); in test_ptr_out_of_bounds()
247 let trap = Linker::new(engine) in test_ptr_out_of_bounds()
266 let engine = wasmtime_test_util::component::engine(); in ptr_overflow() localVariable
269 test_ptr_overflow(&engine, src, dst)?; in ptr_overflow()
275 fn test_ptr_overflow(engine: &Engine, src: &str, dst: &str) -> Result<()> { in test_ptr_overflow()
315 let component = Component::new(engine, &component)?; in test_ptr_overflow()
319 let mut store = Store::new(engine, ()); in test_ptr_overflow()
320 let instance = Linker::new(engine).instantiate(&mut store, &component)?; in test_ptr_overflow()
371 let engine = wasmtime_test_util::component::engine(); in realloc_oob() localVariable
374 test_realloc_oob(&engine, src, dst)?; in realloc_oob()
380 fn test_realloc_oob(engine: &Engine, src: &str, dst: &str) -> Result<()> { in test_realloc_oob()
420 let component = Component::new(engine, &component)?; in test_realloc_oob()
421 let mut store = Store::new(engine, ()); in test_realloc_oob()
423 let instance = Linker::new(engine).instantiate(&mut store, &component)?; in test_realloc_oob()
433 let engine = wasmtime_test_util::component::engine(); in raw_string_encodings() localVariable
434 test_invalid_string_encoding(&engine, "utf8", "utf8", &[0xff], 1)?; in raw_string_encodings()
436 test_invalid_string_encoding(&engine, "utf8", "utf8", array, array.len() as u32)?; in raw_string_encodings()
437 test_invalid_string_encoding(&engine, "utf8", "utf16", array, array.len() as u32)?; in raw_string_encodings()
439 test_invalid_string_encoding(&engine, "utf8", "utf8", array, array.len() as u32)?; in raw_string_encodings()
440 test_invalid_string_encoding(&engine, "utf8", "utf16", array, array.len() as u32)?; in raw_string_encodings()
441 test_invalid_string_encoding(&engine, "utf8", "latin1+utf16", array, array.len() as u32)?; in raw_string_encodings()
442 test_invalid_string_encoding(&engine, "utf16", "utf8", &[0x01, 0xd8], 1)?; in raw_string_encodings()
443 test_invalid_string_encoding(&engine, "utf16", "utf16", &[0x01, 0xd8], 1)?; in raw_string_encodings()
445 &engine, in raw_string_encodings()
452 &engine, in raw_string_encodings()
459 &engine, in raw_string_encodings()
466 &engine, in raw_string_encodings()
473 &engine, in raw_string_encodings()
483 &engine, in raw_string_encodings()
493 engine: &Engine, in test_invalid_string_encoding()
499 let trap = test_raw_when_encoded(engine, src, dst, bytes, len)?.unwrap(); in test_invalid_string_encoding()
509 engine: &Engine, in test_valid_string_encoding()
515 let err = test_raw_when_encoded(engine, src, dst, bytes, len)?; in test_valid_string_encoding()
521 engine: &Engine, in test_raw_when_encoded()
569 let component = Component::new(engine, &component)?; in test_raw_when_encoded()
570 let mut store = Store::new(engine, ()); in test_raw_when_encoded()
572 let instance = Linker::new(engine).instantiate(&mut store, &component)?; in test_raw_when_encoded()
595 let engine = Engine::new(&config)?; in pass_string_on_component_boundary() localVariable
642 let component = Component::new(&engine, &component)?; in pass_string_on_component_boundary()
643 let mut store = Store::new(&engine, ()); in pass_string_on_component_boundary()
644 let instance = Linker::new(&engine).instantiate(&mut store, &component)?; in pass_string_on_component_boundary()