зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1599936 - Rename JSFunction::initSelfHostLazyScript. r=jandem
This should have been 'initSelfHostedLazyScript' all along for consistency with other method names. Depends on D55053 Differential Revision: https://phabricator.services.mozilla.com/D55054 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
9dbbb30692
Коммит
0fd34ab598
|
@ -2260,7 +2260,7 @@ JSFunction* js::CloneFunctionReuseScript(
|
|||
MOZ_ASSERT(fun->hasSelfHostedLazyScript());
|
||||
MOZ_ASSERT(fun->compartment() == clone->compartment());
|
||||
SelfHostedLazyScript* lazy = fun->selfHostedLazyScript();
|
||||
clone->initSelfHostLazyScript(lazy);
|
||||
clone->initSelfHostedLazyScript(lazy);
|
||||
clone->initEnvironment(enclosingEnv);
|
||||
}
|
||||
|
||||
|
|
|
@ -809,7 +809,7 @@ class JSFunction : public js::NativeObject {
|
|||
MOZ_ASSERT(hasLazyScript());
|
||||
}
|
||||
|
||||
void initSelfHostLazyScript(js::SelfHostedLazyScript* lazy) {
|
||||
void initSelfHostedLazyScript(js::SelfHostedLazyScript* lazy) {
|
||||
MOZ_ASSERT(isInterpreted());
|
||||
flags_.clearInterpreted();
|
||||
flags_.setInterpretedLazy();
|
||||
|
|
|
@ -3080,7 +3080,7 @@ bool JSRuntime::createLazySelfHostedFunctionClone(
|
|||
return false;
|
||||
}
|
||||
fun->setIsSelfHostedBuiltin();
|
||||
fun->initSelfHostLazyScript(&cx->runtime()->selfHostedLazyScript.ref());
|
||||
fun->initSelfHostedLazyScript(&cx->runtime()->selfHostedLazyScript.ref());
|
||||
SetClonedSelfHostedFunctionName(fun, selfHostedName);
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче