mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
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:
parent
74d86a94c6
commit
01ccdbbf13
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user