Ignore:
Timestamp:
Aug 20, 2009, 11:04:37 AM (16 years ago)
Author:
[email protected]
Message:

Roll out r47571 and related build fixes as it caused us to leak the world without warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/parser/Lexer.cpp

    r47571 r47582  
    142142}
    143143
    144 void Lexer::setCode(const SourceCode& source, ParserArena& arena)
    145 {
    146     m_arena = &arena.identifierArena();
    147 
     144void Lexer::setCode(const SourceCode& source)
     145{
    148146    m_lineNumber = source.firstLine();
    149147    m_delimited = false;
     
    207205}
    208206
    209 ALWAYS_INLINE const Identifier* Lexer::makeIdentifier(const UChar* characters, size_t length)
    210 {
    211     return &m_arena->makeIdentifier(m_globalData, characters, length);
     207ALWAYS_INLINE Identifier* Lexer::makeIdentifier(const UChar* characters, size_t length)
     208{
     209    m_identifiers.append(Identifier(m_globalData, characters, length));
     210    return &m_identifiers.last();
    212211}
    213212
     
    10131012void Lexer::clear()
    10141013{
    1015     m_arena = 0;
     1014    m_identifiers.clear();
    10161015    m_codeWithoutBOMs.clear();
    10171016
Note: See TracChangeset for help on using the changeset viewer.