ruby-changes:45874
From: nobu <ko1@a...>
Date: Mon, 13 Mar 2017 09:11:30 +0900 (JST)
Subject: [ruby-changes:45874] nobu:r57947 (trunk): compile.c: compile flip-flop
nobu 2017-03-13 09:11:25 +0900 (Mon, 13 Mar 2017) New Revision: 57947 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57947 Log: compile.c: compile flip-flop * compile.c (iseq_compile_each0): compile flip-flop directly. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 57946) +++ compile.c (revision 57947) @@ -6103,7 +6103,8 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L6103 LABEL *lend = NEW_LABEL(line); LABEL *ltrue = NEW_LABEL(line); LABEL *lfalse = NEW_LABEL(line); - compile_branch_condition(iseq, ret, node, ltrue, lfalse); + CHECK(compile_flip_flop(iseq, ret, node, type == NODE_FLIP2, + ltrue, lfalse)); ADD_INSNL(ret, line, jump, lend); ADD_LABEL(ret, ltrue); ADD_INSN1(ret, line, putobject, Qtrue); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/