diff options
author | Jeremy Evans <code@jeremyevans.net> | 2021-04-21 12:35:32 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2021-04-21 16:29:26 -0700 |
commit | 5512353d97250e85c13bf10b9b32e750478cf474 (patch) | |
tree | 1335f4b7f733b3f0da244f2851bfbd9f5c43fe96 /insns.def | |
parent | 9dbd0969e71b9b71c9e28bec9ff19697cbd1dd6d (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.def | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -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 |