Changeset 128542 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.cpp
- Timestamp:
- Sep 13, 2012, 6:50:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r127191 r128542 406 406 m_lastToken = -1; 407 407 408 const String Impl* sourceString = source.provider()->data();409 410 if ( sourceString)411 setCodeStart(sourceString );408 const String& sourceString = source.provider()->source(); 409 410 if (!sourceString.isNull()) 411 setCodeStart(sourceString.impl()); 412 412 else 413 413 m_codeStart = 0; … … 1690 1690 SourceCode Lexer<T>::sourceCode(int openBrace, int closeBrace, int firstLine) 1691 1691 { 1692 ASSERT( (*m_source->provider()->data())[openBrace] == '{');1693 ASSERT( (*m_source->provider()->data())[closeBrace] == '}');1692 ASSERT(m_source->provider()->source()[openBrace] == '{'); 1693 ASSERT(m_source->provider()->source()[closeBrace] == '}'); 1694 1694 return SourceCode(m_source->provider(), openBrace, closeBrace + 1, firstLine); 1695 1695 }
Note:
See TracChangeset
for help on using the changeset viewer.