ruby-changes:65916
From: Jeremy <ko1@a...>
Date: Thu, 22 Apr 2021 08:29:45 +0900 (JST)
Subject: [ruby-changes:65916] 5512353d97 (master): Remove reverse VM instruction
https://git.ruby-lang.org/ruby.git/commit/?id=5512353d97 From 5512353d97250e85c13bf10b9b32e750478cf474 Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Wed, 21 Apr 2021 12:35:32 -0700 Subject: 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. --- insns.def | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/insns.def b/insns.def index 5704bf4..aab53e3 100644 --- a/insns.def +++ b/insns.def @@ -592,25 +592,6 @@ swap https://github.com/ruby/ruby/blob/trunk/insns.def#L592 /* 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/