diff options
| author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2020-12-08 17:19:28 -0500 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:26 -0400 |
| commit | f761e9ee641cb4bf9250fa97d119a444d239e7b7 (patch) | |
| tree | fa2e4137df92029e7b21ef404d9b87fa4a28c2d2 /ujit_codegen.c | |
| parent | e4c65ec49c5e2cba537f2d9ee00888c5dfbcac34 (diff) | |
Move code into ujit_iface.c
Diffstat (limited to 'ujit_codegen.c')
| -rw-r--r-- | ujit_codegen.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ujit_codegen.c b/ujit_codegen.c index 09a0acd76d..03b72ec2c3 100644 --- a/ujit_codegen.c +++ b/ujit_codegen.c @@ -14,7 +14,6 @@ #include "ujit_codegen.h" #include "ujit_asm.h" #include "ujit_utils.h" -#include "ujit_hooks.inc" // Code generation function signature typedef bool (*codegen_fn)(codeblock_t* cb, codeblock_t* ocb, ctx_t* ctx); @@ -34,8 +33,7 @@ static codeblock_t* ocb = NULL; static void ujit_gen_entry(codeblock_t* cb) { - for (size_t i = 0; i < sizeof(ujit_with_ec_pre_call_bytes); ++i) - cb_write_byte(cb, ujit_with_ec_pre_call_bytes[i]); + cb_write_pre_call_bytes(cb); } /** @@ -57,8 +55,7 @@ ujit_gen_exit(codeblock_t* cb, ctx_t* ctx, VALUE* exit_pc) mov(cb, member_opnd(REG_CFP, rb_control_frame_t, pc), RAX); // Write the post call bytes - for (size_t i = 0; i < sizeof(ujit_with_ec_post_call_bytes); ++i) - cb_write_byte(cb, ujit_with_ec_post_call_bytes[i]); + cb_write_post_call_bytes(cb); } /** |
