Skip to content

Commit 35fb265

Browse files
committed
Drop unused JIT function
1 parent e13c9c0 commit 35fb265

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/jit.c

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -928,38 +928,6 @@ static inline void emit_store(struct jit_state *state,
928928
#endif
929929
}
930930

931-
/* Store imm to [dst + offset] */
932-
static inline void emit_store_imm32(struct jit_state *state,
933-
enum operand_size size,
934-
int dst,
935-
int32_t offset,
936-
int32_t imm)
937-
{
938-
#if defined(__x86_64__)
939-
if (size == S16)
940-
emit1(state, 0x66); /* 16-bit override */
941-
emit1(state, size == S8 ? 0xc6 : 0xc7);
942-
emit_modrm_and_displacement(state, 0, dst, offset);
943-
switch (size) {
944-
case S32:
945-
emit4(state, imm);
946-
break;
947-
case S16:
948-
emit2(state, imm);
949-
break;
950-
case S8:
951-
emit1(state, imm);
952-
break;
953-
default:
954-
__UNREACHABLE;
955-
break;
956-
}
957-
#elif defined(__aarch64__)
958-
emit_load_imm(state, R10, imm);
959-
emit_store(state, size, R10, dst, offset);
960-
#endif
961-
}
962-
963931
static inline void emit_jmp(struct jit_state *state, uint32_t target_pc)
964932
{
965933
#if defined(__x86_64__)

0 commit comments

Comments
 (0)