mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-03 13:07:31 +09:00
Bug 1316098 - Optimize out result object allocation for await/return in async function.
Tag #1287
This commit is contained in:
parent
c1bdfa62fc
commit
c9f1fa2cda
10 changed files with 39 additions and 138 deletions
|
|
@ -2130,12 +2130,12 @@
|
|||
*/ \
|
||||
macro(JSOP_DEBUGAFTERYIELD, 208, "debugafteryield", NULL, 1, 0, 0, JOF_BYTE) \
|
||||
/*
|
||||
* Pops the generator and the return value 'result', stops interpretation
|
||||
* and returns 'result'. Pushes resolved value onto the stack.
|
||||
* Pops the generator and the return value 'promise', stops interpretation
|
||||
* and returns 'promise'. Pushes resolved value onto the stack.
|
||||
* Category: Statements
|
||||
* Type: Generator
|
||||
* Operands: uint24_t yieldAndAwaitIndex
|
||||
* Stack: result, gen => resolved
|
||||
* Stack: promise, gen => resolved
|
||||
*/ \
|
||||
macro(JSOP_AWAIT, 209, "await", NULL, 4, 2, 1, JOF_UINT24) \
|
||||
macro(JSOP_UNUSED210, 210, "unused210", NULL, 1, 0, 0, JOF_BYTE) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue