Home
last modified time | relevance | path

Searched refs:object (Results 1 – 25 of 118) sorted by relevance

12345

/wasmtime-44.0.1/cranelift/object/src/
H A Dbackend.rs14 use object::write::{
17 use object::{
31 flags: object::FileFlags,
32 endian: object::Endianness,
145 object: Object<'static>, field
167 object, in new()
472 .object in define_data()
475 .object in define_data()
515 self.object in define_function_inner()
588 if self.object.format() == object::BinaryFormat::Elf { in finish()
[all …]
H A Dlib.rs14 pub use object;
/wasmtime-44.0.1/crates/environ/src/compile/
H A Dstack_maps.rs4 use object::write::{Object, StandardSegment};
5 use object::{LittleEndian, SectionKind, U32};
149 object::bytes_of_slice(&self.pointers_to_stack_map), in append_to()
160 use object::{Object, ObjectSection};
168 let mut object = object::write::Object::new( in roundtrip() localVariable
169 object::BinaryFormat::Elf, in roundtrip()
170 object::Architecture::X86_64, in roundtrip()
171 object::Endianness::Little, in roundtrip()
173 section.append_to(&mut object); in roundtrip()
174 let elf = object.write().unwrap(); in roundtrip()
[all …]
H A Daddress_map.rs6 use object::write::{Object, StandardSegment};
7 use object::{LittleEndian, SectionKind, U32};
78 obj.append_section_data(section, object::bytes_of_slice(&self.offsets), 1); in append_to()
79 obj.append_section_data(section, object::bytes_of_slice(&self.positions), 1); in append_to()
H A Dframe_table.rs15 use object::{LittleEndian, U32};
357 f(object::bytes_of_slice(&self.frame_descriptor_ranges)); in serialize()
358 f(object::bytes_of_slice(&self.frame_descriptor_fp_offsets)); in serialize()
359 f(object::bytes_of_slice(&self.progpoint_pcs)); in serialize()
360 f(object::bytes_of_slice(&self.progpoint_descriptor_offsets)); in serialize()
361 f(object::bytes_of_slice(&self.breakpoint_pcs)); in serialize()
362 f(object::bytes_of_slice(&self.breakpoint_patch_offsets)); in serialize()
363 f(object::bytes_of_slice(&self.breakpoint_patch_data_ends)); in serialize()
365 f(object::bytes_of_slice(&self.progpoint_descriptor_data)); in serialize()
H A Dtrap_encoding.rs4 use object::write::{Object, StandardSegment};
5 use object::{LittleEndian, SectionKind, U32};
67 obj.append_section_data(section, object::bytes_of_slice(&self.offsets), 1); in append_to()
H A Dmod.rs10 use object::write::{Object, SymbolId};
11 use object::{Architecture, BinaryFormat, FileFlags};
346 fn object(&self, kind: ObjectKind) -> Result<Object<'static>> { in object() method
374 target_lexicon::Endianness::Little => object::Endianness::Little, in object()
375 target_lexicon::Endianness::Big => object::Endianness::Big, in object()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dnative_debug.rs3 use object::elf::*;
4 use object::endian::{BigEndian, Endian, Endianness, LittleEndian};
5 use object::read::elf::{FileHeader, SectionHeader};
6 use object::{
78 use object::elf::*; in ensure_supported_elf_format()
79 use object::read::elf::*; in ensure_supported_elf_format()
81 let kind = match object::FileKind::parse(bytes) { in ensure_supported_elf_format()
88 object::FileKind::Elf64 => match object::elf::FileHeader64::<Endianness>::parse(bytes) { in ensure_supported_elf_format()
137 object::from_bytes_mut(&mut bytes[off..]).unwrap().0; in convert_object_elf_to_loadable_file()
153 object::from_bytes_mut(&mut bytes[ph_off..]).unwrap().0; in convert_object_elf_to_loadable_file()
[all …]
H A Dcode_memory.rs8 use object::read::elf::SectionTable;
9 use object::{LittleEndian, SectionIndex, U32};
10 use object::{
381 let (ends, _) = object::slice_from_bytes::<U32<LittleEndian>>(ends, count) in wasm_bytecode_end_for_module()
640 strings: object::StringTable<'a>, in section_name()
653 object::elf::SHT_REL | object::elf::SHT_RELA | object::elf::SHT_CREL in is_reloc_section()
/wasmtime-44.0.1/cranelift/object/
H A DCargo.toml2 name = "cranelift-object"
5 description = "Emit Cranelift output to native object files with `object`"
7 documentation = "https://docs.rs/cranelift-object"
20 object = { workspace = true, features = ["write", "std"] }
H A DREADME.md3 to emit native object (".o") files, using the
4 [object](https://crates.io/crates/object) library.
/wasmtime-44.0.1/crates/unwinder/src/
H A Dexception_table.rs13 use object::{Bytes, LittleEndian, U32};
203 f(object::bytes_of_slice(&self.callsites)); in serialize()
204 f(object::bytes_of_slice(&self.frame_offsets)); in serialize()
205 f(object::bytes_of_slice(&self.ranges)); in serialize()
206 f(object::bytes_of_slice(&self.tags)); in serialize()
207 f(object::bytes_of_slice(&self.contexts)); in serialize()
208 f(object::bytes_of_slice(&self.handlers)); in serialize()
267 object::slice_from_bytes::<U32<LittleEndian>>(data.0, callsite_count) in parse()
270 object::slice_from_bytes::<U32<LittleEndian>>(data, callsite_count) in parse()
272 let (ranges, data) = object::slice_from_bytes::<U32<LittleEndian>>(data, callsite_count) in parse()
[all …]
/wasmtime-44.0.1/cranelift/docs/
H A Dindex.md44 - [cranelift-object](https://docs.rs/cranelift-object)
45 This crate provides a object-based backend for `cranelift-module`, which
46 emits native object files using the
47 [object](https://github.com/gimli-rs/object) library.
/wasmtime-44.0.1/cranelift/module/
H A DREADME.md14 - `ObjectModule`, provided by [cranelift-object], which emits native object files.
17 [cranelift-object]: https://crates.io/crates/cranelift-object
/wasmtime-44.0.1/crates/wasi-preview1-component-adapter/
H A Dbuild.rs242 use object::{U32, bytes_of, endian::BigEndian}; in build_archive()
245 archive.extend_from_slice(&object::archive::MAGIC); in build_archive()
276 archive.extend_from_slice(bytes_of(&object::archive::Header { in build_archive()
286 terminator: object::archive::TERMINATOR, in build_archive()
307 archive.extend_from_slice(object::bytes_of(&object::archive::Header { in build_archive()
314 terminator: object::archive::TERMINATOR, in build_archive()
/wasmtime-44.0.1/crates/jit-debug/src/
H A Dperf_jitdump.rs49 unsafe impl object::Pod for RecordHeader {}
71 unsafe impl object::Pod for CodeLoadRecord {}
101 unsafe impl object::Pod for DebugInfoRecord {}
127 unsafe impl object::Pod for FileHeader {}
267 self.maybe_atomic_write_all(object::bytes_of(&header))?; in maybe_write_file_header()
310 record.extend_from_slice(object::bytes_of(&clr)); in dump_code_load_record()
/wasmtime-44.0.1/crates/wasmtime/src/
H A Dcompile.rs101 let mut object = compiler.object(ObjectKind::Module)?; in build_module_artifacts() localVariable
111 engine.append_compiler_info(&mut object)?; in build_module_artifacts()
112 engine.append_bti(&mut object); in build_module_artifacts()
115 object, in build_module_artifacts()
198 let mut object = compiler.object(ObjectKind::Component)?; in build_component_artifacts() localVariable
199 engine.append_compiler_info(&mut object)?; in build_component_artifacts()
200 engine.append_bti(&mut object); in build_component_artifacts()
203 object, in build_component_artifacts()
211 object.append_wasm_bytecode(module_wasms); in build_component_artifacts()
227 object.serialize_info(&artifacts); in build_component_artifacts()
[all …]
/wasmtime-44.0.1/crates/environ/src/
H A Dframe_table.rs9 use object::{Bytes, LittleEndian, U32};
100 object::slice_from_bytes::<U32<LittleEndian>>(data.0, 2 * num_frame_descriptors) in parse()
103 object::slice_from_bytes::<U32<LittleEndian>>(data, num_frame_descriptors) in parse()
107 object::slice_from_bytes::<U32<LittleEndian>>(data, num_progpoint_descriptors) in parse()
110 object::slice_from_bytes::<U32<LittleEndian>>(data, num_progpoint_descriptors) in parse()
113 object::slice_from_bytes::<U32<LittleEndian>>(data, num_breakpoints) in parse()
116 object::slice_from_bytes::<U32<LittleEndian>>(data, num_breakpoints) in parse()
119 object::slice_from_bytes::<U32<LittleEndian>>(data, num_breakpoints) in parse()
535 object::slice_from_bytes::<U32<LittleEndian>>(data.0, num_locals) in parse()
538 object::slice_from_bytes::<U32<LittleEndian>>(data, num_stack_shapes) in parse()
[all …]
H A Dstack_map.rs2 use object::{Bytes, LittleEndian, U32};
18 object::slice_from_bytes::<U32<LittleEndian>>(section.0, pc_count).ok()?; in parse()
20 object::slice_from_bytes::<U32<LittleEndian>>(section, pc_count).ok()?; in parse()
21 let stack_map_data = object::slice_from_all_bytes::<U32<LittleEndian>>(section).ok()?; in parse()
H A Daddress_map.rs4 use object::{Bytes, LittleEndian, U32};
153 object::slice_from_bytes::<U32<LittleEndian>>(section.0, count).ok()?; in parse_address_map()
155 object::slice_from_bytes::<U32<LittleEndian>>(section, count).ok()?; in parse_address_map()
H A Dtrap_encoding.rs2 use object::{Bytes, LittleEndian, U32};
265 let (offsets, traps) = object::slice_from_bytes::<U32<LittleEndian>>(section.0, count).ok()?; in parse()
/wasmtime-44.0.1/examples/min-platform/src/
H A Dmain.rs12 use object::{Object, ObjectSymbol}; in main()
33 let object = object::File::parse(&binary[..])?; in main() localVariable
44 for sym in object.symbols() { in main()
/wasmtime-44.0.1/cranelift/umbrella/
H A DCargo.toml22 cranelift-object = { workspace = true, optional = true }
31 object = ["dep:cranelift-object"]
/wasmtime-44.0.1/crates/environ/
H A DCargo.toml34 object = { workspace = true }
53 object = { workspace = true, features = ['unaligned'] }
79 'object/write_core',
89 'object/std',
/wasmtime-44.0.1/crates/jit-debug/
H A DCargo.toml22 object = { workspace = true, optional = true }
31 perf_jitdump = ["rustix", "object", "std"]

12345