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

Side by Side Diff: src/preparser.h

Issue 5985010: Fix compile-problem in (currently) unused stand-alone preparser function. (Closed)
Patch Set: Addressed review comment 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/parser.cc ('k') | src/preparser.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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 Expression ParseRegExpLiteral(bool seen_equal, bool* ok); 209 Expression ParseRegExpLiteral(bool seen_equal, bool* ok);
210 Expression ParseV8Intrinsic(bool* ok); 210 Expression ParseV8Intrinsic(bool* ok);
211 211
212 Arguments ParseArguments(bool* ok); 212 Arguments ParseArguments(bool* ok);
213 Expression ParseFunctionLiteral(bool* ok); 213 Expression ParseFunctionLiteral(bool* ok);
214 214
215 Identifier ParseIdentifier(bool* ok); 215 Identifier ParseIdentifier(bool* ok);
216 Identifier ParseIdentifierName(bool* ok); 216 Identifier ParseIdentifierName(bool* ok);
217 Identifier ParseIdentifierOrGetOrSet(bool* is_get, bool* is_set, bool* ok); 217 Identifier ParseIdentifierOrGetOrSet(bool* is_get, bool* is_set, bool* ok);
218 218
219 // Logs the currently parsed literal as a symbol in the preparser data.
220 void LogSymbol();
221 // Log the currently parsed identifier.
219 Identifier GetIdentifierSymbol(); 222 Identifier GetIdentifierSymbol();
220 unsigned int HexDigitValue(char digit); 223 // Log the currently parsed string literal.
221 Expression GetStringSymbol(); 224 Expression GetStringSymbol();
222 225
223 i::Token::Value peek() { 226 i::Token::Value peek() {
224 if (stack_overflow_) return i::Token::ILLEGAL; 227 if (stack_overflow_) return i::Token::ILLEGAL;
225 return scanner_->peek(); 228 return scanner_->peek();
226 } 229 }
227 230
228 i::Token::Value Next() { 231 i::Token::Value Next() {
229 if (stack_overflow_) return i::Token::ILLEGAL; 232 if (stack_overflow_) return i::Token::ILLEGAL;
230 { 233 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 i::JavaScriptScanner* scanner_; 265 i::JavaScriptScanner* scanner_;
263 i::ParserRecorder* log_; 266 i::ParserRecorder* log_;
264 Scope* scope_; 267 Scope* scope_;
265 uintptr_t stack_limit_; 268 uintptr_t stack_limit_;
266 bool stack_overflow_; 269 bool stack_overflow_;
267 bool allow_lazy_; 270 bool allow_lazy_;
268 }; 271 };
269 } } // v8::preparser 272 } } // v8::preparser
270 273
271 #endif // V8_PREPARSER_H 274 #endif // V8_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/preparser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698