ruby-changes:40555
From: nobu <ko1@a...>
Date: Wed, 18 Nov 2015 16:09:40 +0900 (JST)
Subject: [ruby-changes:40555] nobu:r52634 (trunk): comment for r52633 [ci skip]
nobu 2015-11-18 16:09:27 +0900 (Wed, 18 Nov 2015) New Revision: 52634 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52634 Log: comment for r52633 [ci skip] Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 52633) +++ compile.c (revision 52634) @@ -2032,6 +2032,23 @@ iseq_peephole_optimize(rb_iseq_t *iseq, https://github.com/ruby/ruby/blob/trunk/compile.c#L2032 replace_destination(iobj, nobj); } else if (pobj) { + /* + * putnil + * if L1 + * => + * # nothing + * + * putobject true + * if L1 + * => + * jump L1 + * + * putstring ".." + * if L1 + * => + * jump L1 + * + */ int cond; if (pobj->insn_id == BIN(putobject)) { cond = (iobj->insn_id == BIN(branchif) ? -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/