diff options
author | Ben Murdoch <benm@google.com> | 2010-10-22 13:02:20 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-10-26 15:21:41 +0100 |
commit | a94275402997c11dd2e778633dacf4b7e630a35d (patch) | |
tree | e66f56c67e3b01f22c9c23cd932271ee9ac558ed /JavaScriptCore/parser/Lexer.h | |
parent | 09e26c78506587b3f5d930d7bc72a23287ffbec0 (diff) | |
download | external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.zip external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.tar.gz external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.tar.bz2 |
Merge WebKit at r70209: Initial merge by Git
Change-Id: Id23a68efa36e9d1126bcce0b137872db00892c8e
Diffstat (limited to 'JavaScriptCore/parser/Lexer.h')
-rw-r--r-- | JavaScriptCore/parser/Lexer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/JavaScriptCore/parser/Lexer.h b/JavaScriptCore/parser/Lexer.h index e6c1efd..4d2513d 100644 --- a/JavaScriptCore/parser/Lexer.h +++ b/JavaScriptCore/parser/Lexer.h @@ -48,10 +48,11 @@ namespace JSC { // Functions to set up parsing. void setCode(const SourceCode&, ParserArena&); void setIsReparsing() { m_isReparsing = true; } + bool isReparsing() const { return m_isReparsing; } // Functions for the parser itself. enum LexType { IdentifyReservedWords, IgnoreReservedWords }; - JSTokenType lex(JSTokenData* lvalp, JSTokenInfo* llocp, LexType); + JSTokenType lex(JSTokenData* lvalp, JSTokenInfo* llocp, LexType, bool strictMode); int lineNumber() const { return m_lineNumber; } void setLastLineNumber(int lastLineNumber) { m_lastLineNumber = lastLineNumber; } int lastLineNumber() const { return m_lastLineNumber; } @@ -95,7 +96,7 @@ namespace JSC { ALWAYS_INLINE bool lastTokenWasRestrKeyword() const; ALWAYS_INLINE JSTokenType parseIdentifier(JSTokenData*, LexType); - ALWAYS_INLINE bool parseString(JSTokenData* lvalp); + ALWAYS_INLINE bool parseString(JSTokenData* lvalp, bool strictMode); ALWAYS_INLINE void parseHex(double& returnValue); ALWAYS_INLINE bool parseOctal(double& returnValue); ALWAYS_INLINE bool parseDecimal(double& returnValue); |