OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Features shared by parsing and pre-parsing scanners. | 5 // Features shared by parsing and pre-parsing scanners. |
6 | 6 |
7 #ifndef V8_SCANNER_H_ | 7 #ifndef V8_SCANNER_H_ |
8 #define V8_SCANNER_H_ | 8 #define V8_SCANNER_H_ |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
11 #include "src/base/logging.h" | 11 #include "src/base/logging.h" |
12 #include "src/char-predicates.h" | 12 #include "src/char-predicates.h" |
13 #include "src/globals.h" | 13 #include "src/globals.h" |
14 #include "src/hashmap.h" | 14 #include "src/hashmap.h" |
15 #include "src/list.h" | 15 #include "src/list.h" |
16 #include "src/token.h" | 16 #include "src/token.h" |
17 #include "src/unicode-inl.h" | 17 #include "src/unicode-inl.h" |
| 18 #include "src/unicode-decoder.h" |
18 #include "src/utils.h" | 19 #include "src/utils.h" |
19 | 20 |
20 namespace v8 { | 21 namespace v8 { |
21 namespace internal { | 22 namespace internal { |
22 | 23 |
23 | 24 |
24 class AstRawString; | 25 class AstRawString; |
25 class AstValueFactory; | 26 class AstValueFactory; |
26 class ParserRecorder; | 27 class ParserRecorder; |
27 | 28 |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 bool harmony_modules_; | 654 bool harmony_modules_; |
654 // Whether we scan 0o777 and 0b111 as numbers. | 655 // Whether we scan 0o777 and 0b111 as numbers. |
655 bool harmony_numeric_literals_; | 656 bool harmony_numeric_literals_; |
656 // Whether we scan 'class', 'extends', 'static' and 'super' as keywords. | 657 // Whether we scan 'class', 'extends', 'static' and 'super' as keywords. |
657 bool harmony_classes_; | 658 bool harmony_classes_; |
658 }; | 659 }; |
659 | 660 |
660 } } // namespace v8::internal | 661 } } // namespace v8::internal |
661 | 662 |
662 #endif // V8_SCANNER_H_ | 663 #endif // V8_SCANNER_H_ |
OLD | NEW |