| /wasmtime-44.0.1/crates/environ/src/compile/ |
| H A D | module_artifacts.rs | 9 ModuleTranslation, Tunables, obj, 22 obj: Object<'a>, field 47 let data = obj.add_section( in new() 53 obj, in new() 133 .obj in append() 152 self.obj.add_section( in append() 238 self.obj.add_section( in push_debug() 259 let ends_id = self.obj.add_section( in append_wasm_bytecode() 280 let section = self.obj.add_section( in serialize_info() 292 self.obj.emit(t).map_err(|e| e.into()) in finish() [all …]
|
| H A D | trap_encoding.rs | 2 use crate::obj::ELF_WASMTIME_TRAPS; 57 pub fn append_to(self, obj: &mut Object) { in append_to() 58 let section = obj.add_section( in append_to() 59 obj.segment_name(StandardSegment::Data).to_vec(), in append_to() 66 obj.append_section_data(section, &amt.to_le_bytes(), 1); in append_to() 67 obj.append_section_data(section, object::bytes_of_slice(&self.offsets), 1); in append_to() 68 obj.append_section_data(section, &self.traps, 1); in append_to()
|
| H A D | address_map.rs | 4 use crate::obj::ELF_WASMTIME_ADDRMAP; 68 pub fn append_to(self, obj: &mut Object) { in append_to() 69 let section = obj.add_section( in append_to() 70 obj.segment_name(StandardSegment::Data).to_vec(), in append_to() 77 obj.append_section_data(section, &amt.to_le_bytes(), 1); in append_to() 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 D | stack_maps.rs | 1 use crate::obj::ELF_WASMTIME_STACK_MAP; 130 pub fn append_to(self, obj: &mut Object) { in append_to() 136 let section = obj.add_section( in append_to() 137 obj.segment_name(StandardSegment::Data).to_vec(), in append_to() 145 obj.append_section_data(section, &amt.to_le_bytes(), 1); in append_to() 146 obj.append_section_data(section, object::bytes_of_slice(&self.pcs), 1); in append_to() 147 obj.append_section_data( in append_to() 152 obj.append_section_data(section, object::bytes_of_slice(&self.stack_map_data), 1); in append_to()
|
| H A D | mod.rs | 8 TripleExt, Tunables, WasmError, WasmFuncType, obj, 335 obj: &mut Object<'static>, in append_code() 364 Pulley32 | Pulley32be => (Architecture::Riscv64, obj::EF_WASMTIME_PULLEY32), in object() 365 Pulley64 | Pulley64be => (Architecture::Riscv64, obj::EF_WASMTIME_PULLEY64), in object() 370 let mut obj = Object::new( in object() localVariable 378 obj.flags = FileFlags::Elf { in object() 379 os_abi: obj::ELFOSABI_WASMTIME, in object() 382 ObjectKind::Module => obj::EF_WASMTIME_MODULE, in object() 383 ObjectKind::Component => obj::EF_WASMTIME_COMPONENT, in object() 387 Ok(obj) in object() [all …]
|
| /wasmtime-44.0.1/crates/cranelift/src/ |
| H A D | obj.rs | 27 use wasmtime_environ::{FuncKey, obj}; 53 obj: &'a mut Object<'static>, field 75 obj: &'a mut Object<'static>, in new() 81 let text_section = obj.add_section( in new() 101 obj, in new() 132 let symbol_id = self.obj.add_symbol(Symbol { in append_func() 227 self.obj in finish() 381 obj: &mut Object<'_>, in append_section() 420 obj: &mut Object<'_>, in write_windows_unwind_info() 449 let pdata = match obj.architecture() { in write_windows_unwind_info() [all …]
|
| H A D | compiler.rs | 480 obj: &mut Object<'static>, in append_code() 609 addrs.append_to(obj); in append_code() 611 stack_maps.append_to(obj); in append_code() 612 traps.append_to(obj); in append_code() 614 let exception_section = obj.add_section( in append_code() 615 obj.segment_name(StandardSegment::Data).to_vec(), in append_code() 620 obj.append_section_data(exception_section, bytes, 1); in append_code() 624 let frame_table_section = obj.add_section( in append_code() 660 obj: &mut Object<'_>, in append_dwarf() 701 obj.append_section_data(section_id, &body, 1); in append_dwarf() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | code_memory.rs | 16 use wasmtime_environ::{Trap, lookup_trap_code, obj}; 128 .map_err(obj::ObjectCrateErrorWrapper) in new() 164 .map_err(obj::ObjectCrateErrorWrapper)?; in new() 198 obj::ELF_WASM_BTI => match data.len() { in new() 211 obj::ELF_WASM_DATA => wasm_data = range, in new() 212 obj::ELF_WASMTIME_ADDRMAP => address_map_data = range, in new() 214 obj::ELF_WASMTIME_TRAPS => trap_data = range, in new() 217 obj::ELF_NAME_DATA => func_name_data = range, in new() 218 obj::ELF_WASMTIME_INFO => info_data = range, in new() 219 obj::ELF_WASMTIME_DWARF => wasm_dwarf = range, in new() [all …]
|
| H A D | native_debug.rs | 10 use wasmtime_environ::obj; 36 let obj = File::parse(&bytes[..]).map_err(obj::ObjectCrateErrorWrapper)?; in relocate_dwarf_sections() localVariable 37 for section in obj.sections() { in relocate_dwarf_sections() 51 RelocationTarget::Symbol(index) => match obj.symbol_by_index(index) { in relocate_dwarf_sections()
|
| /wasmtime-44.0.1/crates/wasmtime/src/engine/ |
| H A D | serialization.rs | 64 .map_err(obj::ObjectCrateErrorWrapper) in check_compatible() 101 .map_err(obj::ObjectCrateErrorWrapper)?; in check_compatible() 132 let section = obj.add_section( in append_compiler_info() 134 obj::ELF_WASM_ENGINE.as_bytes().to_vec(), in append_compiler_info() 148 obj.set_section_data(section, data, 1); in append_compiler_info() 152 obj: ElfFile64<'data, Endianness, R>, in detect_precompiled() 154 match obj.flags() { in detect_precompiled() 156 os_abi: obj::ELFOSABI_WASMTIME, in detect_precompiled() 161 os_abi: obj::ELFOSABI_WASMTIME, in detect_precompiled() 176 let obj = ElfFile64::parse(&read_cache)?; in detect_precompiled_file() localVariable [all …]
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | exnrefs.rs | 71 let obj = ExnRef::new( in exn_objects() localVariable 78 assert_eq!(obj.fields(&mut scope)?.len(), 2); in exn_objects() 79 assert_eq!(obj.field(&mut scope, 0)?.unwrap_i32(), 42); in exn_objects() 80 assert_eq!(obj.field(&mut scope, 1)?.unwrap_i64(), i64::MIN); in exn_objects() 81 assert!(Tag::eq(&obj.tag(&mut scope)?, &tag, &scope)); in exn_objects()
|
| /wasmtime-44.0.1/tests/all/native_debug/ |
| H A D | dump.rs | 10 pub fn get_dwarfdump(obj: &str, section: DwarfDumpSection) -> Result<String> { in get_dwarfdump() 16 .args(&[section_flag, obj]) in get_dwarfdump()
|
| H A D | mod.rs | 4 mod obj; module
|
| H A D | simulate.rs | 2 use super::obj::compile_cranelift;
|
| H A D | translate.rs | 2 use super::obj::compile_cranelift;
|
| /wasmtime-44.0.1/tests/all/component_model/ |
| H A D | call_hook.rs | 412 let obj = ctx.data_mut(); in timeout_async_hook() localVariable 413 if obj.calls_into_host > 200 { in timeout_async_hook() 418 CallHook::CallingHost => obj.calls_into_host += 1, in timeout_async_hook() 419 CallHook::CallingWasm => obj.calls_into_wasm += 1, in timeout_async_hook() 420 CallHook::ReturningFromHost => obj.returns_from_host += 1, in timeout_async_hook() 421 CallHook::ReturningFromWasm => obj.returns_from_wasm += 1, in timeout_async_hook()
|
| /wasmtime-44.0.1/crates/winch/src/ |
| H A D | compiler.rs | 193 obj: &mut Object<'static>, in append_code() 197 self.trampolines.append_code(obj, funcs, resolve_reloc) in append_code() 338 obj: &mut Object<'static>, in append_code() 342 self.0.append_code(obj, funcs, resolve_reloc) in append_code() 368 obj: &mut Object<'_>, in append_dwarf() 378 .append_dwarf(obj, translations, get_func, dwarf_package_bytes, tunables) in append_dwarf()
|
| /wasmtime-44.0.1/src/commands/ |
| H A D | objdump.rs | 19 ModulePC, StackMap, Trap, obj, 141 .section_by_name(obj::ELF_WASMTIME_FRAMES) in execute() 158 .section_by_name(obj::ELF_WASMTIME_ADDRMAP) in execute() 163 .section_by_name(obj::ELF_WASMTIME_TRAPS) in execute() 168 .section_by_name(obj::ELF_WASMTIME_STACK_MAP) in execute() 173 .section_by_name(obj::ELF_WASMTIME_EXCEPTIONS) in execute() 179 .section_by_name(obj::ELF_WASMTIME_FRAMES) in execute() 418 if e_flags & (obj::EF_WASMTIME_PULLEY32 | obj::EF_WASMTIME_PULLEY64) != 0 { in disas()
|
| /wasmtime-44.0.1/crates/wasmtime/src/ |
| H A D | engine.rs | 721 pub(crate) fn append_compiler_info(&self, obj: &mut Object<'_>) -> Result<()> { in append_compiler_info() 722 serialization::append_compiler_info(self, obj, &serialization::Metadata::new(&self)?); in append_compiler_info() 727 pub(crate) fn append_bti(&self, obj: &mut Object<'_>) { in append_bti() 728 let section = obj.add_section( in append_bti() 729 obj.segment_name(StandardSegment::Data).to_vec(), in append_bti() 730 wasmtime_environ::obj::ELF_WASM_BTI.as_bytes().to_vec(), in append_bti() 741 obj.append_section_data(section, &[contents], 1); in append_bti()
|
| H A D | compile.rs | 1065 mut obj: object::write::Object<'static>, in link_and_append_code() 1079 &mut obj, in link_and_append_code() 1091 &mut obj, in link_and_append_code() 1115 let mut obj = wasmtime_environ::ObjectBuilder::new(obj, tunables); in link_and_append_code() localVariable 1136 obj.append(translation) in link_and_append_code() 1145 Ok((obj, artifacts)) in link_and_append_code()
|
| /wasmtime-44.0.1/crates/c-api/tests/ |
| H A D | val.cc | 85 SetOnDrop(SetOnDrop &&obj) : flag_(obj.flag_) { obj.flag_.reset(); } in SetOnDrop() argument
|
| /wasmtime-44.0.1/cranelift/assembler-x64/meta/ |
| H A D | README.md | 43 $ <path to xed>/obj/wkit/bin/xed -d 4080 49 $ <path to xed>/obj/wkit/bin/xed -64 -A -e AND bpl IMM:48
|
| /wasmtime-44.0.1/crates/fuzzing/wasm-spec-interpreter/ocaml/ |
| H A D | Makefile | 24 …ocamlfind ocamlopt $(OCAML_FLAGS) -I $(SPEC_BUILD_DIR) -o $@ -output-complete-obj $^ -linkpkg $(PK…
|
| /wasmtime-44.0.1/crates/wasmtime/src/compile/ |
| H A D | runtime.rs | 181 fn finish_object(obj: ObjectBuilder<'_>, align: &CustomAlignment) -> Result<Self> { in finish_object() 184 return match obj.finish(&mut result) { in finish_object()
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | lib.rs | 35 pub mod obj; module
|