mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
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:
parent
fde3d065e6
commit
adf29c9a98
2 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue