Project

General

Profile

Actions

Bug #9227

closed

use opt_aset ?

Added by tmm1 (Aman Karmani) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Target version:
ruby -v:
trunk
[ruby-core:58956]

Description

I noticed we have an opt_aset instruction, but nothing is using it. Is there some reason?

diff --git a/compile.c b/compile.c
index 812f692..9d9f14f 100644
--- a/compile.c
+++ b/compile.c
@@ -1955,6 +1955,11 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
case idAREF: SP_INSN(aref); return COMPILE_OK;
}
break;

  •         case 2:
    
  •           switch (ci->mid) {
    
  •               case idASET: SP_INSN(aset);   return COMPILE_OK;
    
  •           }
    
  •           break;
          }
      }
      if (ci->flag & VM_CALL_ARGS_SKIP_SETUP) {
    
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0