Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/scanner.h

Issue 918203002: Get rid of PreParserIdentifier. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: . Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/preparser.cc ('k') | src/scanner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 // Scans the input as a template literal 488 // Scans the input as a template literal
489 Token::Value ScanTemplateStart(); 489 Token::Value ScanTemplateStart();
490 Token::Value ScanTemplateContinuation(); 490 Token::Value ScanTemplateContinuation();
491 491
492 const LiteralBuffer* source_url() const { return &source_url_; } 492 const LiteralBuffer* source_url() const { return &source_url_; }
493 const LiteralBuffer* source_mapping_url() const { 493 const LiteralBuffer* source_mapping_url() const {
494 return &source_mapping_url_; 494 return &source_mapping_url_;
495 } 495 }
496 496
497 bool IdentifierIsFutureReserved(const AstRawString* string) const;
497 bool IdentifierIsFutureStrictReserved(const AstRawString* string) const; 498 bool IdentifierIsFutureStrictReserved(const AstRawString* string) const;
498 499
499 private: 500 private:
500 // The current and look-ahead token. 501 // The current and look-ahead token.
501 struct TokenDesc { 502 struct TokenDesc {
502 Token::Value token; 503 Token::Value token;
503 Location location; 504 Location location;
504 LiteralBuffer* literal_chars; 505 LiteralBuffer* literal_chars;
505 LiteralBuffer* raw_literal_chars; 506 LiteralBuffer* raw_literal_chars;
506 }; 507 };
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 bool harmony_classes_; 743 bool harmony_classes_;
743 // Whether we scan TEMPLATE_SPAN and TEMPLATE_TAIL 744 // Whether we scan TEMPLATE_SPAN and TEMPLATE_TAIL
744 bool harmony_templates_; 745 bool harmony_templates_;
745 // Whether we allow \u{xxxxx}. 746 // Whether we allow \u{xxxxx}.
746 bool harmony_unicode_; 747 bool harmony_unicode_;
747 }; 748 };
748 749
749 } } // namespace v8::internal 750 } } // namespace v8::internal
750 751
751 #endif // V8_SCANNER_H_ 752 #endif // V8_SCANNER_H_
OLDNEW
« no previous file with comments | « src/preparser.cc ('k') | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698