diff options
author | Damien George <damien.p.george@gmail.com> | 2018-09-27 23:35:43 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-09-27 23:39:08 +1000 |
commit | 2e862332630e2838d06b293f35fdd76ab7c9d714 (patch) | |
tree | e97686acd707fe312887dfb61fc8e997a90c8831 /py/asmx64.c | |
parent | 7d4b6cc868ebf0e1cc5dfe5276b22e1b857c411b (diff) |
py/asm*: Remove ASM_MOV_REG_ALIGNED_IMM emit macro, it's no longer used.
After the previous commit this macro is no longer needed by the native
emitter because live heap pointers are no longer stored in generated native
machine code.
Diffstat (limited to 'py/asmx64.c')
-rw-r--r-- | py/asmx64.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/py/asmx64.c b/py/asmx64.c index c7702942d..3e0aa4970 100644 --- a/py/asmx64.c +++ b/py/asmx64.c @@ -363,15 +363,6 @@ void asm_x64_mov_i64_to_r64_optimised(asm_x64_t *as, int64_t src_i64, int dest_r } } -// src_i64 is stored as a full word in the code, and aligned to machine-word boundary -void asm_x64_mov_i64_to_r64_aligned(asm_x64_t *as, int64_t src_i64, int dest_r64) { - // mov instruction uses 2 bytes for the instruction, before the i64 - while (((as->base.code_offset + 2) & (WORD_SIZE - 1)) != 0) { - asm_x64_nop(as); - } - asm_x64_mov_i64_to_r64(as, src_i64, dest_r64); -} - void asm_x64_and_r64_r64(asm_x64_t *as, int dest_r64, int src_r64) { asm_x64_generic_r64_r64(as, dest_r64, src_r64, OPCODE_AND_R64_TO_RM64); } |