mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 22:08:40 +09:00
Bug 1343481 - Part 3: Add JSOP_AWAIT and rename {yieldIndex,yieldOffset} to {yieldAndAwaitIndex,yieldAndAwaitOffset}.
Tag #1287
This commit is contained in:
parent
45337018ef
commit
a6872d9ea3
16 changed files with 142 additions and 110 deletions
|
|
@ -735,7 +735,7 @@ bool
|
|||
NormalSuspend(JSContext* cx, HandleObject obj, BaselineFrame* frame, jsbytecode* pc,
|
||||
uint32_t stackDepth)
|
||||
{
|
||||
MOZ_ASSERT(*pc == JSOP_YIELD);
|
||||
MOZ_ASSERT(*pc == JSOP_YIELD || *pc == JSOP_AWAIT);
|
||||
|
||||
// Return value is still on the stack.
|
||||
MOZ_ASSERT(stackDepth >= 1);
|
||||
|
|
@ -816,7 +816,7 @@ GeneratorThrowOrClose(JSContext* cx, BaselineFrame* frame, Handle<GeneratorObjec
|
|||
// work. This function always returns false, so we're guaranteed to enter
|
||||
// the exception handler where we will clear the pc.
|
||||
JSScript* script = frame->script();
|
||||
uint32_t offset = script->yieldOffsets()[genObj->yieldIndex()];
|
||||
uint32_t offset = script->yieldAndAwaitOffsets()[genObj->yieldAndAwaitIndex()];
|
||||
frame->setOverridePc(script->offsetToPC(offset));
|
||||
|
||||
MOZ_ALWAYS_TRUE(DebugAfterYield(cx, frame));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue