From 1fea0367d2a09130af71a8304601b4006e552dee Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 22 Nov 2020 22:09:41 -0800 Subject: [PATCH] Clarify the intention of `false &&` --- tool/ruby_vm/views/_mjit_compile_send.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/ruby_vm/views/_mjit_compile_send.erb b/tool/ruby_vm/views/_mjit_compile_send.erb index 2dff0165bd..01ae593bc0 100644 --- a/tool/ruby_vm/views/_mjit_compile_send.erb +++ b/tool/ruby_vm/views/_mjit_compile_send.erb @@ -30,7 +30,8 @@ && fastpath_applied_iseq_p(ci, captured_cc, iseq = def_iseq_ptr(vm_cc_cme(captured_cc)->def)) && !(vm_ci_flag(ci) & VM_CALL_TAILCALL)) )) { - if (false && vm_cc_cme(captured_cc)->def->type == VM_METHOD_TYPE_CFUNC) + const bool cfunc_debug = false; // Set true when you want to see inlined cfunc + if (cfunc_debug && vm_cc_cme(captured_cc)->def->type == VM_METHOD_TYPE_CFUNC) fprintf(stderr, " * %s\n", rb_id2name(vm_ci_mid(ci))); int sp_inc = (int)sp_inc_of_sendish(ci);