ISLE: emit traps as safepoints on x64

This commit is contained in:
Nick Fitzgerald
2022-02-07 10:01:23 -08:00
parent 31e2d6b21c
commit bb7ae46ecd
4 changed files with 11 additions and 7 deletions

View File

@@ -233,8 +233,12 @@ where
}
}
fn emit_safepoint(&mut self, _inst: &MInst) -> Unit {
unimplemented!();
fn emit_safepoint(&mut self, inst: &MInst) -> Unit {
use crate::machinst::MachInst;
for inst in inst.clone().mov_mitosis() {
let is_safepoint = !inst.is_move().is_some();
self.emitted_insts.push((inst, is_safepoint));
}
}
#[inline]