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

Side by Side Diff: tools/parser-shell.cc

Issue 367293002: Buildfix for windows after r22180 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « tools/lexer-shell.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 fprintf(stderr, "Parsing failed\n"); 115 fprintf(stderr, "Parsing failed\n");
116 return std::make_pair(v8::base::TimeDelta(), v8::base::TimeDelta()); 116 return std::make_pair(v8::base::TimeDelta(), v8::base::TimeDelta());
117 } 117 }
118 } 118 }
119 return std::make_pair(parse_time1, parse_time2); 119 return std::make_pair(parse_time1, parse_time2);
120 } 120 }
121 121
122 122
123 int main(int argc, char* argv[]) { 123 int main(int argc, char* argv[]) {
124 v8::V8::InitializeICU(); 124 v8::V8::InitializeICU();
125 v8::Platform* platform = v8::platform::CreateDefaultPlatform( 125 v8::Platform* platform = v8::platform::CreateDefaultPlatform();
126 v8::base::OS::NumberOfProcessorsOnline());
127 v8::V8::InitializePlatform(platform); 126 v8::V8::InitializePlatform(platform);
128 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); 127 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
129 Encoding encoding = LATIN1; 128 Encoding encoding = LATIN1;
130 std::vector<std::string> fnames; 129 std::vector<std::string> fnames;
131 std::string benchmark; 130 std::string benchmark;
132 int repeat = 1; 131 int repeat = 1;
133 for (int i = 0; i < argc; ++i) { 132 for (int i = 0; i < argc; ++i) {
134 if (strcmp(argv[i], "--latin1") == 0) { 133 if (strcmp(argv[i], "--latin1") == 0) {
135 encoding = LATIN1; 134 encoding = LATIN1;
136 } else if (strcmp(argv[i], "--utf8") == 0) { 135 } else if (strcmp(argv[i], "--utf8") == 0) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 first_parse_total); 168 first_parse_total);
170 printf("%s(SecondParseRunTime): %.f ms\n", benchmark.c_str(), 169 printf("%s(SecondParseRunTime): %.f ms\n", benchmark.c_str(),
171 second_parse_total); 170 second_parse_total);
172 } 171 }
173 } 172 }
174 v8::V8::Dispose(); 173 v8::V8::Dispose();
175 v8::V8::ShutdownPlatform(); 174 v8::V8::ShutdownPlatform();
176 delete platform; 175 delete platform;
177 return 0; 176 return 0;
178 } 177 }
OLDNEW
« no previous file with comments | « tools/lexer-shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698