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

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

Issue 125133002: ARM: Enable the subnormal floats on QNX. Base URL: git://github.com/v8/v8.git@master
Patch Set: Reworked CL Created 6 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
« include/v8.h ('K') | « test/cctest/cctest.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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 fname, isolate, encoding, print_tokens, 210 fname, isolate, encoding, print_tokens,
211 &baseline_tokens, repeat); 211 &baseline_tokens, repeat);
212 if (print_tokens) { 212 if (print_tokens) {
213 PrintTokens("Baseline", baseline_tokens); 213 PrintTokens("Baseline", baseline_tokens);
214 } 214 }
215 return baseline_time; 215 return baseline_time;
216 } 216 }
217 217
218 218
219 int main(int argc, char* argv[]) { 219 int main(int argc, char* argv[]) {
220 v8::V8::PerThreadSetUp();
220 v8::V8::InitializeICU(); 221 v8::V8::InitializeICU();
221 v8::V8::SetFlagsFromCommandLine(&argc, argv, true); 222 v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
222 Encoding encoding = LATIN1; 223 Encoding encoding = LATIN1;
223 bool print_tokens = false; 224 bool print_tokens = false;
224 std::vector<std::string> fnames; 225 std::vector<std::string> fnames;
225 std::string benchmark; 226 std::string benchmark;
226 int repeat = 1; 227 int repeat = 1;
227 for (int i = 0; i < argc; ++i) { 228 for (int i = 0; i < argc; ++i) {
228 if (strcmp(argv[i], "--latin1") == 0) { 229 if (strcmp(argv[i], "--latin1") == 0) {
229 encoding = LATIN1; 230 encoding = LATIN1;
(...skipping 28 matching lines...) Expand all
258 repeat); 259 repeat);
259 baseline_total += time.InMillisecondsF(); 260 baseline_total += time.InMillisecondsF();
260 } 261 }
261 if (benchmark.empty()) benchmark = "Baseline"; 262 if (benchmark.empty()) benchmark = "Baseline";
262 printf("%s(RunTime): %.f ms\n", benchmark.c_str(), baseline_total); 263 printf("%s(RunTime): %.f ms\n", benchmark.c_str(), baseline_total);
263 } 264 }
264 } 265 }
265 v8::V8::Dispose(); 266 v8::V8::Dispose();
266 return 0; 267 return 0;
267 } 268 }
OLDNEW
« include/v8.h ('K') | « test/cctest/cctest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698