summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-04-21 12:35:32 -0700
committerJeremy Evans <code@jeremyevans.net>2021-04-21 16:29:26 -0700
commit5512353d97250e85c13bf10b9b32e750478cf474 (patch)
tree1335f4b7f733b3f0da244f2851bfbd9f5c43fe96 /insns.def
parent9dbd0969e71b9b71c9e28bec9ff19697cbd1dd6d (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4398
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def19
1 files changed, 0 insertions, 19 deletions
diff --git a/insns.def b/insns.def
index 5704bf44e7..aab53e3ff7 100644
--- a/insns.def
+++ b/insns.def
@@ -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