mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 03:57:30 +09:00
Bug 1320388: Move JSFunction::HAS_REST to JSScript and LazyScript
Issue #78 [Depends on] Bug 883377: Implement ES6 function "name" property semantics
This commit is contained in:
parent
d3ffa46e36
commit
e7ee7caf1e
16 changed files with 52 additions and 37 deletions
|
|
@ -1053,7 +1053,7 @@ BytecodeEmitter::EmitterScope::enterFunction(BytecodeEmitter* bce, FunctionBox*
|
|||
if (p) {
|
||||
MOZ_ASSERT(bi.kind() == BindingKind::FormalParameter);
|
||||
MOZ_ASSERT(!funbox->hasDestructuringArgs);
|
||||
MOZ_ASSERT(!funbox->function()->hasRest());
|
||||
MOZ_ASSERT(!funbox->hasRest());
|
||||
p->value() = loc;
|
||||
continue;
|
||||
}
|
||||
|
|
@ -8017,7 +8017,7 @@ BytecodeEmitter::isRestParameter(ParseNode* pn, bool* result)
|
|||
|
||||
FunctionBox* funbox = sc->asFunctionBox();
|
||||
RootedFunction fun(cx, funbox->function());
|
||||
if (!fun->hasRest()) {
|
||||
if (!funbox->hasRest()) {
|
||||
*result = false;
|
||||
return true;
|
||||
}
|
||||
|
|
@ -8960,7 +8960,7 @@ BytecodeEmitter::emitFunctionFormalParameters(ParseNode* pn)
|
|||
EmitterScope* funScope = innermostEmitterScope;
|
||||
|
||||
bool hasParameterExprs = funbox->hasParameterExprs;
|
||||
bool hasRest = funbox->function()->hasRest();
|
||||
bool hasRest = funbox->hasRest();
|
||||
|
||||
uint16_t argSlot = 0;
|
||||
for (ParseNode* arg = pn->pn_head; arg != funBody; arg = arg->pn_next, argSlot++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue