diff options
author | Maxime Chevalier-Boisvert <[email protected]> | 2021-06-07 16:12:19 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:35 -0400 |
commit | 5432f46f6a7a35a8d2a924eae7b1e29289a58292 (patch) | |
tree | 2f19f6ffc26377a2f3b78b77cf7bfa32e4c4fd3d /yjit_codegen.c | |
parent | ed636b59edf18199c9a3477bfb7b514c7756778a (diff) |
Can't add comments to the outlined code block
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r-- | yjit_codegen.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c index d5291fc660..87c5b12043 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -199,6 +199,10 @@ _counted_side_exit(uint8_t *existing_side_exit, int64_t *counter) static void _add_comment(codeblock_t* cb, const char* comment_str) { + // We can't add comments to the outlined code block + if (cb == ocb) + return; + // Avoid adding duplicate comment strings (can happen due to deferred codegen) size_t num_comments = rb_darray_size(yjit_code_comments); if (num_comments > 0) { @@ -244,7 +248,7 @@ yjit_load_regs(codeblock_t* cb) pop(cb, REG_CFP); } -// Generate an inline exit to return to the interpreter +// Generate an exit to return to the interpreter static uint8_t * yjit_gen_exit(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) { |