OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 bool IsIdentifierStart(unibrow::uchar c) { return kIsIdentifierStart.get(c); } | 138 bool IsIdentifierStart(unibrow::uchar c) { return kIsIdentifierStart.get(c); } |
139 bool IsIdentifierPart(unibrow::uchar c) { return kIsIdentifierPart.get(c); } | 139 bool IsIdentifierPart(unibrow::uchar c) { return kIsIdentifierPart.get(c); } |
140 bool IsLineTerminator(unibrow::uchar c) { return kIsLineTerminator.get(c); } | 140 bool IsLineTerminator(unibrow::uchar c) { return kIsLineTerminator.get(c); } |
141 bool IsWhiteSpace(unibrow::uchar c) { return kIsWhiteSpace.get(c); } | 141 bool IsWhiteSpace(unibrow::uchar c) { return kIsWhiteSpace.get(c); } |
142 | 142 |
143 private: | 143 private: |
144 unibrow::Predicate<IdentifierStart, 128> kIsIdentifierStart; | 144 unibrow::Predicate<IdentifierStart, 128> kIsIdentifierStart; |
145 unibrow::Predicate<IdentifierPart, 128> kIsIdentifierPart; | 145 unibrow::Predicate<IdentifierPart, 128> kIsIdentifierPart; |
146 unibrow::Predicate<unibrow::LineTerminator, 128> kIsLineTerminator; | 146 unibrow::Predicate<unibrow::LineTerminator, 128> kIsLineTerminator; |
147 unibrow::Predicate<WhiteSpace, 128> kIsWhiteSpace; | 147 unibrow::Predicate<unibrow::WhiteSpace, 128> kIsWhiteSpace; |
148 StaticResource<Utf8Decoder> utf8_decoder_; | 148 StaticResource<Utf8Decoder> utf8_decoder_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(UnicodeCache); | 150 DISALLOW_COPY_AND_ASSIGN(UnicodeCache); |
151 }; | 151 }; |
152 | 152 |
153 | 153 |
154 // --------------------------------------------------------------------- | 154 // --------------------------------------------------------------------- |
155 // DuplicateFinder discovers duplicate symbols. | 155 // DuplicateFinder discovers duplicate symbols. |
156 | 156 |
157 class DuplicateFinder { | 157 class DuplicateFinder { |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 bool harmony_scoping_; | 615 bool harmony_scoping_; |
616 // Whether we scan 'module', 'import', 'export' as keywords. | 616 // Whether we scan 'module', 'import', 'export' as keywords. |
617 bool harmony_modules_; | 617 bool harmony_modules_; |
618 // Whether we scan 0o777 and 0b111 as numbers. | 618 // Whether we scan 0o777 and 0b111 as numbers. |
619 bool harmony_numeric_literals_; | 619 bool harmony_numeric_literals_; |
620 }; | 620 }; |
621 | 621 |
622 } } // namespace v8::internal | 622 } } // namespace v8::internal |
623 | 623 |
624 #endif // V8_SCANNER_H_ | 624 #endif // V8_SCANNER_H_ |
OLD | NEW |