YJIT: Spill/load argument registers to reuse blocks (#12287)

* YJIT: Spill/load argument registers to reuse blocks

* Mention the immediate function name

* Explain the context behind spill/load operations
This commit is contained in:
Takashi Kokubun 2024-12-09 10:02:40 -08:00 committed by GitHub
parent 93f8de777f
commit cff031253f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
Notes: git 2024-12-09 18:02:58 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
3 changed files with 122 additions and 92 deletions

View file

@ -1317,7 +1317,7 @@ impl Assembler
}
/// Spill a stack temp from a register to the stack
fn spill_reg(&mut self, opnd: Opnd) {
pub fn spill_reg(&mut self, opnd: Opnd) {
assert_ne!(self.ctx.get_reg_mapping().get_reg(opnd.reg_opnd()), None);
// Use different RegMappings for dest and src operands