Ignore:
Timestamp:
Mar 17, 2016, 1:38:56 PM (9 years ago)
Author:
[email protected]
Message:

Make FunctionMode an enum class.
https://bugs.webkit.org/show_bug.cgi?id=155587

Reviewed by Saam Barati.

  • bytecode/UnlinkedFunctionExecutable.cpp:

(JSC::UnlinkedFunctionExecutable::UnlinkedFunctionExecutable):

  • parser/NodeConstructors.h:

(JSC::BaseFuncExprNode::BaseFuncExprNode):
(JSC::FuncExprNode::FuncExprNode):
(JSC::FuncDeclNode::FuncDeclNode):
(JSC::ArrowFuncExprNode::ArrowFuncExprNode):
(JSC::MethodDefinitionNode::MethodDefinitionNode):

  • parser/ParserModes.h:

(JSC::functionNameIsInScope):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/Nodes.cpp

    r198288 r198349  
    167167}
    168168
    169 void FunctionMetadataNode::finishParsing(const SourceCode& source, const Identifier& ident, enum FunctionMode functionMode)
     169void FunctionMetadataNode::finishParsing(const SourceCode& source, const Identifier& ident, FunctionMode functionMode)
    170170{
    171171    m_source = source;
     
    190190}
    191191
    192 void FunctionNode::finishParsing(const Identifier& ident, enum FunctionMode functionMode)
     192void FunctionNode::finishParsing(const Identifier& ident, FunctionMode functionMode)
    193193{
    194194    ASSERT(!source().isNull());
Note: See TracChangeset for help on using the changeset viewer.