feat: async/await 语法支持(AWAIT 帧快照挂起/恢复 + 微任务驱动 + AsyncFunction intrinsics)

This commit is contained in:
2026-08-09 22:02:15 +08:00
parent 538a5670dc
commit fd47cd56d0
28 changed files with 1055 additions and 28 deletions
+2
View File
@@ -203,6 +203,8 @@ define_opcodes! {
SUSPEND_BODY = 0x77 => "SUSPEND_BODY",
// `yield*` 委托:rd=内层可迭代对象;委托完成值经 reg 0 交付(与 YIELD 同协议)。
YIELD_STAR = 0x78 => "YIELD_STAR",
// `await`:rd=被等待的值(PromiseResolve 包装);挂起异步帧,恢复值经 reg 0 交付。
AWAIT = 0x79 => "AWAIT",
// ── 位运算 (0x80-0x8F) ──
BIT_AND = 0x80 => "BIT_AND",