Bug 1476657: Fix DEAD_STORE issues in js/src/frontend/Parser.cpp. r=arai

MozReview-Commit-ID: BevNdvSiUpI

--HG--
extra : rebase_source : 4978f6247a1d13cab223005784c1ef28c901b73d
This commit is contained in:
Robert Bartlensky 2018-07-18 18:20:30 +01:00
Родитель dbbe5d1893
Коммит d7da36f7be
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1858,7 +1858,7 @@ NewGlobalScopeData(JSContext* context, ParseContext::Scope& scope, LifoAlloc& al
cursor = FreshlyInitializeBindings(cursor, lets);
bindings->constStart = cursor - start;
cursor = FreshlyInitializeBindings(cursor, consts);
FreshlyInitializeBindings(cursor, consts);
bindings->length = numBindings;
}
@ -1928,7 +1928,7 @@ NewModuleScopeData(JSContext* context, ParseContext::Scope& scope, LifoAlloc& al
cursor = FreshlyInitializeBindings(cursor, lets);
bindings->constStart = cursor - start;
cursor = FreshlyInitializeBindings(cursor, consts);
FreshlyInitializeBindings(cursor, consts);
bindings->length = numBindings;
}
@ -1968,7 +1968,7 @@ NewEvalScopeData(JSContext* context, ParseContext::Scope& scope, LifoAlloc& allo
BindingName* start = bindings->trailingNames.start();
BindingName* cursor = start;
cursor = FreshlyInitializeBindings(cursor, vars);
FreshlyInitializeBindings(cursor, vars);
bindings->length = numBindings;
}
@ -2067,7 +2067,7 @@ NewFunctionScopeData(JSContext* context, ParseContext::Scope& scope, bool hasPar
cursor = FreshlyInitializeBindings(cursor, formals);
bindings->varStart = cursor - start;
cursor = FreshlyInitializeBindings(cursor, vars);
FreshlyInitializeBindings(cursor, vars);
bindings->length = numBindings;
}
@ -2108,7 +2108,7 @@ NewVarScopeData(JSContext* context, ParseContext::Scope& scope, LifoAlloc& alloc
BindingName* start = bindings->trailingNames.start();
BindingName* cursor = start;
cursor = FreshlyInitializeBindings(cursor, vars);
FreshlyInitializeBindings(cursor, vars);
bindings->length = numBindings;
}
@ -2165,7 +2165,7 @@ NewLexicalScopeData(JSContext* context, ParseContext::Scope& scope, LifoAlloc& a
cursor = FreshlyInitializeBindings(cursor, lets);
bindings->constStart = cursor - start;
cursor = FreshlyInitializeBindings(cursor, consts);
FreshlyInitializeBindings(cursor, consts);
bindings->length = numBindings;
}