align indent of local variable names in codedump()

parent 2c04f402
...@@ -2758,7 +2758,7 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -2758,7 +2758,7 @@ codedump(mrb_state *mrb, mrb_irep *irep)
printf("OP_NOP\n"); printf("OP_NOP\n");
break; break;
case OP_MOVE: case OP_MOVE:
printf("OP_MOVE\tR%d\tR%d", GETARG_A(c), GETARG_B(c)); printf("OP_MOVE\tR%d\tR%d\t", GETARG_A(c), GETARG_B(c));
print_lv(mrb, irep, c, RAB); print_lv(mrb, irep, c, RAB);
break; break;
case OP_LOADL: case OP_LOADL:
...@@ -2770,7 +2770,7 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -2770,7 +2770,7 @@ codedump(mrb_state *mrb, mrb_irep *irep)
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_LOADI: case OP_LOADI:
printf("OP_LOADI\tR%d\t%d", GETARG_A(c), GETARG_sBx(c)); printf("OP_LOADI\tR%d\t%d\t", GETARG_A(c), GETARG_sBx(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_LOADSYM: case OP_LOADSYM:
...@@ -2779,19 +2779,19 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -2779,19 +2779,19 @@ codedump(mrb_state *mrb, mrb_irep *irep)
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_LOADNIL: case OP_LOADNIL:
printf("OP_LOADNIL\tR%d\t", GETARG_A(c)); printf("OP_LOADNIL\tR%d\t\t", GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_LOADSELF: case OP_LOADSELF:
printf("OP_LOADSELF\tR%d\t", GETARG_A(c)); printf("OP_LOADSELF\tR%d\t\t", GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_LOADT: case OP_LOADT:
printf("OP_LOADT\tR%d\t", GETARG_A(c)); printf("OP_LOADT\tR%d\t\t", GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_LOADF: case OP_LOADF:
printf("OP_LOADF\tR%d\t", GETARG_A(c)); printf("OP_LOADF\tR%d\t\t", GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_GETGLOBAL: case OP_GETGLOBAL:
...@@ -2800,7 +2800,7 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -2800,7 +2800,7 @@ codedump(mrb_state *mrb, mrb_irep *irep)
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_SETGLOBAL: case OP_SETGLOBAL:
printf("OP_SETGLOBAL\t:%s\tR%d", printf("OP_SETGLOBAL\t:%s\tR%d\t",
mrb_sym2name(mrb, irep->syms[GETARG_Bx(c)]), mrb_sym2name(mrb, irep->syms[GETARG_Bx(c)]),
GETARG_A(c)); GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
...@@ -2811,7 +2811,7 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -2811,7 +2811,7 @@ codedump(mrb_state *mrb, mrb_irep *irep)
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_SETCONST: case OP_SETCONST:
printf("OP_SETCONST\t:%s\tR%d", printf("OP_SETCONST\t:%s\tR%d\t",
mrb_sym2name(mrb, irep->syms[GETARG_Bx(c)]), mrb_sym2name(mrb, irep->syms[GETARG_Bx(c)]),
GETARG_A(c)); GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
...@@ -3008,11 +3008,11 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -3008,11 +3008,11 @@ codedump(mrb_state *mrb, mrb_irep *irep)
print_lv(mrb, irep, c, RAB); print_lv(mrb, irep, c, RAB);
break; break;
case OP_ARYCAT: case OP_ARYCAT:
printf("OP_ARYCAT\tR%d\tR%d", GETARG_A(c), GETARG_B(c)); printf("OP_ARYCAT\tR%d\tR%d\t", GETARG_A(c), GETARG_B(c));
print_lv(mrb, irep, c, RAB); print_lv(mrb, irep, c, RAB);
break; break;
case OP_ARYPUSH: case OP_ARYPUSH:
printf("OP_ARYPUSH\tR%d\tR%d", GETARG_A(c), GETARG_B(c)); printf("OP_ARYPUSH\tR%d\tR%d\t", GETARG_A(c), GETARG_B(c));
print_lv(mrb, irep, c, RAB); print_lv(mrb, irep, c, RAB);
break; break;
case OP_AREF: case OP_AREF:
...@@ -3032,7 +3032,7 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -3032,7 +3032,7 @@ codedump(mrb_state *mrb, mrb_irep *irep)
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_STRCAT: case OP_STRCAT:
printf("OP_STRCAT\tR%d\tR%d", GETARG_A(c), GETARG_B(c)); printf("OP_STRCAT\tR%d\tR%d\t", GETARG_A(c), GETARG_B(c));
print_lv(mrb, irep, c, RAB); print_lv(mrb, irep, c, RAB);
break; break;
case OP_HASH: case OP_HASH:
...@@ -3041,7 +3041,7 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -3041,7 +3041,7 @@ codedump(mrb_state *mrb, mrb_irep *irep)
break; break;
case OP_OCLASS: case OP_OCLASS:
printf("OP_OCLASS\tR%d", GETARG_A(c)); printf("OP_OCLASS\tR%d\t\t", GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_CLASS: case OP_CLASS:
...@@ -3059,11 +3059,11 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -3059,11 +3059,11 @@ codedump(mrb_state *mrb, mrb_irep *irep)
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_SCLASS: case OP_SCLASS:
printf("OP_SCLASS\tR%d\tR%d", GETARG_A(c), GETARG_B(c)); printf("OP_SCLASS\tR%d\tR%d\t", GETARG_A(c), GETARG_B(c));
print_lv(mrb, irep, c, RAB); print_lv(mrb, irep, c, RAB);
break; break;
case OP_TCLASS: case OP_TCLASS:
printf("OP_TCLASS\tR%d", GETARG_A(c)); printf("OP_TCLASS\tR%d\t\t", GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_ERR: case OP_ERR:
...@@ -3080,15 +3080,15 @@ codedump(mrb_state *mrb, mrb_irep *irep) ...@@ -3080,15 +3080,15 @@ codedump(mrb_state *mrb, mrb_irep *irep)
printf("OP_ONERR\t%03d\n", i+GETARG_sBx(c)); printf("OP_ONERR\t%03d\n", i+GETARG_sBx(c));
break; break;
case OP_RESCUE: case OP_RESCUE:
printf("OP_RESCUE\tR%d", GETARG_A(c)); printf("OP_RESCUE\tR%d\t\t", GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_RAISE: case OP_RAISE:
printf("OP_RAISE\tR%d", GETARG_A(c)); printf("OP_RAISE\tR%d\t\t", GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_POPERR: case OP_POPERR:
printf("OP_POPERR\t%d", GETARG_A(c)); printf("OP_POPERR\t%d\t\t", GETARG_A(c));
print_lv(mrb, irep, c, RA); print_lv(mrb, irep, c, RA);
break; break;
case OP_EPOP: case OP_EPOP:
......
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