summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-04 13:52:20 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-04 13:52:20 +0000
commit08c8605de91d2f04dcb53672a2eca6bd3f77bb18 (patch)
tree95f15e8497aedf68c1f4707ae7578c8081ad1990 /iseq.c
parent326e22e14a7625fd947f038f8c3f2235a059d522 (diff)
* insns.def (getlocal, setlocal): remove old getlocal/setlocal
instructions and rename getdaynmic/setdynamic instructions to getlocal/setlocal. * compile.c: ditto. * iseq.c: remove TS_DINDEX. * vm_exec.h (dindex_t): remove type definition of `dindex_t'. * tool/instruction.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/iseq.c b/iseq.c
index a6f39bc1f7..9313f6f80e 100644
--- a/iseq.c
+++ b/iseq.c
@@ -981,16 +981,8 @@ insn_operand_intern(rb_iseq_t *iseq,
ret = rb_sprintf("%"PRIuVALUE, op);
break;
- case TS_LINDEX:
- {
- rb_iseq_t *liseq = iseq->local_iseq;
- int lidx = liseq->local_size - (int)op;
-
- ret = id_to_name(liseq->local_table[lidx], INT2FIX('*'));
- break;
- }
- case TS_DINDEX:{
- if (insn == BIN(getdynamic) || insn == BIN(setdynamic)) {
+ case TS_LINDEX:{
+ if (insn == BIN(getlocal) || insn == BIN(setlocal)) {
if (pnop) {
rb_iseq_t *diseq = iseq;
VALUE level = *pnop, i;
@@ -1312,7 +1304,7 @@ rb_iseq_disasm(VALUE self)
* 0004 putobject 2
* 0006 opt_plus <ic:1>
* 0008 dup
- * 0009 setdynamic num, 0
+ * 0009 setlocal num, 0
* 0012 leave
*
*/
@@ -1516,7 +1508,6 @@ iseq_data_to_ary(rb_iseq_t *iseq)
break;
}
case TS_LINDEX:
- case TS_DINDEX:
case TS_NUM:
rb_ary_push(ary, INT2FIX(*seq));
break;