Home
last modified time | relevance | path

Searched refs:strings (Results 1 – 25 of 43) sorted by relevance

12

/wasmtime-44.0.1/crates/environ/src/
H A Dstring_pool.rs35 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 Dmodule.rs298 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 Dlinker.rs63 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 Dmatching.rs20 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 Dstrings.wit3 interface strings {
10 import strings;
11 export strings;
/wasmtime-44.0.1/crates/wasi/src/p2/wit/
H A Dtest.wit4 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 Dstrings.rs75 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 Dstrings_async.rs75 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 Dstrings_concurrent.rs75 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 Dstrings_tracing_async.rs75 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 Dunit.rs144 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 Ddebug_transform_logging.rs156 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 Dmod.rs174 &mut out_dwarf.strings, in transform_dwarf()
228 &mut out_dwarf.strings, in transform_dwarf()
/wasmtime-44.0.1/crates/wiggle/tests/
H A Dstrings.rs11 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 Dstrings.witx5 (module $strings
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dcode_memory.rs137 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 Dmodule.rs688 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 Dstreams.rs422 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 Dtable.rs27 let name = module.strings.insert("")?; in create_table()
H A Dtag.rs31 let name = module.strings.insert("")?; in create_tag()
H A Dmemory.rs43 let name = module.strings.insert("")?; in create_memory()
/wasmtime-44.0.1/benches/wasi/
H A Dread-arguments.wat25 ;; - the address at which to write the buffer of argument strings
/wasmtime-44.0.1/tests/all/
H A Dcomponent_model.rs25 mod strings; module
/wasmtime-44.0.1/tests/all/cli_tests/
H A Dthreads.wat48 ;; A helper function for printing ptr-len strings.
/wasmtime-44.0.1/crates/environ/src/compile/
H A Dmodule_environ.rs494 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()

12