Skip to content

Commit

Permalink
reorder opcodes since we added EXIT_LOOP
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Aug 3, 2022
1 parent 71dd3ec commit c519298
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ src/compiler.o: src/opcodes.h
src/debug.o: src/opcodes.h
src/value.o: src/opcodes.h
src/vm.o: src/opcodes.h
src/exceptions.o: src/opcodes.h


%.o: %.c ${HEADERS}
Expand Down
2 changes: 1 addition & 1 deletion src/opcodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SIMPLE(OP_INPLACE_FLOORDIV)
SIMPLE(OP_INPLACE_BITAND)
CONSTANT(OP_SET_GLOBAL,(void)0)
SIMPLE(OP_RAISE)
OPERAND(OP_EXIT_LOOP, (void)0)
OPERAND(OP_MAKE_STRING, (void)0)
SIMPLE(OP_INVOKE_AWAIT)
SIMPLE(OP_ADD)
Expand Down Expand Up @@ -110,5 +111,4 @@ OPERAND(OP_EXPAND_ARGS,EXPAND_ARGS_MORE)
SIMPLE(OP_INHERIT)
JUMP(OP_CALL_ITER,+)
JUMP(OP_JUMP_IF_TRUE_OR_POP,+)
OPERAND(OP_EXIT_LOOP, (void)0)
SIMPLE(OP_TRY_ELSE)

0 comments on commit c519298

Please sign in to comment.