Save all callee-saved registers in prologue.

This commit is contained in:
Tyler McMullen
2017-11-29 16:34:21 -08:00
committed by Jakob Stoklund Olesen
parent b049916d35
commit f31a764fc8
2 changed files with 43 additions and 5 deletions

View File

@@ -15,6 +15,9 @@ static ARG_GPRS: [RU; 6] = [RU::rdi, RU::rsi, RU::rdx, RU::rcx, RU::r8, RU::r9];
/// Return value registers.
static RET_GPRS: [RU; 3] = [RU::rax, RU::rdx, RU::rcx];
/// Callee-saved registers
pub static CSR_GPRS: [RU; 5] = [RU::rbx, RU::r12, RU::r13, RU::r14, RU::r15];
struct Args {
pointer_bytes: u32,
pointer_bits: u16,