-
mark.lam@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=112952. Reviewed by Michael Saboff. Changed the Lexer to no longer keep a m_charPosition. Instead, we compute currentCharPosition() from m_code and m_codeStartPlusOffset, where m_codeStartPlusOffset is the SourceProvider m_codeStart + the SourceCode start offset. This ensures that the charPosition is always in sync with m_code. * parser/Lexer.cpp: (JSC::::setCode): (JSC::::internalShift): (JSC::::shift): (JSC::::lex): * parser/Lexer.h: (JSC::Lexer::currentCharPosition): (JSC::::lexExpectIdentifier): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
4f75bbeb