зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1569315 - Follow-up formatting nits. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D41060 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
dca3914d0f
Коммит
928abb3fc4
|
@ -395,12 +395,11 @@ JS::Result<Ok> BinASTParserPerTokenizer<Tok>::finishLazyFunction(
|
|||
funbox->setArgCount(nargs);
|
||||
funbox->synchronizeArgCount();
|
||||
|
||||
BINJS_TRY_DECL(lazy, LazyScript::Create(cx_, fun, sourceObject_,
|
||||
pc_->closedOverBindingsForLazy(),
|
||||
pc_->innerFunctionBoxesForLazy,
|
||||
start, end, start, end,
|
||||
/* lineno = */ 0, start,
|
||||
ParseGoal::Script));
|
||||
BINJS_TRY_DECL(lazy,
|
||||
LazyScript::Create(
|
||||
cx_, fun, sourceObject_, pc_->closedOverBindingsForLazy(),
|
||||
pc_->innerFunctionBoxesForLazy, start, end, start, end,
|
||||
/* lineno = */ 0, start, ParseGoal::Script));
|
||||
|
||||
if (funbox->strict()) {
|
||||
lazy->setStrict();
|
||||
|
|
|
@ -662,10 +662,12 @@ bool frontend::StandaloneFunctionCompiler<Unit>::compile(
|
|||
if (!parser->publishDeferredItems()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Maybe<BytecodeEmitter> emitter;
|
||||
if (!emplaceEmitter(info, emitter, funbox)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!emitter->emitFunctionScript(parsedFunction,
|
||||
BytecodeEmitter::TopLevelFunction::Yes)) {
|
||||
return false;
|
||||
|
|
|
@ -40,7 +40,6 @@ struct FunctionCreationData {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
} /* namespace frontend */
|
||||
} /* namespace js */
|
||||
|
||||
|
|
|
@ -2161,9 +2161,9 @@ JSFunction* AllocNewFunction(JSContext* cx,
|
|||
}
|
||||
RootedFunction fun(cx);
|
||||
|
||||
|
||||
fun = NewFunctionWithProto(cx, nullptr, 0, data.flags, nullptr, data.getAtom(cx), proto,
|
||||
data.allocKind, TenuredObject);
|
||||
fun = NewFunctionWithProto(cx, nullptr, 0, data.flags, nullptr,
|
||||
data.getAtom(cx), proto, data.allocKind,
|
||||
TenuredObject);
|
||||
if (!fun) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
@ -2018,10 +2018,12 @@ mozilla::Maybe<LexicalScope::Data*> NewLexicalScopeData(
|
|||
JSContext* context, ParseContext::Scope& scope, LifoAlloc& alloc,
|
||||
ParseContext* pc);
|
||||
|
||||
FunctionCreationData GenerateFunctionCreationData(
|
||||
HandleAtom atom, FunctionSyntaxKind kind, GeneratorKind generatorKind,
|
||||
FunctionAsyncKind asyncKind, bool isSelfHosting = false,
|
||||
bool inFunctionBox = false);
|
||||
FunctionCreationData GenerateFunctionCreationData(HandleAtom atom,
|
||||
FunctionSyntaxKind kind,
|
||||
GeneratorKind generatorKind,
|
||||
FunctionAsyncKind asyncKind,
|
||||
bool isSelfHosting = false,
|
||||
bool inFunctionBox = false);
|
||||
|
||||
JSFunction* AllocNewFunction(JSContext* cx,
|
||||
Handle<FunctionCreationData> dataHandle);
|
||||
|
|
Загрузка…
Ссылка в новой задаче