mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
parent
b5bcbfe58c
commit
67b8cd621a
12 changed files with 94 additions and 0 deletions
|
|
@ -2130,6 +2130,9 @@ IonBuilder::inspectOpcode(JSOp op)
|
|||
case JSOP_TOASYNC:
|
||||
return jsop_toasync();
|
||||
|
||||
case JSOP_TOASYNCGEN:
|
||||
return jsop_toasyncgen();
|
||||
|
||||
case JSOP_TOID:
|
||||
return jsop_toid();
|
||||
|
||||
|
|
@ -13193,6 +13196,20 @@ IonBuilder::jsop_toasync()
|
|||
return resumeAfter(ins);
|
||||
}
|
||||
|
||||
bool
|
||||
IonBuilder::jsop_toasyncgen()
|
||||
{
|
||||
MDefinition* unwrapped = current->pop();
|
||||
MOZ_ASSERT(unwrapped->type() == MIRType::Object);
|
||||
|
||||
MToAsyncGen* ins = MToAsyncGen::New(alloc(), unwrapped);
|
||||
|
||||
current->add(ins);
|
||||
current->push(ins);
|
||||
|
||||
return resumeAfter(ins);
|
||||
}
|
||||
|
||||
bool
|
||||
IonBuilder::jsop_toid()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue