summaryrefslogtreecommitdiff
path: root/py/asmx86.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-09-27 23:35:43 +1000
committerDamien George <damien.p.george@gmail.com>2018-09-27 23:39:08 +1000
commit2e862332630e2838d06b293f35fdd76ab7c9d714 (patch)
treee97686acd707fe312887dfb61fc8e997a90c8831 /py/asmx86.c
parent7d4b6cc868ebf0e1cc5dfe5276b22e1b857c411b (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/asmx86.c')
-rw-r--r--py/asmx86.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/py/asmx86.c b/py/asmx86.c
index 9d96ae06a..09c11c82f 100644
--- a/py/asmx86.c
+++ b/py/asmx86.c
@@ -231,15 +231,6 @@ void asm_x86_mov_i32_to_r32(asm_x86_t *as, int32_t src_i32, int dest_r32) {
asm_x86_write_word32(as, src_i32);
}
-// src_i32 is stored as a full word in the code, and aligned to machine-word boundary
-void asm_x86_mov_i32_to_r32_aligned(asm_x86_t *as, int32_t src_i32, int dest_r32) {
- // mov instruction uses 1 byte for the instruction, before the i32
- while (((as->base.code_offset + 1) & (WORD_SIZE - 1)) != 0) {
- asm_x86_nop(as);
- }
- asm_x86_mov_i32_to_r32(as, src_i32, dest_r32);
-}
-
void asm_x86_and_r32_r32(asm_x86_t *as, int dest_r32, int src_r32) {
asm_x86_generic_r32_r32(as, dest_r32, src_r32, OPCODE_AND_R32_TO_RM32);
}