Skip to main content

luaur_code_gen/methods/
ir_lowering_x_64_has_error.rs

1use crate::records::ir_lowering_x_64::IrLoweringX64;
2
3impl IrLoweringX64 {
4    pub fn has_error(&self) -> bool {
5        if self.regs.max_used_slot > Self::k_spill_slots() + Self::k_extra_spill_slots() {
6            return true;
7        }
8
9        false
10    }
11
12    const fn k_spill_slots() -> u32 {
13        13
14    }
15
16    const fn k_extra_spill_slots() -> u32 {
17        64
18    }
19}