Changeset 35245 in webkit for trunk/JavaScriptCore/kjs/lexer.cpp
- Timestamp:
- Jul 18, 2008, 6:44:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/lexer.cpp
r35195 r35245 75 75 , m_next2(0) 76 76 , m_next3(0) 77 , m_currentOffset(0) 78 , m_nextOffset1(0) 79 , m_nextOffset2(0) 80 , m_nextOffset3(0) 77 81 , m_globalData(globalData) 78 82 , m_mainTable(KJS::mainTable) … … 120 124 m_next1 = m_next2; 121 125 m_next2 = m_next3; 126 m_currentOffset = m_nextOffset1; 127 m_nextOffset1 = m_nextOffset2; 128 m_nextOffset2 = m_nextOffset3; 122 129 do { 123 130 if (m_position >= m_length) { 131 m_nextOffset3 = m_position; 124 132 m_position++; 125 133 m_next3 = -1; 126 134 break; 127 135 } 136 m_nextOffset3 = m_position; 128 137 m_next3 = m_code[m_position++]; 129 138 } while (m_next3 == 0xFEFF); … … 165 174 m_stackToken = 0; 166 175 } 167 176 int startOffset = m_currentOffset; 168 177 while (!m_done) { 169 178 if (m_skipLF && m_current != '\n') // found \r but not \n afterwards … … 178 187 switch (m_state) { 179 188 case Start: 189 startOffset = m_currentOffset; 180 190 if (isWhiteSpace()) { 181 191 // do nothing … … 522 532 llocp->first_line = yylineno; 523 533 llocp->last_line = yylineno; 524 534 llocp->first_column = startOffset; 535 llocp->last_column = m_currentOffset; 525 536 switch (m_state) { 526 537 case Eof:
Note:
See TracChangeset
for help on using the changeset viewer.