summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-18 07:09:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-18 07:09:27 +0000
commit40b0dd1ce11393f87c92938417cc79f4dc0ee416 (patch)
tree1d59247cc1eb20ad4f49166b42b036205856e622 /compile.c
parent4a23f0695a40e735a2215ea9fbf7e388e384f051 (diff)
comment for r52633 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index ae900fbf31..2b4add1c16 100644
--- a/compile.c
+++ b/compile.c
@@ -2032,6 +2032,23 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal
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) ?