diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-11-22 22:09:41 -0800 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-11-22 22:09:42 -0800 |
| commit | 1fea0367d2a09130af71a8304601b4006e552dee (patch) | |
| tree | 46fe54baaa6adee13c73e8c5570ace68fa4d7a06 | |
| parent | 2700df3c9d0c163bdc5513bd0a86a783efb3c4cf (diff) | |
Clarify the intention of `false &&`
| -rw-r--r-- | tool/ruby_vm/views/_mjit_compile_send.erb | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
