Changeset 43661 in webkit for trunk/JavaScriptCore/parser/Lexer.h
- Timestamp:
- May 13, 2009, 2:53:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/parser/Lexer.h
r43642 r43661 24 24 25 25 #include "Lookup.h" 26 #include " ParserArena.h"26 #include "SegmentedVector.h" 27 27 #include "SourceCode.h" 28 28 #include <wtf/ASCIICType.h> … … 43 43 44 44 // Functions to set up parsing. 45 void setCode(const SourceCode& , ParserArena&);45 void setCode(const SourceCode&); 46 46 void setIsReparsing() { m_isReparsing = true; } 47 47 … … 51 51 bool prevTerminator() const { return m_terminator; } 52 52 SourceCode sourceCode(int openBrace, int closeBrace, int firstLine); 53 bool scanRegExp(const Identifier*& pattern, const Identifier*& flags, UChar prefix = 0); 54 bool skipRegExp(); 53 bool scanRegExp(); 54 const UString& pattern() const { return m_pattern; } 55 const UString& flags() const { return m_flags; } 55 56 56 57 // Functions for use after parsing. … … 79 80 const UChar* currentCharacter() const; 80 81 81 const Identifier* makeIdentifier(const UChar* characters, size_t length);82 JSC::Identifier* makeIdentifier(const UChar* buffer, size_t length); 82 83 83 84 bool lastTokenWasRestrKeyword() const; 84 85 85 86 static const size_t initialReadBufferCapacity = 32; 87 static const size_t initialIdentifierTableCapacity = 64; 86 88 87 89 int m_lineNumber; … … 107 109 int m_next3; 108 110 109 IdentifierArena* m_arena;111 SegmentedVector<JSC::Identifier, initialIdentifierTableCapacity> m_identifiers; 110 112 111 113 JSGlobalData* m_globalData; 114 115 UString m_pattern; 116 UString m_flags; 112 117 113 118 const HashTable m_keywordTable;
Note:
See TracChangeset
for help on using the changeset viewer.