(a: &FrameValue, b: &FrameValue)
| 1135 | instructions: &[Instruction], |
| 1136 | center: usize, |
| 1137 | constant_pool: &ConstantPool, |
| 1138 | ) -> String { |
| 1139 | let start = center.saturating_sub(8); |
| 1140 | let end = (center + 4).min(instructions.len().saturating_sub(1)); |
| 1141 | (start..=end) |
| 1142 | .map(|index| { |
| 1143 | let marker = if index == center { ">" } else { " " }; |
| 1144 | format!( |
| 1145 | "{marker} {index}: {}", |
| 1146 | describe_instruction(&instructions[index], constant_pool) |
| 1147 | ) |
| 1148 | }) |
| 1149 | .collect::<Vec<_>>() |
| 1150 | .join("\n") |
| 1151 | } |
| 1152 | |
| 1153 | fn transfer_instruction( |
| 1154 | instruction_index: usize, |
| 1155 | instruction: &Instruction, |
| 1156 | mut state: FrameState, |
no test coverage detected