Merge pull request #6121 from dearblue/separate-breaks

Separate unwinding process for `break` / `return`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-12-22 16:12:12 +09:00
committed by GitHub
2 changed files with 89 additions and 87 deletions
-4
View File
@@ -19,10 +19,6 @@ enum mrb_insn {
#define OP_L_LAMBDA (OP_L_STRICT|OP_L_CAPTURE)
#define OP_L_BLOCK OP_L_CAPTURE
#define OP_R_NORMAL 0
#define OP_R_BREAK 1
#define OP_R_RETURN 2
#define PEEK_B(pc) (*(pc))
#define PEEK_S(pc) ((pc)[0]<<8|(pc)[1])
#define PEEK_W(pc) ((pc)[0]<<16|(pc)[1]<<8|(pc)[2])