mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
LibJS/JIT: Remove unused functions from Assembler
This commit is contained in:
parent
1e8c6d3b06
commit
c21978ead6
1 changed files with 0 additions and 31 deletions
|
@ -177,37 +177,6 @@ struct Assembler {
|
|||
m_output.append((value >> 56) & 0xff);
|
||||
}
|
||||
|
||||
void load_immediate64(Reg dst, u64 imm)
|
||||
{
|
||||
mov(Operand::Register(dst), Operand::Imm64(imm));
|
||||
}
|
||||
|
||||
void increment(Reg dst)
|
||||
{
|
||||
emit8(0x48);
|
||||
emit8(0xff);
|
||||
emit8(0xc0 | to_underlying(dst));
|
||||
}
|
||||
|
||||
void less_than(Reg dst, Reg src)
|
||||
{
|
||||
// cmp src, dst
|
||||
emit8(0x48);
|
||||
emit8(0x39);
|
||||
emit8(0xc0 | (to_underlying(src) << 3) | to_underlying(dst));
|
||||
|
||||
// setl dst
|
||||
emit8(0x0f);
|
||||
emit8(0x9c);
|
||||
emit8(0xc0 | to_underlying(dst));
|
||||
|
||||
// movzx dst, dst
|
||||
emit8(0x48);
|
||||
emit8(0x0f);
|
||||
emit8(0xb6);
|
||||
emit8(0xc0 | (to_underlying(dst) << 3) | to_underlying(dst));
|
||||
}
|
||||
|
||||
struct Label {
|
||||
size_t offset_in_instruction_stream { 0 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue