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.
This commit is contained in:
Jeremy Evans 2021-04-21 12:35:32 -07:00
parent 9dbd0969e7
commit 5512353d97
Notes: git 2021-04-22 08:29:53 +09:00

View File

@ -592,25 +592,6 @@ swap
/* none */
}
/* reverse stack top N order. */
DEFINE_INSN
reverse
(rb_num_t n)
(...)
(...)
// attr rb_snum_t sp_inc = 0;
{
rb_num_t i;
VALUE *sp = STACK_ADDR_FROM_TOP(n);
for (i=0; i<n/2; i++) {
VALUE v0 = sp[i];
VALUE v1 = TOPN(i);
sp[i] = v1;
TOPN(i) = v0;
}
}
/* for stack caching. */
DEFINE_INSN_IF(STACK_CACHING)
reput