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

Side by Side Diff: src/scanner.cc

Issue 3413015: Remove unused variable from Scanner class. (Closed) Base URL: git://github.com/v8/v8.git
Patch Set: Created 10 years, 3 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/scanner.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 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
11 // with the distribution. 11 // with the distribution.
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 336
337 void Scanner::LiteralScope::Complete() { 337 void Scanner::LiteralScope::Complete() {
338 scanner_->TerminateLiteral(); 338 scanner_->TerminateLiteral();
339 complete_ = true; 339 complete_ = true;
340 } 340 }
341 341
342 // ---------------------------------------------------------------------------- 342 // ----------------------------------------------------------------------------
343 // Scanner 343 // Scanner
344 344
345 Scanner::Scanner(ParserMode pre) 345 Scanner::Scanner()
346 : is_pre_parsing_(pre == PREPARSE), stack_overflow_(false) { } 346 : has_line_terminator_before_next_(false),
347 is_parsing_json_(false),
348 source_(NULL),
349 stack_overflow_(false) {}
347 350
348 351
349 void Scanner::Initialize(Handle<String> source, 352 void Scanner::Initialize(Handle<String> source,
350 ParserLanguage language) { 353 ParserLanguage language) {
351 Init(source, NULL, 0, source->length(), language); 354 Init(source, NULL, 0, source->length(), language);
352 } 355 }
353 356
354 357
355 void Scanner::Initialize(Handle<String> source, 358 void Scanner::Initialize(Handle<String> source,
356 unibrow::CharacterStream* stream, 359 unibrow::CharacterStream* stream,
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 } 1350 }
1348 AddCharAdvance(); 1351 AddCharAdvance();
1349 } 1352 }
1350 literal.Complete(); 1353 literal.Complete();
1351 1354
1352 next_.location.end_pos = source_pos() - 1; 1355 next_.location.end_pos = source_pos() - 1;
1353 return true; 1356 return true;
1354 } 1357 }
1355 1358
1356 } } // namespace v8::internal 1359 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/scanner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698