Fix codedumper

parent 7d51a7bb
...@@ -328,38 +328,38 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -328,38 +328,38 @@ codedump(mrb_state *mrb, mrb_irep *irep)
CASE(OP_ALIAS, BB): CASE(OP_ALIAS, BB):
printf("OP_ALIAS\t:%s\t%s\n", mrb_sym2name(mrb, irep->syms[a]), mrb_sym2name(mrb, irep->syms[b])); printf("OP_ALIAS\t:%s\t%s\n", mrb_sym2name(mrb, irep->syms[a]), mrb_sym2name(mrb, irep->syms[b]));
break; break;
CASE(OP_ADD, BB): CASE(OP_ADD, B):
printf("OP_ADD\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b])); printf("OP_ADD\tR%d\t\n", a);
break; break;
CASE(OP_ADDI, BBB): CASE(OP_ADDI, BB):
printf("OP_ADDI\tR%d\t:%s\t%d\n", a, mrb_sym2name(mrb, irep->syms[b]), c); printf("OP_ADDI\tR%d\t%d\n", a, b);
break; break;
CASE(OP_SUB, BB): CASE(OP_SUB, B):
printf("OP_SUB\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b])); printf("OP_SUB\tR%d\t\n", a);
break; break;
CASE(OP_SUBI, BBB): CASE(OP_SUBI, BB):
printf("OP_SUBI\tR%d\t:%s\t%d\n", a, mrb_sym2name(mrb, irep->syms[b]), c); printf("OP_SUBI\tR%d\t%d\n", a, b);
break; break;
CASE(OP_MUL, BB): CASE(OP_MUL, B):
printf("OP_MUL\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b])); printf("OP_MUL\tR%d\t\n", a);
break; break;
CASE(OP_DIV, BB): CASE(OP_DIV, B):
printf("OP_DIV\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b])); printf("OP_DIV\tR%d\t\n", a);
break; break;
CASE(OP_LT, BB): CASE(OP_LT, B):
printf("OP_LT\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b])); printf("OP_LT\t\tR%d\t\n", a);
break; break;
CASE(OP_LE, BB): CASE(OP_LE, B):
printf("OP_LE\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b])); printf("OP_LE\t\tR%d\t\n", a);
break; break;
CASE(OP_GT, BB): CASE(OP_GT, B):
printf("OP_GT\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b])); printf("OP_GT\t\tR%d\t\n", a);
break; break;
CASE(OP_GE, BB): CASE(OP_GE, B):
printf("OP_GE\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b])); printf("OP_GE\t\tR%d\t\n", a);
break; break;
CASE(OP_EQ, BB): CASE(OP_EQ, B):
printf("OP_EQ\t\tR%d\t:%s\t\n", a, mrb_sym2name(mrb, irep->syms[b])); printf("OP_EQ\t\tR%d\t\n", a);
break; break;
CASE(OP_ARRAY, BB): CASE(OP_ARRAY, BB):
printf("OP_ARRAY\tR%d\t%d\t", a, b); printf("OP_ARRAY\tR%d\t%d\t", a, b);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment