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/CommonIdentifiers.cpp

    r44813 r54510  
    2929
    3030CommonIdentifiers::CommonIdentifiers(JSGlobalData* globalData)
    31     : nullIdentifier(globalData, nullCString)
    32     , emptyIdentifier(globalData, "")
     31    : emptyIdentifier(globalData, "")
    3332    , underscoreProto(globalData, "__proto__")
    3433    , thisIdentifier(globalData, "this")
Note: See TracChangeset for help on using the changeset viewer.