Ignore:
Timestamp:
Apr 20, 2016, 1:44:43 AM (9 years ago)
Author:
[email protected]
Message:

Remove unused m_writtenVariables from the parser and related bits
https://bugs.webkit.org/show_bug.cgi?id=156784

Reviewed by Yusuke Suzuki.

This isn't a octane/codeload speedup even though we're doing less work in
collectFreeVariables. But it's good to get rid of things that are not used.

  • parser/Nodes.h:

(JSC::ScopeNode::usesEval):
(JSC::ScopeNode::usesArguments):
(JSC::ScopeNode::usesArrowFunction):
(JSC::ScopeNode::isStrictMode):
(JSC::ScopeNode::setUsesArguments):
(JSC::ScopeNode::usesThis):
(JSC::ScopeNode::modifiesParameter): Deleted.
(JSC::ScopeNode::modifiesArguments): Deleted.

  • parser/Parser.cpp:

(JSC::Parser<LexerType>::parseInner):
(JSC::Parser<LexerType>::parseAssignmentExpression):

  • parser/Parser.h:

(JSC::Scope::Scope):
(JSC::Scope::hasDeclaredParameter):
(JSC::Scope::preventAllVariableDeclarations):
(JSC::Scope::collectFreeVariables):
(JSC::Scope::mergeInnerArrowFunctionFeatures):
(JSC::Scope::getSloppyModeHoistedFunctions):
(JSC::Scope::getCapturedVars):
(JSC::Scope::setStrictMode):
(JSC::Scope::strictMode):
(JSC::Scope::fillParametersForSourceProviderCache):
(JSC::Scope::restoreFromSourceProviderCache):
(JSC::Parser::hasDeclaredParameter):
(JSC::Parser::exportName):
(JSC::Scope::declareWrite): Deleted.
(JSC::Parser::declareWrite): Deleted.

  • parser/ParserModes.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/ParserModes.h

    r198349 r199768  
    155155const CodeFeatures StrictModeFeature =           1 << 4;
    156156const CodeFeatures ShadowsArgumentsFeature =     1 << 5;
    157 const CodeFeatures ModifiedParameterFeature =    1 << 6;
    158 const CodeFeatures ModifiedArgumentsFeature =    1 << 7;
    159 const CodeFeatures ArrowFunctionFeature =        1 << 8;
    160 const CodeFeatures ArrowFunctionContextFeature = 1 << 9;
    161 const CodeFeatures SuperCallFeature =            1 << 10;
    162 const CodeFeatures SuperPropertyFeature =        1 << 11;
    163 const CodeFeatures NewTargetFeature =            1 << 12;
     157const CodeFeatures ArrowFunctionFeature =        1 << 6;
     158const CodeFeatures ArrowFunctionContextFeature = 1 << 7;
     159const CodeFeatures SuperCallFeature =            1 << 8;
     160const CodeFeatures SuperPropertyFeature =        1 << 9;
     161const CodeFeatures NewTargetFeature =            1 << 10;
    164162
    165 const CodeFeatures AllFeatures = EvalFeature | ArgumentsFeature | WithFeature | ThisFeature | StrictModeFeature | ShadowsArgumentsFeature | ModifiedParameterFeature | ArrowFunctionFeature | ArrowFunctionContextFeature |
     163const CodeFeatures AllFeatures = EvalFeature | ArgumentsFeature | WithFeature | ThisFeature | StrictModeFeature | ShadowsArgumentsFeature | ArrowFunctionFeature | ArrowFunctionContextFeature |
    166164    SuperCallFeature | SuperPropertyFeature | NewTargetFeature;
    167165
Note: See TracChangeset for help on using the changeset viewer.