diff options
author | Alan Wu <[email protected]> | 2021-04-06 16:28:41 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:33 -0400 |
commit | 7f4b9e8e6103c039f1f73e6d51f956f8c662b49a (patch) | |
tree | 144689dacec94a5ca7d7dbee9aee0c013ae37f93 /yjit_codegen.c | |
parent | 42af04efee38de4435a04ea0487fce483db10dee (diff) |
YJIT: make ratio_in_yjit more accurate
Don't count instructions that take exit to the interpreter.
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r-- | yjit_codegen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c index 60560b70c8..fd029b3287 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -318,9 +318,9 @@ yjit_gen_block(ctx_t* ctx, block_t* block, rb_execution_context_t* ec) //fprintf(stderr, "compiling %d: %s\n", insn_idx, insn_name(opcode)); //print_str(cb, insn_name(opcode)); - // Count bytecode instructions that execute in generated code - // FIXME: when generation function returns false, we shouldn't increment - // this counter. + // :count-placement: + // Count bytecode instructions that execute in generated code. + // Note that the increment happens even when the output takes side exit. GEN_COUNTER_INC(cb, exec_instruction); // Call the code generation function |