Skip to content

Commit

Permalink
Remove reverse VM instruction
Browse files Browse the repository at this point in the history
This was previously only used by the multiple assignment code, but
is no longer needed after the multiple assignment execution order
fix.
  • Loading branch information
jeremyevans committed Apr 21, 2021
1 parent 9dbd096 commit 5512353
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions insns.def
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5512353

Please sign in to comment.