Sha256: 289661655a721dafd7302eed9848da9b19d3c680b000a34c82aca411a9a026bc

Contents?: true

Size: 540 Bytes

Versions: 7

Compression:

Stored size: 540 Bytes

Contents

//! Unwind information for Windows x64 ABI.

use crate::machinst::{Reg, RegClass};

pub(crate) struct RegisterMapper;

impl crate::isa::unwind::winx64::RegisterMapper<Reg> for RegisterMapper {
    fn map(reg: Reg) -> crate::isa::unwind::winx64::MappedRegister {
        use crate::isa::unwind::winx64::MappedRegister;
        match reg.class() {
            RegClass::Int => MappedRegister::Int(reg.to_real_reg().unwrap().hw_enc()),
            RegClass::Float => MappedRegister::Xmm(reg.to_real_reg().unwrap().hw_enc()),
        }
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wasmtime-8.0.0 ./ext/cargo-vendor/cranelift-codegen-0.95.0/src/isa/x64/inst/unwind/winx64.rs
wasmtime-7.0.0 ./ext/cargo-vendor/cranelift-codegen-0.94.0/src/isa/x64/inst/unwind/winx64.rs
wasmtime-6.0.1 ./ext/cargo-vendor/cranelift-codegen-0.93.1/src/isa/x64/inst/unwind/winx64.rs
wasmtime-6.0.0 ./ext/cargo-vendor/cranelift-codegen-0.93.0/src/isa/x64/inst/unwind/winx64.rs
wasmtime-5.0.0 ./ext/cargo-vendor/cranelift-codegen-0.92.0/src/isa/x64/inst/unwind/winx64.rs
wasmtime-0.4.1 ./ext/cargo-vendor/cranelift-codegen-0.91.0/src/isa/x64/inst/unwind/winx64.rs
wasmtime-0.4.0 ./ext/cargo-vendor/cranelift-codegen-0.91.0/src/isa/x64/inst/unwind/winx64.rs