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

Side by Side Diff: src/scanner.h

Issue 6196006: [Isolates] Make lint happy. (Closed)
Patch Set: Created 9 years, 11 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/isolate.h ('k') | src/scanner-base.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 SafeStringInputBuffer safe_string_input_buffer_; 96 SafeStringInputBuffer safe_string_input_buffer_;
97 }; 97 };
98 98
99 // ---------------------------------------------------------------------------- 99 // ----------------------------------------------------------------------------
100 // V8JavaScriptScanner 100 // V8JavaScriptScanner
101 // JavaScript scanner getting its input from either a V8 String or a unicode 101 // JavaScript scanner getting its input from either a V8 String or a unicode
102 // CharacterStream. 102 // CharacterStream.
103 103
104 class V8JavaScriptScanner : public JavaScriptScanner { 104 class V8JavaScriptScanner : public JavaScriptScanner {
105 public: 105 public:
106 V8JavaScriptScanner(Isolate* isolate) 106 explicit V8JavaScriptScanner(Isolate* isolate)
107 : JavaScriptScanner(isolate->scanner_constants()) {} 107 : JavaScriptScanner(isolate->scanner_constants()) {}
108 108
109 // Initialize the Scanner to scan source. 109 // Initialize the Scanner to scan source.
110 void Initialize(Handle<String> source, int literal_flags = kAllLiterals); 110 void Initialize(Handle<String> source, int literal_flags = kAllLiterals);
111 void Initialize(Handle<String> source, 111 void Initialize(Handle<String> source,
112 unibrow::CharacterStream* stream, 112 unibrow::CharacterStream* stream,
113 int literal_flags = kAllLiterals); 113 int literal_flags = kAllLiterals);
114 void Initialize(Handle<String> source, 114 void Initialize(Handle<String> source,
115 int start_position, int end_position, 115 int start_position, int end_position,
116 int literal_flags = kAllLiterals); 116 int literal_flags = kAllLiterals);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 211
212 template <typename StringType, typename CharType> 212 template <typename StringType, typename CharType>
213 void ExternalStringUTF16Buffer<StringType, CharType>::SeekForward(int pos) { 213 void ExternalStringUTF16Buffer<StringType, CharType>::SeekForward(int pos) {
214 pos_ = pos; 214 pos_ = pos;
215 } 215 }
216 216
217 } } // namespace v8::internal 217 } } // namespace v8::internal
218 218
219 #endif // V8_SCANNER_H_ 219 #endif // V8_SCANNER_H_
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/scanner-base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698