зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1506554 part 4 - Remove an unnecessary ensureHasTypes call in DebugEnvironmentProxyHandler::handleUnaliasedAccess. r=bhackett
Differential Revision: https://phabricator.services.mozilla.com/D11627 --HG-- extra : amend_source : 6b67a55e99ea0e29aec3606dd27aeea5750a9eeb
This commit is contained in:
Родитель
e39dc09177
Коммит
d43ae0723b
|
@ -1598,8 +1598,7 @@ class DebugEnvironmentProxyHandler : public BaseProxyHandler
|
||||||
CallObject& callobj = env->as<CallObject>();
|
CallObject& callobj = env->as<CallObject>();
|
||||||
RootedFunction fun(cx, &callobj.callee());
|
RootedFunction fun(cx, &callobj.callee());
|
||||||
RootedScript script(cx, JSFunction::getOrCreateScript(cx, fun));
|
RootedScript script(cx, JSFunction::getOrCreateScript(cx, fun));
|
||||||
AutoKeepTypeScripts keepTypes(cx);
|
if (!script->ensureHasAnalyzedArgsUsage(cx)) {
|
||||||
if (!script->ensureHasTypes(cx, keepTypes) || !script->ensureHasAnalyzedArgsUsage(cx)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче