Changeset 47582 in webkit for trunk/JavaScriptCore/parser/Lexer.cpp
- Timestamp:
- Aug 20, 2009, 11:04:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/parser/Lexer.cpp
r47571 r47582 142 142 } 143 143 144 void Lexer::setCode(const SourceCode& source, ParserArena& arena) 145 { 146 m_arena = &arena.identifierArena(); 147 144 void Lexer::setCode(const SourceCode& source) 145 { 148 146 m_lineNumber = source.firstLine(); 149 147 m_delimited = false; … … 207 205 } 208 206 209 ALWAYS_INLINE const Identifier* Lexer::makeIdentifier(const UChar* characters, size_t length) 210 { 211 return &m_arena->makeIdentifier(m_globalData, characters, length); 207 ALWAYS_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(); 212 211 } 213 212 … … 1013 1012 void Lexer::clear() 1014 1013 { 1015 m_ arena = 0;1014 m_identifiers.clear(); 1016 1015 m_codeWithoutBOMs.clear(); 1017 1016
Note:
See TracChangeset
for help on using the changeset viewer.