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/runtime/PropertyNameArray.cpp

    r54464 r54510  
    3131void PropertyNameArray::add(UString::Rep* identifier)
    3232{
    33     ASSERT(identifier == UString::null().rep() || identifier == &UString::Rep::empty() || identifier->isIdentifier());
     33    ASSERT(identifier == &UString::Rep::empty() || identifier->isIdentifier());
    3434
    3535    size_t size = m_data->propertyNameVector().size();
Note: See TracChangeset for help on using the changeset viewer.