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

Side by Side Diff: src/scanner.h

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/safepoint-table.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 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // ---------------------------------------------------------------------------- 129 // ----------------------------------------------------------------------------
130 // V8JavaScriptScanner 130 // V8JavaScriptScanner
131 // JavaScript scanner getting its input from either a V8 String or a unicode 131 // JavaScript scanner getting its input from either a V8 String or a unicode
132 // CharacterStream. 132 // CharacterStream.
133 133
134 class V8JavaScriptScanner : public JavaScriptScanner { 134 class V8JavaScriptScanner : public JavaScriptScanner {
135 public: 135 public:
136 explicit V8JavaScriptScanner(Isolate* isolate) 136 explicit V8JavaScriptScanner(Isolate* isolate)
137 : JavaScriptScanner(isolate) {} 137 : JavaScriptScanner(isolate) {}
138 138
139 void Initialize(UC16CharacterStream* source, 139 void Initialize(UC16CharacterStream* source);
140 int literal_flags = kAllLiterals);
141 }; 140 };
142 141
143 142
144 class JsonScanner : public Scanner { 143 class JsonScanner : public Scanner {
145 public: 144 public:
146 JsonScanner(Isolate* isolate); 145 JsonScanner(Isolate* isolate);
147 146
148 void Initialize(UC16CharacterStream* source); 147 void Initialize(UC16CharacterStream* source);
149 148
150 // Returns the next token. 149 // Returns the next token.
(...skipping 27 matching lines...) Expand all
178 177
179 // Used to recognizes one of the literals "true", "false", or "null". These 178 // Used to recognizes one of the literals "true", "false", or "null". These
180 // are the only valid JSON identifiers (productions JSONBooleanLiteral, 179 // are the only valid JSON identifiers (productions JSONBooleanLiteral,
181 // JSONNullLiteral). 180 // JSONNullLiteral).
182 Token::Value ScanJsonIdentifier(const char* text, Token::Value token); 181 Token::Value ScanJsonIdentifier(const char* text, Token::Value token);
183 }; 182 };
184 183
185 } } // namespace v8::internal 184 } } // namespace v8::internal
186 185
187 #endif // V8_SCANNER_H_ 186 #endif // V8_SCANNER_H_
OLDNEW
« no previous file with comments | « src/safepoint-table.cc ('k') | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698