Ignore:
Timestamp:
Aug 13, 2009, 5:49:42 PM (16 years ago)
Author:
Darin Adler
Message:

Another part of https://bugs.webkit.org/show_bug.cgi?id=28287

Patch by Darin Adler <Darin Adler> on 2009-08-13
Reviewed by George Staikos.

  • parser/Grammar.y: Pass the number to the PropertyNode instead of

first turning it into an Identifier.

  • parser/NodeConstructors.h:

(JSC::PropertyNode::PropertyNode): Add an overload that takes a double
so the code to convert to a string can be here instead of Grammar.y.

  • parser/Nodes.h: Ditto.
File:
1 edited

Legend:

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

    r47236 r47259  
    155155    }
    156156
     157    inline PropertyNode::PropertyNode(JSGlobalData* globalData, double name, ExpressionNode* assign, Type type)
     158        : m_name(Identifier(globalData, UString::from(name)))
     159        , m_assign(assign)
     160        , m_type(type)
     161    {
     162    }
     163
    157164    inline PropertyListNode::PropertyListNode(JSGlobalData* globalData, PropertyNode* node)
    158165        : Node(globalData)
Note: See TracChangeset for help on using the changeset viewer.