Changeset 146505 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.cpp
- Timestamp:
- Mar 21, 2013, 1:06:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r146318 r146505 547 547 548 548 m_source = &source; 549 m_code = m_codeStart + source.startOffset(); 549 m_codeStartPlusOffset = m_codeStart + source.startOffset(); 550 m_code = m_codeStartPlusOffset; 550 551 m_codeEnd = m_codeStart + source.endOffset(); 551 552 m_error = false; 552 553 m_atLineStart = true; 553 m_charPosition = 0;554 554 m_lexErrorMessage = String(); 555 555 … … 568 568 { 569 569 m_code += shiftAmount; 570 m_charPosition += shiftAmount;571 570 m_current = *m_code; 572 571 } … … 580 579 if (LIKELY(m_code < m_codeEnd)) 581 580 m_current = *m_code; 582 ++m_charPosition;583 581 } 584 582 … … 1320 1318 1321 1319 tokenLocation->startOffset = currentOffset(); 1322 tokenLocation->charPosition = m_charPosition;1320 tokenLocation->charPosition = currentCharPosition(); 1323 1321 1324 1322 CharacterType type;
Note:
See TracChangeset
for help on using the changeset viewer.