Finds a stack slot with size of at least n bytes
(
&mut self,
n: u32,
)
| 1284 | |
| 1285 | /// Finds a stack slot with size of at least n bytes |
| 1286 | fn stack_slot_with_size( |
| 1287 | &mut self, |
| 1288 | n: u32, |
| 1289 | ) -> Result<(StackSlot, StackSize, StackAlignment, AACategory)> { |
| 1290 | let first = self |
| 1291 | .resources |
| 1292 | .stack_slots |
| 1293 | .partition_point(|&(_slot, size, _align, _category)| size < n); |
| 1294 | Ok(*self.u.choose(&self.resources.stack_slots[first..])?) |
| 1295 | } |
| 1296 | |
| 1297 | /// Generates an address that should allow for a store or a load. |
| 1298 | /// |
no test coverage detected