| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | string_pool.rs | 35 strings: mem::ManuallyDrop<TryVec<Box<str>>>, field 46 mem::ManuallyDrop::drop(&mut self.strings); in drop() 59 .strings in fmt() 86 for s in self.strings.iter() { in try_clone() 152 pool.strings in deserialize() 186 self.strings.reserve(1)?; in insert() 201 let index = self.strings.len(); in insert_new_boxed_str() 203 self.strings.push(owned)?; in insert_new_boxed_str() 224 atom.index() < self.strings.len() in contains() 232 Some(&self.strings[atom.index()]) in get() [all …]
|
| H A D | module.rs | 298 pub strings: StringPool, field 395 strings: Default::default(), in new() 570 let pool = &self.strings; in imports() 582 &self.strings[name], in import() 583 &self.strings[field], in import() 686 strings: _, in trace() 738 strings: _, in trace_mut()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | linker.rs | 63 strings: Strings, field 74 strings: self.strings.clone(), in clone() 86 strings: Vec<Arc<str>>, field 98 strings: &'a mut Strings, field 118 strings: Strings::default(), in new() 147 strings: &mut self.strings, in root() 167 strings: &self.strings, in typecheck() 383 strings: self.strings, in as_mut() 834 self.map.get(name, self.strings) in get() 846 let idx = self.strings.len(); in intern() [all …]
|
| H A D | matching.rs | 20 pub strings: &'a Strings, field 122 .strings in module() 162 let actual = actual.and_then(|map| map.get(name, self.strings)); in instance()
|
| /wasmtime-44.0.1/crates/component-macro/tests/codegen/ |
| H A D | strings.wit | 3 interface strings { 10 import strings; 11 export strings;
|
| /wasmtime-44.0.1/crates/wasi/src/p2/wit/ |
| H A D | test.wit | 4 export add-strings: func(s: list<string>) -> u32; 5 export get-strings: func() -> list<string>; 9 export write-strings-to: func(o: output-stream) -> result;
|
| /wasmtime-44.0.1/crates/component-macro/tests/expanded/ |
| H A D | strings.rs | 75 interface0: exports::foo::foo::strings::GuestIndices, 103 interface0: exports::foo::foo::strings::Guest, 117 let interface0 = exports::foo::foo::strings::GuestIndices::new( in new() 176 D: foo::foo::strings::HostWithStore, in add_to_linker() 177 for<'a> D::Data<'a>: foo::foo::strings::Host, in add_to_linker() 180 foo::foo::strings::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 183 pub fn foo_foo_strings(&self) -> &exports::foo::foo::strings::Guest { in foo_foo_strings() 191 pub mod strings { module 278 pub mod strings { module
|
| H A D | strings_async.rs | 75 interface0: exports::foo::foo::strings::GuestIndices, 103 interface0: exports::foo::foo::strings::Guest, 117 let interface0 = exports::foo::foo::strings::GuestIndices::new( in new() 176 D: foo::foo::strings::HostWithStore + Send, in add_to_linker() 177 for<'a> D::Data<'a>: foo::foo::strings::Host + Send, in add_to_linker() 180 foo::foo::strings::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 183 pub fn foo_foo_strings(&self) -> &exports::foo::foo::strings::Guest { in foo_foo_strings() 191 pub mod strings { module 302 pub mod strings { module
|
| H A D | strings_concurrent.rs | 75 interface0: exports::foo::foo::strings::GuestIndices, 103 interface0: exports::foo::foo::strings::Guest, 117 let interface0 = exports::foo::foo::strings::GuestIndices::new( in new() 176 D: foo::foo::strings::HostWithStore + Send, in add_to_linker() 177 for<'a> D::Data<'a>: foo::foo::strings::Host + Send, in add_to_linker() 180 foo::foo::strings::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 183 pub fn foo_foo_strings(&self) -> &exports::foo::foo::strings::Guest { in foo_foo_strings() 191 pub mod strings { module 275 pub mod strings { module
|
| H A D | strings_tracing_async.rs | 75 interface0: exports::foo::foo::strings::GuestIndices, 103 interface0: exports::foo::foo::strings::Guest, 117 let interface0 = exports::foo::foo::strings::GuestIndices::new( in new() 176 D: foo::foo::strings::HostWithStore + Send, in add_to_linker() 177 for<'a> D::Data<'a>: foo::foo::strings::Host + Send, in add_to_linker() 180 foo::foo::strings::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 183 pub fn foo_foo_strings(&self) -> &exports::foo::foo::strings::Guest { in foo_foo_strings() 191 pub mod strings { module 347 pub mod strings { module
|
| /wasmtime-44.0.1/crates/cranelift/src/debug/transform/ |
| H A D | unit.rs | 144 write::AttributeValue::StringRef(unit.strings.add(name.as_str())), in replace_pointer_type() 188 gimli::DW_AT_name = write::AttributeValue::StringRef(unit.strings.add("T")) in replace_pointer_type() 202 gimli::DW_AT_name = write::AttributeValue::StringRef(unit.strings.add("__ptr")), in replace_pointer_type() 215 …gimli::DW_AT_linkage_name = write::AttributeValue::StringRef(unit.strings.add(versioned_stringify_… in replace_pointer_type() 216 gimli::DW_AT_name = write::AttributeValue::StringRef(unit.strings.add("ptr")), in replace_pointer_type() 232 …gimli::DW_AT_linkage_name = write::AttributeValue::StringRef(unit.strings.add(versioned_stringify_… in replace_pointer_type() 233 gimli::DW_AT_name = write::AttributeValue::StringRef(unit.strings.add("operator*")), in replace_pointer_type() 249 …gimli::DW_AT_linkage_name = write::AttributeValue::StringRef(unit.strings.add(versioned_stringify_… in replace_pointer_type() 250 gimli::DW_AT_name = write::AttributeValue::StringRef(unit.strings.add("operator->")), in replace_pointer_type() 427 unit.strings, in clone_unit()
|
| H A D | debug_transform_logging.rs | 156 strings: &'a write::StringTable, field 192 write!(f, "\"{}\"", &String::from_utf8_lossy(self.strings.get(*id))) in fmt() 242 strings: &unit.strings, in log_end_output_die()
|
| H A D | mod.rs | 174 &mut out_dwarf.strings, in transform_dwarf() 228 &mut out_dwarf.strings, in transform_dwarf()
|
| /wasmtime-44.0.1/crates/wiggle/tests/ |
| H A D | strings.rs | 11 impl<'a> strings::Strings for WasiCtx<'a> { 101 let res = strings::hello_string( in test() 219 let res = strings::multi_string( in test() 298 let res = strings::multi_string( in test()
|
| H A D | strings.witx | 5 (module $strings
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | code_memory.rs | 137 let strings = header in new() localVariable 165 let name = section_name(endian, strings, section_header)?; in new() 189 let target_name = section_name(endian, strings, target_section)?; in new() 640 strings: object::StringTable<'a>, in section_name() 644 .name(endian, strings) in section_name()
|
| H A D | module.rs | 688 Some(&module.strings[name]) in name() 826 &module.strings[name], in exports() 879 let name = module.strings.get_atom(name)?; in get_export() 897 let name = module.strings.get_atom(name)?; in get_export_index()
|
| /wasmtime-44.0.1/crates/misc/component-async-tests/tests/scenario/ |
| H A D | streams.rs | 422 let strings = ["a", "b", "c", "d", "e"]; in test_async_short_reads() localVariable 423 let mut things = Vec::with_capacity(strings.len()); in test_async_short_reads() 424 for string in strings { in test_async_short_reads() 454 let mut received_strings = Vec::with_capacity(strings.len()); in test_async_short_reads() 461 &strings[..], in test_async_short_reads()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/trampoline/ |
| H A D | table.rs | 27 let name = module.strings.insert("")?; in create_table()
|
| H A D | tag.rs | 31 let name = module.strings.insert("")?; in create_tag()
|
| H A D | memory.rs | 43 let name = module.strings.insert("")?; in create_memory()
|
| /wasmtime-44.0.1/benches/wasi/ |
| H A D | read-arguments.wat | 25 ;; - the address at which to write the buffer of argument strings
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | component_model.rs | 25 mod strings; module
|
| /wasmtime-44.0.1/tests/all/cli_tests/ |
| H A D | threads.wat | 48 ;; A helper function for printing ptr-len strings.
|
| /wasmtime-44.0.1/crates/environ/src/compile/ |
| H A D | module_environ.rs | 494 let name = self.result.module.strings.insert(name)?; in translate_payload() 826 name: self.result.module.strings.insert(module)?, in declare_import() 827 field: self.result.module.strings.insert(field)?, in declare_import() 898 Some(self.result.module.strings.insert(name).panic_on_oom()); in name_section()
|