| 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 17 matching lines...) Expand all Loading... |
| 28 // Features shared by parsing and pre-parsing scanners. | 28 // Features shared by parsing and pre-parsing scanners. |
| 29 | 29 |
| 30 #include <cmath> | 30 #include <cmath> |
| 31 | 31 |
| 32 #include "scanner.h" | 32 #include "scanner.h" |
| 33 | 33 |
| 34 #include "../include/v8stdint.h" | 34 #include "../include/v8stdint.h" |
| 35 #include "char-predicates-inl.h" | 35 #include "char-predicates-inl.h" |
| 36 #include "conversions-inl.h" | 36 #include "conversions-inl.h" |
| 37 #include "list-inl.h" | 37 #include "list-inl.h" |
| 38 #include "v8.h" | 38 #include "lexer/lexer.h" |
| 39 | 39 |
| 40 namespace v8 { | 40 namespace v8 { |
| 41 namespace internal { | 41 namespace internal { |
| 42 | 42 |
| 43 | 43 |
| 44 #ifndef V8_USE_GENERATED_LEXER | 44 #ifndef V8_USE_GENERATED_LEXER |
| 45 // ---------------------------------------------------------------------------- | 45 // ---------------------------------------------------------------------------- |
| 46 // Scanner | 46 // Scanner |
| 47 | 47 |
| 48 Scanner::Scanner(UnicodeCache* unicode_cache) | 48 Scanner::Scanner(UnicodeCache* unicode_cache) |
| (...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 } | 1249 } |
| 1250 backing_store_.Add(static_cast<byte>((ascii_length >> 7) | 0x80u)); | 1250 backing_store_.Add(static_cast<byte>((ascii_length >> 7) | 0x80u)); |
| 1251 } | 1251 } |
| 1252 backing_store_.Add(static_cast<byte>(ascii_length & 0x7f)); | 1252 backing_store_.Add(static_cast<byte>(ascii_length & 0x7f)); |
| 1253 | 1253 |
| 1254 backing_store_.AddBlock(bytes); | 1254 backing_store_.AddBlock(bytes); |
| 1255 return backing_store_.EndSequence().start(); | 1255 return backing_store_.EndSequence().start(); |
| 1256 } | 1256 } |
| 1257 | 1257 |
| 1258 } } // namespace v8::internal | 1258 } } // namespace v8::internal |
| OLD | NEW |