MCPcopy Create free account
hub / github.com/andreabergia/rjvm / ProgramCounter

Class ProgramCounter

reader/src/program_counter.rs:8–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6/// Models the program counter, i.e. the address of an instruction in the bytecode of a method
7#[derive(Debug, PartialEq, Eq, Clone, Copy, PartialOrd, Ord)]
8pub struct ProgramCounter(pub u16);
9
10impl Display for ProgramCounter {
11 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {

Callers 6

can_lookup_catch_handlerFunction · 0.85
read_exception_tableMethod · 0.85
newMethod · 0.85
executeMethod · 0.85
gotoMethod · 0.85

Calls

no outgoing calls

Tested by 1

can_lookup_catch_handlerFunction · 0.68