Changeset 88724 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.h
- Timestamp:
- Jun 13, 2011, 3:46:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.h
r88719 r88724 58 58 DontBuildKeywords = 4 59 59 }; 60 JSTokenType lex(JSTokenData* lvalp, JSTokenInfo* llocp, unsigned, bool strictMode);60 JSTokenType lex(JSTokenData*, JSTokenInfo*, unsigned, bool strictMode); 61 61 bool nextTokenIsColon(); 62 62 int lineNumber() const { return m_lineNumber; } … … 90 90 SourceProvider* sourceProvider() const { return m_source->provider(); } 91 91 92 JSTokenType lexExpectIdentifier(JSTokenData* lvalp, JSTokenInfo* llocp, unsigned, bool strictMode);92 JSTokenType lexExpectIdentifier(JSTokenData*, JSTokenInfo*, unsigned, bool strictMode); 93 93 94 94 private: … … 120 120 template <bool shouldCreateIdentifier> ALWAYS_INLINE JSTokenType parseKeyword(JSTokenData*); 121 121 template <bool shouldBuildIdentifiers> ALWAYS_INLINE JSTokenType parseIdentifier(JSTokenData*, unsigned); 122 template <bool shouldBuildStrings> ALWAYS_INLINE bool parseString(JSTokenData* lvalp, bool strictMode);122 template <bool shouldBuildStrings> ALWAYS_INLINE bool parseString(JSTokenData*, bool strictMode); 123 123 ALWAYS_INLINE void parseHex(double& returnValue); 124 124 ALWAYS_INLINE bool parseOctal(double& returnValue); … … 182 182 } 183 183 184 ALWAYS_INLINE JSTokenType Lexer::lexExpectIdentifier(JSTokenData* lvalp, JSTokenInfo* llocp, unsigned lexType, bool strictMode)184 ALWAYS_INLINE JSTokenType Lexer::lexExpectIdentifier(JSTokenData* tokenData, JSTokenInfo* tokenInfo, unsigned lexType, bool strictMode) 185 185 { 186 186 ASSERT((lexType & IgnoreReservedWords)); … … 213 213 // Create the identifier if needed 214 214 if (lexType & DontBuildKeywords) 215 lvalp->ident = 0;215 tokenData->ident = 0; 216 216 else 217 lvalp->ident = makeIdentifier(start, ptr - start);218 llocp->line = m_lineNumber;219 llocp->startOffset = start - m_codeStart;220 llocp->endOffset = currentOffset();217 tokenData->ident = makeIdentifier(start, ptr - start); 218 tokenInfo->line = m_lineNumber; 219 tokenInfo->startOffset = start - m_codeStart; 220 tokenInfo->endOffset = currentOffset(); 221 221 m_lastToken = IDENT; 222 222 return IDENT; 223 223 224 224 slowCase: 225 return lex( lvalp, llocp, lexType, strictMode);225 return lex(tokenData, tokenInfo, lexType, strictMode); 226 226 } 227 227
Note:
See TracChangeset
for help on using the changeset viewer.