MCPcopy Index your code
hub / github.com/encounter/objdiff / display_instruction

Method display_instruction

objdiff-core/src/arch/arm.rs:315–333  ·  view source on GitHub ↗
(
        &self,
        resolved: ResolvedInstructionRef,
        diff_config: &DiffObjConfig,
        cb: &mut dyn FnMut(InstructionPart) -> Result<()>,
    )

Source from the content-addressed store, hash-verified

313 }
314
315 fn display_instruction(
316 &self,
317 resolved: ResolvedInstructionRef,
318 diff_config: &DiffObjConfig,
319 cb: &mut dyn FnMut(InstructionPart) -> Result<()>,
320 ) -> Result<()> {
321 let ins = self.parse_ins_ref(resolved.ins_ref, resolved.code, diff_config)?;
322
323 let options = self.unarm_options(diff_config);
324 let mut string_fmt = unarm::StringFormatter::new(&options);
325 ins.write_opcode(&mut string_fmt)?;
326 let opcode = string_fmt.into_string();
327 cb(InstructionPart::opcode(opcode, resolved.ins_ref.opcode))?;
328
329 let mut args_formatter =
330 ArgsFormatter { options: &options, cb, resolved: &resolved, skip_leading_space: true };
331 ins.write_params(&mut args_formatter)?;
332 Ok(())
333 }
334
335 fn relocation_override(
336 &self,

Callers 2

display_rowFunction · 0.45
newMethod · 0.45

Calls 2

unarm_optionsMethod · 0.80
parse_ins_refMethod · 0.45

Tested by

no test coverage detected