Changeset 62031 in webkit for trunk/JavaScriptCore/parser/Lexer.h
- Timestamp:
- Jun 28, 2010, 1:17:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/parser/Lexer.h
r61732 r62031 2 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) 3 3 * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2010 Zoltan Herczeg ([email protected]) 4 5 * 5 6 * This library is free software; you can redistribute it and/or … … 27 28 #include "SourceCode.h" 28 29 #include <wtf/ASCIICType.h> 30 #include <wtf/AlwaysInline.h> 29 31 #include <wtf/SegmentedVector.h> 30 32 #include <wtf/Vector.h> … … 67 69 ~Lexer(); 68 70 69 void shift1();70 void shift2();71 void shift3();72 void shift4();73 void shiftLineTerminator();74 75 71 void record8(int); 76 72 void record16(int); … … 79 75 void copyCodeWithoutBOMs(); 80 76 81 int currentOffset() const; 82 const UChar* currentCharacter() const; 77 ALWAYS_INLINE void shift(); 78 ALWAYS_INLINE int peek(int offset); 79 int getUnicodeCharacter(); 80 void shiftLineTerminator(); 83 81 84 const Identifier* makeIdentifier(const UChar* characters, size_t length); 82 ALWAYS_INLINE const UChar* currentCharacter() const; 83 ALWAYS_INLINE int currentOffset() const; 85 84 86 bool lastTokenWasRestrKeyword() const; 85 ALWAYS_INLINE const Identifier* makeIdentifier(const UChar* characters, size_t length); 86 87 ALWAYS_INLINE bool lastTokenWasRestrKeyword() const; 87 88 88 89 static const size_t initialReadBufferCapacity = 32; … … 107 108 // current and following unicode characters (int to allow for -1 for end-of-file marker) 108 109 int m_current; 109 int m_next1; 110 int m_next2; 111 int m_next3; 112 110 113 111 IdentifierArena* m_arena; 114 112
Note:
See TracChangeset
for help on using the changeset viewer.