diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2020-09-14 13:31:34 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:23 -0400 |
commit | ca47899ccf9547223f4c64fc4b0837796bee09af (patch) | |
tree | c6b40971fc3c152cbaf603b7db2a774e0f613b97 /ujit_asm.c | |
parent | 1879a123caeb9caced2eeb2bb7a7a91a4a8e1930 (diff) |
Small refactorings in ujit_compile.c
Diffstat (limited to 'ujit_asm.c')
-rw-r--r-- | ujit_asm.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ujit_asm.c b/ujit_asm.c index 6b6c586045..dcf1be07f1 100644 --- a/ujit_asm.c +++ b/ujit_asm.c @@ -8,9 +8,6 @@ #include "ujit_asm.h" -// TODO: give ujit_examples.h some more meaningful file name -#include "ujit_examples.h" - // Dummy none/null operand const x86opnd_t NO_OPND = { OPND_NONE, 0, .imm = 0 }; @@ -213,19 +210,6 @@ void cb_write_int(codeblock_t* cb, uint64_t val, size_t num_bits) } } -// Ruby instruction prologue and epilogue functions -void cb_write_prologue(codeblock_t* cb) -{ - for (size_t i = 0; i < sizeof(ujit_pre_call_bytes); ++i) - cb_write_byte(cb, ujit_pre_call_bytes[i]); -} - -void cb_write_epilogue(codeblock_t* cb) -{ - for (size_t i = 0; i < sizeof(ujit_post_call_bytes); ++i) - cb_write_byte(cb, ujit_post_call_bytes[i]); -} - // Allocate a new label with a given name size_t cb_new_label(codeblock_t* cb, const char* name) { |