| OLD | NEW |
| 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/dartutils.h" | 7 #include "bin/dartutils.h" |
| 8 #include "bin/dfe.h" |
| 8 #include "bin/file.h" | 9 #include "bin/file.h" |
| 9 #include "bin/loader.h" | 10 #include "bin/loader.h" |
| 10 #include "bin/platform.h" | 11 #include "bin/platform.h" |
| 11 #include "bin/snapshot_utils.h" | 12 #include "bin/snapshot_utils.h" |
| 12 #include "platform/assert.h" | 13 #include "platform/assert.h" |
| 13 #include "vm/benchmark_test.h" | 14 #include "vm/benchmark_test.h" |
| 14 #include "vm/dart.h" | 15 #include "vm/dart.h" |
| 15 #include "vm/unit_test.h" | 16 #include "vm/unit_test.h" |
| 16 | 17 |
| 17 extern "C" { | 18 extern "C" { |
| 18 extern const uint8_t kDartVmSnapshotData[]; | 19 extern const uint8_t kDartVmSnapshotData[]; |
| 19 extern const uint8_t kDartVmSnapshotInstructions[]; | 20 extern const uint8_t kDartVmSnapshotInstructions[]; |
| 20 extern const uint8_t kDartCoreIsolateSnapshotData[]; | 21 extern const uint8_t kDartCoreIsolateSnapshotData[]; |
| 21 extern const uint8_t kDartCoreIsolateSnapshotInstructions[]; | 22 extern const uint8_t kDartCoreIsolateSnapshotInstructions[]; |
| 22 } | 23 } |
| 23 | 24 |
| 24 // TODO(iposva, asiva): This is a placeholder for the real unittest framework. | 25 // TODO(iposva, asiva): This is a placeholder for the real unittest framework. |
| 25 namespace dart { | 26 namespace dart { |
| 26 | 27 |
| 28 namespace bin { |
| 29 DFE dfe; |
| 30 } |
| 31 |
| 27 // Defined in vm/os_thread_win.cc | 32 // Defined in vm/os_thread_win.cc |
| 28 extern bool private_flag_windows_run_tls_destructors; | 33 extern bool private_flag_windows_run_tls_destructors; |
| 29 | 34 |
| 30 // Snapshot pieces when we link in a snapshot. | 35 // Snapshot pieces when we link in a snapshot. |
| 31 #if defined(DART_NO_SNAPSHOT) | 36 #if defined(DART_NO_SNAPSHOT) |
| 32 #error "run_vm_tests must be built with a snapshot" | 37 #error "run_vm_tests must be built with a snapshot" |
| 33 #else | 38 #else |
| 34 const uint8_t* bin::vm_snapshot_data = kDartVmSnapshotData; | 39 const uint8_t* bin::vm_snapshot_data = kDartVmSnapshotData; |
| 35 const uint8_t* bin::vm_snapshot_instructions = kDartVmSnapshotInstructions; | 40 const uint8_t* bin::vm_snapshot_instructions = kDartVmSnapshotInstructions; |
| 36 const uint8_t* bin::core_isolate_snapshot_data = kDartCoreIsolateSnapshotData; | 41 const uint8_t* bin::core_isolate_snapshot_data = kDartCoreIsolateSnapshotData; |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 } | 272 } |
| 268 return 0; | 273 return 0; |
| 269 } | 274 } |
| 270 | 275 |
| 271 } // namespace dart | 276 } // namespace dart |
| 272 | 277 |
| 273 | 278 |
| 274 int main(int argc, const char** argv) { | 279 int main(int argc, const char** argv) { |
| 275 dart::bin::Platform::Exit(dart::Main(argc, argv)); | 280 dart::bin::Platform::Exit(dart::Main(argc, argv)); |
| 276 } | 281 } |
| OLD | NEW |