Skip to content

Commit 5512353

Browse files
committed
Remove reverse VM instruction
This was previously only used by the multiple assignment code, but is no longer needed after the multiple assignment execution order fix.
1 parent 9dbd096 commit 5512353

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

insns.def

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -592,25 +592,6 @@ swap
592592
/* none */
593593
}
594594

595-
/* reverse stack top N order. */
596-
DEFINE_INSN
597-
reverse
598-
(rb_num_t n)
599-
(...)
600-
(...)
601-
// attr rb_snum_t sp_inc = 0;
602-
{
603-
rb_num_t i;
604-
VALUE *sp = STACK_ADDR_FROM_TOP(n);
605-
606-
for (i=0; i<n/2; i++) {
607-
VALUE v0 = sp[i];
608-
VALUE v1 = TOPN(i);
609-
sp[i] = v1;
610-
TOPN(i) = v0;
611-
}
612-
}
613-
614595
/* for stack caching. */
615596
DEFINE_INSN_IF(STACK_CACHING)
616597
reput

0 commit comments

Comments
 (0)