зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1428863 - Remove unused chars/length arguments from the ParserBase and PerHandlerParser constructors. r=arai
--HG-- extra : rebase_source : 2bc3c77c238600b7f094e82930226b8d4306212f
This commit is contained in:
Родитель
5492bbcbd7
Коммит
2a23e35f41
|
@ -796,7 +796,6 @@ ParserBase::errorNoOffset(unsigned errorNumber, ...)
|
|||
|
||||
ParserBase::ParserBase(JSContext* cx, LifoAlloc& alloc,
|
||||
const ReadOnlyCompileOptions& options,
|
||||
const char16_t* chars, size_t length,
|
||||
bool foldConstants,
|
||||
UsedNameTracker& usedNames)
|
||||
: AutoGCRooter(cx, PARSER),
|
||||
|
@ -848,10 +847,9 @@ ParserBase::~ParserBase()
|
|||
template <class ParseHandler>
|
||||
PerHandlerParser<ParseHandler>::PerHandlerParser(JSContext* cx, LifoAlloc& alloc,
|
||||
const ReadOnlyCompileOptions& options,
|
||||
const char16_t* chars, size_t length,
|
||||
bool foldConstants, UsedNameTracker& usedNames,
|
||||
LazyScript* lazyOuterFunction)
|
||||
: ParserBase(cx, alloc, options, chars, length, foldConstants, usedNames),
|
||||
: ParserBase(cx, alloc, options, foldConstants, usedNames),
|
||||
handler(cx, alloc, lazyOuterFunction)
|
||||
{
|
||||
|
||||
|
@ -865,7 +863,7 @@ GeneralParser<ParseHandler, CharT>::GeneralParser(JSContext* cx, LifoAlloc& allo
|
|||
UsedNameTracker& usedNames,
|
||||
SyntaxParser* syntaxParser,
|
||||
LazyScript* lazyOuterFunction)
|
||||
: Base(cx, alloc, options, chars, length, foldConstants, usedNames, lazyOuterFunction),
|
||||
: Base(cx, alloc, options, foldConstants, usedNames, lazyOuterFunction),
|
||||
tokenStream(cx, options, chars, length)
|
||||
{
|
||||
// The Mozilla specific JSOPTION_EXTRA_WARNINGS option adds extra warnings
|
||||
|
|
|
@ -304,8 +304,7 @@ class ParserBase
|
|||
template<class, typename> friend class AutoAwaitIsKeyword;
|
||||
|
||||
ParserBase(JSContext* cx, LifoAlloc& alloc, const ReadOnlyCompileOptions& options,
|
||||
const char16_t* chars, size_t length, bool foldConstants,
|
||||
UsedNameTracker& usedNames);
|
||||
bool foldConstants, UsedNameTracker& usedNames);
|
||||
~ParserBase();
|
||||
|
||||
bool checkOptions();
|
||||
|
@ -469,8 +468,8 @@ class PerHandlerParser
|
|||
|
||||
protected:
|
||||
PerHandlerParser(JSContext* cx, LifoAlloc& alloc, const ReadOnlyCompileOptions& options,
|
||||
const char16_t* chars, size_t length, bool foldConstants,
|
||||
UsedNameTracker& usedNames, LazyScript* lazyOuterFunction);
|
||||
bool foldConstants, UsedNameTracker& usedNames,
|
||||
LazyScript* lazyOuterFunction);
|
||||
|
||||
static Node null() { return ParseHandler::null(); }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче