| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 } | 342 } |
| 343 Vector<const uc16> next_literal_uc16_string() { | 343 Vector<const uc16> next_literal_uc16_string() { |
| 344 ASSERT_NOT_NULL(next_.literal_chars); | 344 ASSERT_NOT_NULL(next_.literal_chars); |
| 345 return next_.literal_chars->uc16_literal(); | 345 return next_.literal_chars->uc16_literal(); |
| 346 } | 346 } |
| 347 int next_literal_length() const { | 347 int next_literal_length() const { |
| 348 ASSERT_NOT_NULL(next_.literal_chars); | 348 ASSERT_NOT_NULL(next_.literal_chars); |
| 349 return next_.literal_chars->length(); | 349 return next_.literal_chars->length(); |
| 350 } | 350 } |
| 351 | 351 |
| 352 UnicodeCache* unicode_cache() { return unicode_cache_; } | |
| 353 | |
| 354 static const int kCharacterLookaheadBufferSize = 1; | 352 static const int kCharacterLookaheadBufferSize = 1; |
| 355 | 353 |
| 356 protected: | 354 protected: |
| 357 // The current and look-ahead token. | 355 // The current and look-ahead token. |
| 358 struct TokenDesc { | 356 struct TokenDesc { |
| 359 Token::Value token; | 357 Token::Value token; |
| 360 Location location; | 358 Location location; |
| 361 LiteralBuffer* literal_chars; | 359 LiteralBuffer* literal_chars; |
| 362 }; | 360 }; |
| 363 | 361 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 // keyword with the current prefix). | 683 // keyword with the current prefix). |
| 686 const char* keyword_; | 684 const char* keyword_; |
| 687 int counter_; | 685 int counter_; |
| 688 Token::Value keyword_token_; | 686 Token::Value keyword_token_; |
| 689 }; | 687 }; |
| 690 | 688 |
| 691 | 689 |
| 692 } } // namespace v8::internal | 690 } } // namespace v8::internal |
| 693 | 691 |
| 694 #endif // V8_SCANNER_BASE_H_ | 692 #endif // V8_SCANNER_BASE_H_ |
| OLD | NEW |