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

Method display_instruction

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

Source from the content-addressed store, hash-verified

229 }
230
231 fn display_instruction(
232 &self,
233 resolved: ResolvedInstructionRef,
234 diff_config: &DiffObjConfig,
235 cb: &mut dyn FnMut(InstructionPart) -> Result<()>,
236 ) -> Result<()> {
237 let instruction = self.parse_ins_ref(resolved.ins_ref, resolved.code, diff_config)?;
238 let display_flags = self.instruction_display_flags(diff_config);
239 let opcode = instruction.opcode();
240 cb(InstructionPart::opcode(opcode.name(), opcode as u16))?;
241 push_args(&instruction, resolved.relocation, &display_flags, cb)?;
242 Ok(())
243 }
244
245 fn relocation_override(
246 &self,

Callers

nothing calls this directly

Calls 5

push_argsFunction · 0.85
opcodeMethod · 0.80
nameMethod · 0.80
parse_ins_refMethod · 0.45

Tested by

no test coverage detected