| 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 |
| 352 static const int kCharacterLookaheadBufferSize = 1; | 354 static const int kCharacterLookaheadBufferSize = 1; |
| 353 | 355 |
| 354 protected: | 356 protected: |
| 355 // The current and look-ahead token. | 357 // The current and look-ahead token. |
| 356 struct TokenDesc { | 358 struct TokenDesc { |
| 357 Token::Value token; | 359 Token::Value token; |
| 358 Location location; | 360 Location location; |
| 359 LiteralBuffer* literal_chars; | 361 LiteralBuffer* literal_chars; |
| 360 }; | 362 }; |
| 361 | 363 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 // keyword with the current prefix). | 685 // keyword with the current prefix). |
| 684 const char* keyword_; | 686 const char* keyword_; |
| 685 int counter_; | 687 int counter_; |
| 686 Token::Value keyword_token_; | 688 Token::Value keyword_token_; |
| 687 }; | 689 }; |
| 688 | 690 |
| 689 | 691 |
| 690 } } // namespace v8::internal | 692 } } // namespace v8::internal |
| 691 | 693 |
| 692 #endif // V8_SCANNER_BASE_H_ | 694 #endif // V8_SCANNER_BASE_H_ |
| OLD | NEW |