ruby-changes:52580
From: mame <ko1@a...>
Date: Thu, 20 Sep 2018 16:36:15 +0900 (JST)
Subject: [ruby-changes:52580] mame:r64792 (trunk): * compile.c (compile_case): emit opt_case_dispatch only on optimized mode
mame 2018-09-20 16:36:10 +0900 (Thu, 20 Sep 2018) New Revision: 64792 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64792 Log: * compile.c (compile_case): emit opt_case_dispatch only on optimized mode Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 64791) +++ compile.c (revision 64792) @@ -5095,7 +5095,7 @@ compile_case(rb_iseq_t *iseq, LINK_ANCHO https://github.com/ruby/ruby/blob/trunk/compile.c#L5095 ADD_INSNL(cond_seq, nd_line(orig_node), jump, endlabel); } - if (only_special_literals) { + if (only_special_literals && ISEQ_COMPILE_DATA(iseq)->option->specialized_instruction) { iseq_add_mark_object_compile_time(iseq, literals); ADD_INSN(ret, nd_line(orig_node), dup); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/