Skip to content

Commit abc12ca

Browse files
authored
Merge pull request mruby#6602 from dearblue/iseq
2 parents 61a7970 + 8064d45 commit abc12ca

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/class.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4125,14 +4125,14 @@ inspect_main(mrb_state *mrb, mrb_value mod)
41254125
}
41264126

41274127
static const mrb_code new_iseq[] = {
4128-
OP_ENTER, 0x0, 0x10, 0x3, // OP_ENTER 0:0:1:0:0:1:1
4129-
OP_SSEND, 4, 0, 0, // OP_SSEND R4 :allocate n=0
4130-
OP_MOVE, 0, 4, // OP_MOVE R0 R4
4131-
OP_MOVE, 4, 3, // OP_MOVE R4 R3 (&)
4132-
OP_MOVE, 3, 2, // OP_MOVE R3 R2 (**)
4133-
OP_MOVE, 2, 1, // OP_MOVE R2 R1 (*)
4134-
OP_SSENDB, 1, 1, 255, // OP_SSENDB R1 :initialize n=*|nk=*
4135-
OP_RETURN, 0 // OP_RETURN R0
4128+
OP_ENTER, 0x0, 0x10, 0x3, // 000 OP_ENTER 0:0:1:0:0:1:1
4129+
OP_SSEND, 4, 0, 0, // 004 OP_SSEND R4 :allocate n=0
4130+
OP_MOVE, 0, 4, // 008 OP_MOVE R0 R4
4131+
OP_MOVE, 4, 3, // 011 OP_MOVE R4 R3 ; &
4132+
OP_MOVE, 3, 2, // 014 OP_MOVE R3 R2 ; **
4133+
OP_MOVE, 2, 1, // 017 OP_MOVE R2 R1 ; *
4134+
OP_SSENDB, 1, 1, 255, // 020 OP_SSENDB R1 :initialize n=*|nk=*
4135+
OP_RETURN, 0 // 024 OP_RETURN R0
41364136
};
41374137

41384138
MRB_PRESYM_DEFINE_VAR_AND_INITER(new_syms, 2, MRB_SYM(allocate), MRB_SYM(initialize))
@@ -4160,13 +4160,13 @@ init_class_new(mrb_state *mrb, struct RClass *cls)
41604160
}
41614161

41624162
static const mrb_code neq_iseq[] = {
4163-
OP_ENTER, 0x4, 0, 0, // OP_ENTER 1:0:0:0:0:0:0
4164-
OP_EQ, 0, // OP_EQ R0 (R1)
4165-
OP_JMPNOT, 0, 0, 5, // OP_JMPNOT R3 016
4166-
OP_LOADF, 0, // OP_LOADF R0 (true)
4167-
OP_JMP, 0, 2, // OP_JMP R1 018
4168-
OP_LOADT, 0, // OP_LOADT R3 (true)
4169-
OP_RETURN, 0 // OP_RETURN R0
4163+
OP_ENTER, 0x4, 0, 0, // 000 OP_ENTER 1:0:0:0:0:0:0
4164+
OP_EQ, 0, // 004 OP_EQ R0 (R1)
4165+
OP_JMPNOT, 0, 0, 5, // 006 OP_JMPNOT R0 015
4166+
OP_LOADF, 0, // 010 OP_LOADF R0 (false)
4167+
OP_JMP, 0, 2, // 012 OP_JMP 017
4168+
OP_LOADT, 0, // 015 OP_LOADT R0 (true)
4169+
OP_RETURN, 0 // 017 OP_RETURN R0
41704170
};
41714171

41724172
static const mrb_irep neq_irep = {

0 commit comments

Comments
 (0)