(&self)
| 34 | entry_states: Vec<Option<FrameState>>, |
| 35 | } |
| 36 | |
| 37 | impl FrameAnalysis { |
| 38 | fn state_at(&self, instruction: usize) -> Option<&FrameState> { |
| 39 | let block = self.block_starts.binary_search(&instruction).ok()?; |
| 40 | self.entry_states.get(block)?.as_ref() |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | impl FrameValue { |
| 45 | fn is_category2(&self) -> bool { |
| 46 | matches!(self, FrameValue::Long | FrameValue::Double) |
| 47 | } |