ruby-changes:63701
From: Takashi <ko1@a...>
Date: Mon, 23 Nov 2020 15:10:26 +0900 (JST)
Subject: [ruby-changes:63701] 1fea0367d2 (master): Clarify the intention of `false &&`
https://git.ruby-lang.org/ruby.git/commit/?id=1fea0367d2 From 1fea0367d2a09130af71a8304601b4006e552dee Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 22 Nov 2020 22:09:41 -0800 Subject: Clarify the intention of `false &&` diff --git a/tool/ruby_vm/views/_mjit_compile_send.erb b/tool/ruby_vm/views/_mjit_compile_send.erb index 2dff016..01ae593 100644 --- a/tool/ruby_vm/views/_mjit_compile_send.erb +++ b/tool/ruby_vm/views/_mjit_compile_send.erb @@ -30,7 +30,8 @@ https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/views/_mjit_compile_send.erb#L30 && 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); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/