mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
comment for r52633 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a23f0695a
commit
40b0dd1ce1
1 changed files with 17 additions and 0 deletions
17
compile.c
17
compile.c
|
@ -2032,6 +2032,23 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal
|
||||||
replace_destination(iobj, nobj);
|
replace_destination(iobj, nobj);
|
||||||
}
|
}
|
||||||
else if (pobj) {
|
else if (pobj) {
|
||||||
|
/*
|
||||||
|
* putnil
|
||||||
|
* if L1
|
||||||
|
* =>
|
||||||
|
* # nothing
|
||||||
|
*
|
||||||
|
* putobject true
|
||||||
|
* if L1
|
||||||
|
* =>
|
||||||
|
* jump L1
|
||||||
|
*
|
||||||
|
* putstring ".."
|
||||||
|
* if L1
|
||||||
|
* =>
|
||||||
|
* jump L1
|
||||||
|
*
|
||||||
|
*/
|
||||||
int cond;
|
int cond;
|
||||||
if (pobj->insn_id == BIN(putobject)) {
|
if (pobj->insn_id == BIN(putobject)) {
|
||||||
cond = (iobj->insn_id == BIN(branchif) ?
|
cond = (iobj->insn_id == BIN(branchif) ?
|
||||||
|
|
Loading…
Add table
Reference in a new issue