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

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

Issue 1584443002: VM: Precompiled rodata snapshot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: compute string hash if necessary Created 4 years, 10 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
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_api.h » ('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 (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 #include "bin/dartutils.h" 8 #include "bin/dartutils.h"
9 #include "bin/platform.h" 9 #include "bin/platform.h"
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 run_filter = argv[argc - 1]; 99 run_filter = argv[argc - 1];
100 // Remove the first value (executable) from the arguments and 100 // Remove the first value (executable) from the arguments and
101 // exclude the last argument which is the test name. 101 // exclude the last argument which is the test name.
102 dart_argc = argc - 2; 102 dart_argc = argc - 2;
103 dart_argv = &argv[1]; 103 dart_argv = &argv[1];
104 } 104 }
105 bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc, 105 bool set_vm_flags_success = Flags::ProcessCommandLineFlags(dart_argc,
106 dart_argv); 106 dart_argv);
107 ASSERT(set_vm_flags_success); 107 ASSERT(set_vm_flags_success);
108 const char* err_msg = Dart::InitOnce(dart::bin::vm_isolate_snapshot_buffer, 108 const char* err_msg = Dart::InitOnce(dart::bin::vm_isolate_snapshot_buffer,
109 NULL, 109 NULL, NULL,
110 NULL, NULL, 110 NULL, NULL,
111 dart::bin::DartUtils::OpenFile, 111 dart::bin::DartUtils::OpenFile,
112 dart::bin::DartUtils::ReadFile, 112 dart::bin::DartUtils::ReadFile,
113 dart::bin::DartUtils::WriteFile, 113 dart::bin::DartUtils::WriteFile,
114 dart::bin::DartUtils::CloseFile, 114 dart::bin::DartUtils::CloseFile,
115 NULL, 115 NULL,
116 NULL); 116 NULL);
117 ASSERT(err_msg == NULL); 117 ASSERT(err_msg == NULL);
118 // Apply the filter to all registered tests. 118 // Apply the filter to all registered tests.
119 TestCaseBase::RunAll(); 119 TestCaseBase::RunAll();
(...skipping 17 matching lines...) Expand all
137 } 137 }
138 return 0; 138 return 0;
139 } 139 }
140 140
141 } // namespace dart 141 } // namespace dart
142 142
143 143
144 int main(int argc, const char** argv) { 144 int main(int argc, const char** argv) {
145 return dart::Main(argc, argv); 145 return dart::Main(argc, argv);
146 } 146 }
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698