YJIT: add asm comment when we clear local types (#9713)

Small PR to add a comment when we clear local variable types,
so we can be aware that it's happening when looking at the disasm.
This commit is contained in:
Maxime Chevalier-Boisvert 2024-01-29 10:36:34 -05:00 committed by GitHub
parent fde3d065e6
commit adf29c9a98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 5 deletions

View file

@ -1173,6 +1173,13 @@ impl Assembler
}
}
/// Erase local variable type information
/// eg: because of a call we can't track
pub fn clear_local_types(&mut self) {
asm_comment!(self, "clear local variable types");
self.ctx.clear_local_types();
}
/// Spill all live stack temps from registers to the stack
pub fn spill_temps(&mut self) {
// Forget registers above the stack top