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

Side by Side Diff: src/lexer/lexer-shell.cc

Issue 180743019: Experimental parser: more cleanup after rebase (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 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/lexer/lexer.cc ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 experimental_tokens[i].Print("Actual: "); 354 experimental_tokens[i].Print("Actual: ");
355 exit(1); 355 exit(1);
356 } 356 }
357 } 357 }
358 } 358 }
359 return std::make_pair(baseline_time, experimental_time); 359 return std::make_pair(baseline_time, experimental_time);
360 } 360 }
361 361
362 362
363 int main(int argc, char* argv[]) { 363 int main(int argc, char* argv[]) {
364 return 0;
364 v8::V8::InitializeICU(); 365 v8::V8::InitializeICU();
365 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); 366 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
366 std::vector<std::string> fnames; 367 std::vector<std::string> fnames;
367 std::string benchmark; 368 std::string benchmark;
368 LexerShellSettings settings; 369 LexerShellSettings settings;
369 for (int i = 0; i < argc; ++i) { 370 for (int i = 0; i < argc; ++i) {
370 if (strcmp(argv[i], "--latin1") == 0) { 371 if (strcmp(argv[i], "--latin1") == 0) {
371 settings.encoding = LATIN1; 372 settings.encoding = LATIN1;
372 } else if (strcmp(argv[i], "--utf8") == 0) { 373 } else if (strcmp(argv[i], "--utf8") == 0) {
373 settings.encoding = UTF8; 374 settings.encoding = UTF8;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 if (settings.run_experimental) { 436 if (settings.run_experimental) {
436 if (benchmark.empty()) benchmark = "Experimental"; 437 if (benchmark.empty()) benchmark = "Experimental";
437 printf("%s(RunTime): %.f ms\n", benchmark.c_str(), 438 printf("%s(RunTime): %.f ms\n", benchmark.c_str(),
438 experimental_total); 439 experimental_total);
439 } 440 }
440 } 441 }
441 } 442 }
442 v8::V8::Dispose(); 443 v8::V8::Dispose();
443 return 0; 444 return 0;
444 } 445 }
OLDNEW
« no previous file with comments | « src/lexer/lexer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698