Ignore:
Timestamp:
Feb 8, 2010, 2:26:59 PM (15 years ago)
Author:
[email protected]
Message:

Use an empty identifier instead of a null identifier for parse
tokens without an identifier.

Reviewed by Sam Weinig.

This helps encapsulate the null UStringImpl within UString.

  • parser/Grammar.y:
  • parser/NodeConstructors.h:

(JSC::ContinueNode::ContinueNode):
(JSC::BreakNode::BreakNode):
(JSC::ForInNode::ForInNode):

  • runtime/CommonIdentifiers.cpp:

(JSC::CommonIdentifiers::CommonIdentifiers):

  • runtime/CommonIdentifiers.h:
  • runtime/FunctionPrototype.cpp:

(JSC::FunctionPrototype::FunctionPrototype):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/parser/NodeConstructors.h

    r47664 r54510  
    742742    inline ContinueNode::ContinueNode(JSGlobalData* globalData)
    743743        : StatementNode(globalData)
    744         , m_ident(globalData->propertyNames->nullIdentifier)
     744        , m_ident(globalData->propertyNames->emptyIdentifier)
    745745    {
    746746    }
     
    754754    inline BreakNode::BreakNode(JSGlobalData* globalData)
    755755        : StatementNode(globalData)
    756         , m_ident(globalData->propertyNames->nullIdentifier)
     756        , m_ident(globalData->propertyNames->emptyIdentifier)
    757757    {
    758758    }
     
    878878    inline ForInNode::ForInNode(JSGlobalData* globalData, ExpressionNode* l, ExpressionNode* expr, StatementNode* statement)
    879879        : StatementNode(globalData)
    880         , m_ident(globalData->propertyNames->nullIdentifier)
     880        , m_ident(globalData->propertyNames->emptyIdentifier)
    881881        , m_init(0)
    882882        , m_lexpr(l)
Note: See TracChangeset for help on using the changeset viewer.