1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Can't add comments to the outlined code block

This commit is contained in:
Maxime Chevalier-Boisvert 2021-06-07 16:12:19 -04:00 committed by Alan Wu
parent ed636b59ed
commit 5432f46f6a

View file

@ -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)
{