Skip to content

Commit f6396f2

Browse files
committed
Fix bytecode definitions
1 parent 82394c3 commit f6396f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/interpreter/bytecodes.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const uint8_t Bytecode::bytecodeLengths[] = {
6060
3, // BC_POP_ARGUMENT
6161
2, // BC_POP_FIELD
6262
1, // BC_POP_FIELD_0
63-
2, // BC_POP_FIELD_1
63+
1, // BC_POP_FIELD_1
6464
2, // BC_SEND
6565
2, // BC_SUPER_SEND
6666
1, // BC_RETURN_LOCAL
@@ -71,14 +71,14 @@ const uint8_t Bytecode::bytecodeLengths[] = {
7171
3, // BC_JUMP_ON_FALSE_TOP_NIL
7272
3, // BC_JUMP_ON_TRUE_POP
7373
3, // BC_JUMP_ON_FALSE_POP
74-
3, // BC_JUMP_BACKWARDS
74+
3, // BC_JUMP_BACKWARD
7575

7676
3, // BC_JUMP2
7777
3, // BC_JUMP2_ON_TRUE_TOP_NIL
7878
3, // BC_JUMP2_ON_FALSE_TOP_NIL
7979
3, // BC_JUMP2_ON_TRUE_POP
8080
3, // BC_JUMP2_ON_FALSE_POP
81-
3, // BC_JUMP2_BACKWARDS
81+
3, // BC_JUMP2_BACKWARD
8282
};
8383

8484
const char* Bytecode::bytecodeNames[] = {
@@ -102,11 +102,11 @@ const char* Bytecode::bytecodeNames[] = {
102102
"RETURN_NON_LOCAL", "BC_JUMP ",
103103
"BC_JUMP_ON_TRUE_TOP_NIL", "BC_JUMP_ON_FALSE_TOP_NIL",
104104
"BC_JUMP_ON_TRUE_POP", "BC_JUMP_ON_FALSE_POP",
105-
"BC_JUMP_BACKWARDS",
105+
"BC_JUMP_BACKWARD",
106106

107107
"BC_JUMP2 ", "BC_JUMP2_ON_TRUE_TOP_NIL",
108108
"BC_JUMP2_ON_FALSE_TOP_NIL", "BC_JUMP2_ON_TRUE_POP",
109-
"BC_JUMP2_ON_FALSE_POP", "BC_JUMP2_BACKWARDS",
109+
"BC_JUMP2_ON_FALSE_POP", "BC_JUMP2_BACKWARD",
110110
};
111111

112112
bool IsJumpBytecode(uint8_t bc) {

0 commit comments

Comments
 (0)