mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 04:39:10 +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
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/skyrising
Commit: 5edab2679c
Pull-request: https://github.com/SerenityOS/serenity/pull/21855
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