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

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

Issue 183853025: Experimental parser: cleanup after bleeding_edge merge (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') | 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 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 26 matching lines...) Expand all
37 #include "api.h" 37 #include "api.h"
38 #include "ast.h" 38 #include "ast.h"
39 #include "char-predicates-inl.h" 39 #include "char-predicates-inl.h"
40 #include "messages.h" 40 #include "messages.h"
41 #include "platform.h" 41 #include "platform.h"
42 #include "runtime.h" 42 #include "runtime.h"
43 #include "scanner-character-streams.h" 43 #include "scanner-character-streams.h"
44 #include "scopeinfo.h" 44 #include "scopeinfo.h"
45 #include "string-stream.h" 45 #include "string-stream.h"
46 #include "scanner.h" 46 #include "scanner.h"
47 #include "lexer/lexer.h"
47 48
48 using namespace v8::internal; 49 using namespace v8::internal;
49 50
50 byte* ReadFile(const char* name, const byte** end, int repeat, 51 byte* ReadFile(const char* name, const byte** end, int repeat,
51 bool convert_to_utf16) { 52 bool convert_to_utf16) {
52 FILE* file = fopen(name, "rb"); 53 FILE* file = fopen(name, "rb");
53 if (file == NULL) return NULL; 54 if (file == NULL) return NULL;
54 55
55 fseek(file, 0, SEEK_END); 56 fseek(file, 0, SEEK_END);
56 int file_size = ftell(file); 57 int file_size = ftell(file);
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 if (settings.run_experimental) { 435 if (settings.run_experimental) {
435 if (benchmark.empty()) benchmark = "Experimental"; 436 if (benchmark.empty()) benchmark = "Experimental";
436 printf("%s(RunTime): %.f ms\n", benchmark.c_str(), 437 printf("%s(RunTime): %.f ms\n", benchmark.c_str(),
437 experimental_total); 438 experimental_total);
438 } 439 }
439 } 440 }
440 } 441 }
441 v8::V8::Dispose(); 442 v8::V8::Dispose();
442 return 0; 443 return 0;
443 } 444 }
OLDNEW
« no previous file with comments | « src/lexer/lexer.cc ('k') | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698