зеркало из https://github.com/mozilla/gecko-dev.git
Bug 811562 - Decorate %_CallFunction arguments with JSOP_NOTEARG. (r=luke)
This commit is contained in:
Родитель
6792d95bd3
Коммит
a31497a086
|
@ -5382,11 +5382,15 @@ EmitCallOrNew(JSContext *cx, BytecodeEmitter *bce, ParseNode *pn, ptrdiff_t top)
|
|||
ParseNode *receiver = pn2->pn_next;
|
||||
if (!EmitTree(cx, bce, receiver))
|
||||
return false;
|
||||
if (Emit1(cx, bce, JSOP_NOTEARG) < 0)
|
||||
return false;
|
||||
bool oldEmittingForInit = bce->emittingForInit;
|
||||
bce->emittingForInit = false;
|
||||
for (ParseNode *argpn = receiver->pn_next; argpn != funNode; argpn = argpn->pn_next) {
|
||||
if (!EmitTree(cx, bce, argpn))
|
||||
return false;
|
||||
if (Emit1(cx, bce, JSOP_NOTEARG) < 0)
|
||||
return false;
|
||||
}
|
||||
bce->emittingForInit = oldEmittingForInit;
|
||||
argc -= 2;
|
||||
|
|
Загрузка…
Ссылка в новой задаче