feat: add managed types, source classes and scoped native calls

This commit is contained in:
2026-10-21 01:47:08 +08:00
parent 7c842789c0
commit a970fd7707
48 changed files with 2069 additions and 134 deletions
+3
View File
@@ -34,6 +34,7 @@ pub enum Opcode {
StoreAttr = 26,
BuildMap = 27,
MakeFunction = 28,
BuildClass = 29,
ExtendedArg = 255,
}
@@ -69,6 +70,7 @@ impl Opcode {
26 => Self::StoreAttr,
27 => Self::BuildMap,
28 => Self::MakeFunction,
29 => Self::BuildClass,
255 => Self::ExtendedArg,
_ => return None,
})
@@ -83,6 +85,7 @@ impl Opcode {
| Self::ReturnValue
| Self::ToBool
| Self::UnaryNot
| Self::BuildClass
)
}
}