From c21978ead6e30ef10ca430b32433a1e949de84b8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 16 Oct 2023 15:37:27 +0200 Subject: [PATCH] LibJS/JIT: Remove unused functions from Assembler --- Userland/Libraries/LibJS/JIT/Assembler.h | 31 ------------------------ 1 file changed, 31 deletions(-) diff --git a/Userland/Libraries/LibJS/JIT/Assembler.h b/Userland/Libraries/LibJS/JIT/Assembler.h index af31f94661..3e55192c2b 100644 --- a/Userland/Libraries/LibJS/JIT/Assembler.h +++ b/Userland/Libraries/LibJS/JIT/Assembler.h @@ -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 };