mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
LibJS/JIT: Expand Add
fast path to double & i32 combinations
Co-authored-by: Stephan Vedder <vedder@mbits.info>
This commit is contained in:
parent
d91b376393
commit
5edab2679c
2 changed files with 26 additions and 28 deletions
|
@ -878,6 +878,11 @@ struct X86_64Assembler {
|
|||
emit8(0x81);
|
||||
emit_modrm_slash(0, dst);
|
||||
emit32(src.offset_or_immediate);
|
||||
} else if (dst.type == Operand::Type::FReg && src.type == Operand::Type::FReg) {
|
||||
emit8(0xf2);
|
||||
emit8(0x0f);
|
||||
emit8(0x58);
|
||||
emit_modrm_rm(dst, src);
|
||||
} else {
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue