@@ -841,7 +841,7 @@ genjmp2(codegen_scope *s, mrb_code i, uint16_t a, uint32_t pc, int val)
841841 }
842842 break ;
843843 case OP_LOADNIL :
844- case OP_LOADF :
844+ case OP_LOADFALSE :
845845 if (data .a == a || data .a > s -> nlocals ) {
846846 s -> pc = addr_pc (s , data .addr );
847847 if (i == OP_JMPNOT || (i == OP_JMPNIL && data .insn == OP_LOADNIL )) {
@@ -852,7 +852,7 @@ genjmp2(codegen_scope *s, mrb_code i, uint16_t a, uint32_t pc, int val)
852852 }
853853 }
854854 break ;
855- case OP_LOADT : case OP_LOADI8 : case OP_LOADINEG : case OP_LOADI__1 :
855+ case OP_LOADTRUE : case OP_LOADI8 : case OP_LOADINEG : case OP_LOADI__1 :
856856 case OP_LOADI_0 : case OP_LOADI_1 : case OP_LOADI_2 : case OP_LOADI_3 :
857857 case OP_LOADI_4 : case OP_LOADI_5 : case OP_LOADI_6 : case OP_LOADI_7 :
858858 if (data .a == a || data .a > s -> nlocals ) {
@@ -937,7 +937,7 @@ gen_move(codegen_scope *s, uint16_t dst, uint16_t src, int nopeep)
937937 return ;
938938 }
939939 break ;
940- case OP_LOADNIL : case OP_LOADSELF : case OP_LOADT : case OP_LOADF :
940+ case OP_LOADNIL : case OP_LOADSELF : case OP_LOADTRUE : case OP_LOADFALSE :
941941 case OP_LOADI__1 :
942942 case OP_LOADI_0 : case OP_LOADI_1 : case OP_LOADI_2 : case OP_LOADI_3 :
943943 case OP_LOADI_4 : case OP_LOADI_5 : case OP_LOADI_6 : case OP_LOADI_7 :
@@ -2733,10 +2733,10 @@ gen_literal_to_reg(codegen_scope *s, node *n, int reg)
27332733 genop_1 (s , OP_LOADNIL , reg );
27342734 break ;
27352735 case NODE_TRUE :
2736- genop_1 (s , OP_LOADT , reg );
2736+ genop_1 (s , OP_LOADTRUE , reg );
27372737 break ;
27382738 case NODE_FALSE :
2739- genop_1 (s , OP_LOADF , reg );
2739+ genop_1 (s , OP_LOADFALSE , reg );
27402740 break ;
27412741 default :
27422742 break ;
@@ -5409,7 +5409,7 @@ codegen_op_asgn(codegen_scope *s, node *varnode, int val)
54095409 lp -> type = LOOP_RESCUE ;
54105410 catch_handler_set (s , catch_entry , MRB_CATCH_RESCUE , begin , end , s -> pc );
54115411 genop_1 (s , OP_EXCEPT , exc );
5412- genop_1 (s , OP_LOADF , exc );
5412+ genop_1 (s , OP_LOADFALSE , exc );
54135413 dispatch (s , noexc );
54145414 loop_pop (s , NOVAL );
54155415 }
@@ -5728,15 +5728,15 @@ codegen_nil(codegen_scope *s, node *varnode, int val)
57285728static void
57295729codegen_true (codegen_scope * s , node * varnode , int val )
57305730{
5731- /* Generate OP_LOADT instruction for true literal */
5732- gen_load_op1 (s , OP_LOADT , val );
5731+ /* Generate OP_LOADTRUE instruction for true literal */
5732+ gen_load_op1 (s , OP_LOADTRUE , val );
57335733}
57345734
57355735static void
57365736codegen_false (codegen_scope * s , node * varnode , int val )
57375737{
5738- /* Generate OP_LOADF instruction for false literal */
5739- gen_load_op1 (s , OP_LOADF , val );
5738+ /* Generate OP_LOADFALSE instruction for false literal */
5739+ gen_load_op1 (s , OP_LOADFALSE , val );
57405740}
57415741
57425742static void
@@ -6579,7 +6579,7 @@ codegen(codegen_scope *s, node *tree, int val)
65796579 gen_load_nil (s , 1 );
65806580 }
65816581 else {
6582- genop_1 (s , OP_LOADT , cursp ());
6582+ genop_1 (s , OP_LOADTRUE , cursp ());
65836583 push ();
65846584 }
65856585 }
@@ -6625,7 +6625,7 @@ codegen(codegen_scope *s, node *tree, int val)
66256625 gen_load_nil (s , 1 ); /* '=>' pattern returns nil */
66266626 }
66276627 else {
6628- genop_1 (s , OP_LOADT , cursp ()); /* 'in' pattern returns true */
6628+ genop_1 (s , OP_LOADTRUE , cursp ()); /* 'in' pattern returns true */
66296629 push ();
66306630 }
66316631 }
@@ -6664,7 +6664,7 @@ codegen(codegen_scope *s, node *tree, int val)
66646664 gen_load_nil (s , 1 );
66656665 }
66666666 else {
6667- genop_1 (s , OP_LOADT , cursp ());
6667+ genop_1 (s , OP_LOADTRUE , cursp ());
66686668 push ();
66696669 }
66706670 }
@@ -6701,13 +6701,13 @@ codegen(codegen_scope *s, node *tree, int val)
67016701 pop (); /* pop the value */
67026702 if (mp -> raise_on_fail ) {
67036703 /* expr => pattern: raise NoMatchingPatternError */
6704- genop_1 (s , OP_LOADF , cursp ()); /* Load false for MATCHERR */
6704+ genop_1 (s , OP_LOADFALSE , cursp ()); /* Load false for MATCHERR */
67056705 genop_1 (s , OP_MATCHERR , cursp ());
67066706 }
67076707 else {
67086708 /* expr in pattern: return false */
67096709 if (val ) {
6710- genop_1 (s , OP_LOADF , cursp ());
6710+ genop_1 (s , OP_LOADFALSE , cursp ());
67116711 push ();
67126712 }
67136713 }
@@ -6726,7 +6726,7 @@ codegen(codegen_scope *s, node *tree, int val)
67266726 gen_load_nil (s , 1 ); /* '=>' pattern returns nil */
67276727 }
67286728 else {
6729- genop_1 (s , OP_LOADT , cursp ()); /* 'in' pattern returns true */
6729+ genop_1 (s , OP_LOADTRUE , cursp ()); /* 'in' pattern returns true */
67306730 push ();
67316731 }
67326732 }
0 commit comments