MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / thread_i32_target

Function thread_i32_target

src/lower2/optimise2.rs:1467–1477  ·  view source on GitHub ↗
(instructions: &[Instruction], target: i32)

Source from the content-addressed store, hash-verified

1465 .get(old)
1466 .and_then(|mapped| *mapped)
1467 .and_then(|mapped| u16::try_from(mapped).ok())
1468 .ok_or_else(|| jvm::Error::VerificationError {
1469 context: "optimise2".to_string(),
1470 message: format!("Removed or invalid exception boundary {old}"),
1471 })
1472 };
1473 let map_end_boundary = |old: u16| -> jvm::Result<u16> {
1474 let old = usize::from(old);
1475 let mapped = old_to_new
1476 .iter()
1477 .skip(old)
1478 .find_map(|mapped| *mapped)
1479 .unwrap_or(next_index);
1480 u16::try_from(mapped).map_err(|_| jvm::Error::VerificationError {

Callers 1

thread_jump_targetsFunction · 0.85

Calls 2

resolve_goto_chainFunction · 0.85
to_stringMethod · 0.80

Tested by

no test coverage detected