| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 10 matching lines...) Expand all Loading... |
| 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_LEXER_EXPERIMENTAL_SCANNER_H | 28 #ifndef V8_LEXER_EXPERIMENTAL_SCANNER_H |
| 29 #define V8_LEXER_EXPERIMENTAL_SCANNER_H | 29 #define V8_LEXER_EXPERIMENTAL_SCANNER_H |
| 30 | 30 |
| 31 #include "compiler.h" |
| 32 #include "isolate.h" |
| 33 #include "scanner.h" // UnicodeCache. |
| 31 #include "token.h" | 34 #include "token.h" |
| 32 #include "flags.h" | 35 #include "utils.h" |
| 33 #include "v8stdint.h" | 36 #include "v8stdint.h" |
| 34 | 37 |
| 35 // FIXME: some of this is probably not needed. | |
| 36 #include "allocation.h" | |
| 37 #include "ast.h" | |
| 38 #include "preparse-data-format.h" | |
| 39 #include "preparse-data.h" | |
| 40 #include "scopes.h" | |
| 41 #include "api.h" | |
| 42 #include "ast.h" | |
| 43 #include "bootstrapper.h" | |
| 44 #include "char-predicates-inl.h" | |
| 45 #include "compiler.h" | |
| 46 #include "func-name-inferrer.h" | |
| 47 #include "messages.h" | |
| 48 #include "parser.h" | |
| 49 #include "platform.h" | |
| 50 #include "runtime.h" | |
| 51 #include "scanner-character-streams.h" | |
| 52 #include "scopeinfo.h" | |
| 53 #include "string-stream.h" | |
| 54 | |
| 55 namespace v8 { | 38 namespace v8 { |
| 56 namespace internal { | 39 namespace internal { |
| 57 | 40 |
| 58 class UnicodeCache; | 41 class UnicodeCache; |
| 59 | 42 |
| 60 // Base class for scanners for different encodings. The meat is the pure virtual | 43 // Base class for scanners for different encodings. The meat is the pure virtual |
| 61 // Scan() which each of them specializes. | 44 // Scan() which each of them specializes. |
| 62 class ScannerBase { | 45 class ScannerBase { |
| 63 public: | 46 public: |
| 64 struct Location { | 47 struct Location { |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 } | 261 } |
| 279 x = x * 16 + d; | 262 x = x * 16 + d; |
| 280 } | 263 } |
| 281 return x; | 264 return x; |
| 282 } | 265 } |
| 283 | 266 |
| 284 | 267 |
| 285 } } | 268 } } |
| 286 | 269 |
| 287 #endif // V8_LEXER_EXPERIMENTAL_SCANNER_H | 270 #endif // V8_LEXER_EXPERIMENTAL_SCANNER_H |
| OLD | NEW |