mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-03 21:17:31 +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
|
|
@ -760,12 +760,12 @@ BaselineScript::icEntryFromReturnAddress(uint8_t* returnAddr)
|
|||
}
|
||||
|
||||
void
|
||||
BaselineScript::copyYieldEntries(JSScript* script, Vector<uint32_t>& yieldOffsets)
|
||||
BaselineScript::copyYieldAndAwaitEntries(JSScript* script, Vector<uint32_t>& yieldAndAwaitOffsets)
|
||||
{
|
||||
uint8_t** entries = yieldEntryList();
|
||||
|
||||
for (size_t i = 0; i < yieldOffsets.length(); i++) {
|
||||
uint32_t offset = yieldOffsets[i];
|
||||
for (size_t i = 0; i < yieldAndAwaitOffsets.length(); i++) {
|
||||
uint32_t offset = yieldAndAwaitOffsets[i];
|
||||
entries[i] = nativeCodeForPC(script, script->offsetToPC(offset));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue