Add annotation setup

This commit is contained in:
lynskylate committed 2020-07-08 01:06:12 +08:00
1 parent 3945c31f4f
commit a310f3c245
3 files changed
+23 -23

No files matched your search

+2
View File
@@ -205,6 +205,7 @@ pub enum Instruction {
ReturnValue,
YieldValue,
YieldFrom,
SetupAnnotation,
SetupLoop {
start: Label,
end: Label,
@@ -570,6 +571,7 @@ impl Instruction {
ReturnValue => w!(ReturnValue),
YieldValue => w!(YieldValue),
YieldFrom => w!(YieldFrom),
SetupAnnotation => w!(SetupAnnotation),
SetupLoop { start, end } => w!(SetupLoop, label_map[start], label_map[end]),
SetupExcept { handler } => w!(SetupExcept, label_map[handler]),
SetupFinally { handler } => w!(SetupFinally, label_map[handler]),