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

Side by Side Diff: runtime/bin/run_vm_tests.cc

Issue 415513002: - Fix a lot of warnings generated by -Wshorten-64-to-32 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « no previous file | runtime/platform/thread_macos.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <stdio.h> 5 #include <stdio.h>
6 6
7 #include "bin/file.h" 7 #include "bin/file.h"
8 8
9 #include "vm/benchmark_test.h" 9 #include "vm/benchmark_test.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 29 matching lines...) Expand all
40 fprintf(stdout, "%s\n", this->name()); 40 fprintf(stdout, "%s\n", this->name());
41 run_matches++; 41 run_matches++;
42 } 42 }
43 } 43 }
44 44
45 45
46 void Benchmark::RunBenchmark() { 46 void Benchmark::RunBenchmark() {
47 if ((run_filter == kAllBenchmarks) || 47 if ((run_filter == kAllBenchmarks) ||
48 (strcmp(run_filter, this->name()) == 0)) { 48 (strcmp(run_filter, this->name()) == 0)) {
49 this->Run(); 49 this->Run();
50 OS::Print("%s(%s): %" Pd "\n", 50 OS::Print("%s(%s): %" Pd64 "\n",
51 this->name(), this->score_kind(), this->score()); 51 this->name(), this->score_kind(), this->score());
52 run_matches++; 52 run_matches++;
53 } else if (run_filter == kList) { 53 } else if (run_filter == kList) {
54 fprintf(stdout, "%s\n", this->name()); 54 fprintf(stdout, "%s\n", this->name());
55 run_matches++; 55 run_matches++;
56 } 56 }
57 } 57 }
58 58
59 59
60 static void PrintUsage() { 60 static void PrintUsage() {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 return 0; 117 return 0;
118 } 118 }
119 119
120 } // namespace dart 120 } // namespace dart
121 121
122 122
123 int main(int argc, const char** argv) { 123 int main(int argc, const char** argv) {
124 return dart::Main(argc, argv); 124 return dart::Main(argc, argv);
125 } 125 }
OLDNEW
« no previous file with comments | « no previous file | runtime/platform/thread_macos.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698