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

Side by Side Diff: src/parsing/scanner.h

Issue 2549493002: Remove unused code for IsFutureStrictReserved. (Closed)
Patch Set: Created 4 years 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/parsing/preparser.h ('k') | src/parsing/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_PARSING_SCANNER_H_ 7 #ifndef V8_PARSING_SCANNER_H_
8 #define V8_PARSING_SCANNER_H_ 8 #define V8_PARSING_SCANNER_H_
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 return tmp; 321 return tmp;
322 } 322 }
323 323
324 Handle<String> SourceMappingUrl(Isolate* isolate) const { 324 Handle<String> SourceMappingUrl(Isolate* isolate) const {
325 Handle<String> tmp; 325 Handle<String> tmp;
326 if (source_mapping_url_.length() > 0) 326 if (source_mapping_url_.length() > 0)
327 tmp = source_mapping_url_.Internalize(isolate); 327 tmp = source_mapping_url_.Internalize(isolate);
328 return tmp; 328 return tmp;
329 } 329 }
330 330
331 bool IdentifierIsFutureStrictReserved(const AstRawString* string) const;
332
333 bool FoundHtmlComment() const { return found_html_comment_; } 331 bool FoundHtmlComment() const { return found_html_comment_; }
334 332
335 private: 333 private:
336 // Scoped helper for literal recording. Automatically drops the literal 334 // Scoped helper for literal recording. Automatically drops the literal
337 // if aborting the scanning before it's complete. 335 // if aborting the scanning before it's complete.
338 class LiteralScope { 336 class LiteralScope {
339 public: 337 public:
340 explicit LiteralScope(Scanner* self) : scanner_(self), complete_(false) { 338 explicit LiteralScope(Scanner* self) : scanner_(self), complete_(false) {
341 scanner_->StartLiteral(); 339 scanner_->StartLiteral();
342 } 340 }
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 bool found_html_comment_; 803 bool found_html_comment_;
806 804
807 MessageTemplate::Template scanner_error_; 805 MessageTemplate::Template scanner_error_;
808 Location scanner_error_location_; 806 Location scanner_error_location_;
809 }; 807 };
810 808
811 } // namespace internal 809 } // namespace internal
812 } // namespace v8 810 } // namespace v8
813 811
814 #endif // V8_PARSING_SCANNER_H_ 812 #endif // V8_PARSING_SCANNER_H_
OLDNEW
« no previous file with comments | « src/parsing/preparser.h ('k') | src/parsing/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698