Removed unused instruction: OP_KDICT.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-07-31 03:20:00 +09:00
parent 53e2723fae
commit 43173e1299
3 changed files with 0 additions and 10 deletions
-1
View File
@@ -66,7 +66,6 @@ OPCODE(ENTER, W) /* arg setup according to flags (23=m5:o5:r1:m5:k5:
OPCODE(KEY_P, BB) /* R(a) = kdict.key?(Syms(b)) # todo */
OPCODE(KEYEND, Z) /* raise unless kdict.empty? # todo */
OPCODE(KARG, BB) /* R(a) = kdict[Syms(b)]; kdict.delete(Syms(b)) # todo */
OPCODE(KDICT, B) /* R(a) = kdict # todo */
OPCODE(RETURN, B) /* return R(a) (normal) */
OPCODE(RETURN_BLK, B) /* return R(a) (in-block return) */
OPCODE(BREAK, B) /* break R(a) */
-4
View File
@@ -285,10 +285,6 @@ codedump(mrb_state *mrb, mrb_irep *irep)
printf("OP_KARG\tR%d\t:%s\t", a, mrb_sym2name(mrb, irep->syms[b]));
print_lv_a(mrb, irep, a);
break;
CASE(OP_KDICT, B):
printf("OP_KDICT\tR%d\t\t", a);
print_lv_a(mrb, irep, a);
break;
CASE(OP_RETURN, B):
printf("OP_RETURN\tR%d\t\t", a);
print_lv_a(mrb, irep, a);
-5
View File
@@ -1872,11 +1872,6 @@ RETRY_TRY_BLOCK:
NEXT;
}
CASE(OP_KDICT, B) {
regs[a] = regs[mrb->c->ci->argc];
NEXT;
}
CASE(OP_BREAK, B) {
c = OP_R_BREAK;
goto L_RETURN;