Bug 1528837 - Part 9: Rename ParserBase::foldConstants field to foldConstants_. r=Yoric

Differential Revision: https://phabricator.services.mozilla.com/D20221

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tooru Fujisawa 2019-02-24 03:29:55 +00:00
parent 74d86a94c6
commit 01ccdbbf13
2 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ ParserBase::ParserBase(JSContext* cx, LifoAlloc& alloc,
ss(nullptr),
sourceObject_(cx, sourceObject),
keepAtoms_(cx),
foldConstants(foldConstants),
foldConstants_(foldConstants),
#ifdef DEBUG
checkOptionsCalled(false),
#endif
@ -391,7 +391,7 @@ typename ParseHandler::ListNodeType GeneralParser<ParseHandler, Unit>::parse() {
error(JSMSG_GARBAGE_AFTER_INPUT, "script", TokenKindToDesc(tt));
return null();
}
if (foldConstants) {
if (foldConstants_) {
Node node = stmtList;
// Don't constant-fold inside "use asm" code, as this could create a parse
// tree that doesn't type-check as asm.js.

View File

@ -271,7 +271,7 @@ class MOZ_STACK_CLASS ParserBase : private JS::AutoGCRooter,
AutoKeepAtoms keepAtoms_;
// Perform constant-folding; must be true when interfacing with the emitter.
const bool foldConstants : 1;
const bool foldConstants_ : 1;
protected:
#if DEBUG
@ -726,7 +726,7 @@ class MOZ_STACK_CLASS GeneralParser : public PerHandlerParser<ParseHandler> {
#endif
using Base::finishFunctionScopes;
using Base::finishLexicalScope;
using Base::foldConstants;
using Base::foldConstants_;
using Base::getFilename;
using Base::hasUsedFunctionSpecialName;
using Base::hasValidSimpleStrictParameterNames;