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 "vm/bootstrap.h" | 5 #include "vm/bootstrap.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 | 8 |
9 #include "vm/bootstrap_natives.h" | 9 #include "vm/bootstrap_natives.h" |
10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 const char* uri_; | 26 const char* uri_; |
27 const char** source_paths_; | 27 const char** source_paths_; |
28 const char* patch_uri_; | 28 const char* patch_uri_; |
29 const char** patch_paths_; | 29 const char** patch_paths_; |
30 } bootstrap_lib_props; | 30 } bootstrap_lib_props; |
31 | 31 |
32 | 32 |
33 static bootstrap_lib_props bootstrap_libraries[] = { | 33 static bootstrap_lib_props bootstrap_libraries[] = { |
34 INIT_LIBRARY(ObjectStore::kCore, | 34 INIT_LIBRARY(ObjectStore::kCore, |
35 core, | 35 core, |
36 Bootstrap::corelib_source_paths_, | 36 Bootstrap::core_source_paths_, |
37 Bootstrap::corelib_patch_paths_), | 37 Bootstrap::core_patch_paths_), |
38 INIT_LIBRARY(ObjectStore::kAsync, | 38 INIT_LIBRARY(ObjectStore::kAsync, |
39 async, | 39 async, |
40 Bootstrap::async_source_paths_, | 40 Bootstrap::async_source_paths_, |
41 Bootstrap::async_patch_paths_), | 41 Bootstrap::async_patch_paths_), |
42 INIT_LIBRARY(ObjectStore::kConvert, | 42 INIT_LIBRARY(ObjectStore::kConvert, |
43 convert, | 43 convert, |
44 Bootstrap::convert_source_paths_, | 44 Bootstrap::convert_source_paths_, |
45 Bootstrap::convert_patch_paths_), | 45 Bootstrap::convert_patch_paths_), |
46 INIT_LIBRARY(ObjectStore::kCollection, | 46 INIT_LIBRARY(ObjectStore::kCollection, |
47 collection, | 47 collection, |
48 Bootstrap::collection_source_paths_, | 48 Bootstrap::collection_source_paths_, |
49 Bootstrap::collection_patch_paths_), | 49 Bootstrap::collection_patch_paths_), |
50 INIT_LIBRARY(ObjectStore::kInternal, | 50 INIT_LIBRARY(ObjectStore::kInternal, |
51 _internal, | 51 _internal, |
52 Bootstrap::internal_source_paths_, | 52 Bootstrap::_internal_source_paths_, |
53 Bootstrap::internal_patch_paths_), | 53 Bootstrap::_internal_patch_paths_), |
54 INIT_LIBRARY(ObjectStore::kIsolate, | 54 INIT_LIBRARY(ObjectStore::kIsolate, |
55 isolate, | 55 isolate, |
56 Bootstrap::isolate_source_paths_, | 56 Bootstrap::isolate_source_paths_, |
57 Bootstrap::isolate_patch_paths_), | 57 Bootstrap::isolate_patch_paths_), |
58 INIT_LIBRARY(ObjectStore::kMath, | 58 INIT_LIBRARY(ObjectStore::kMath, |
59 math, | 59 math, |
60 Bootstrap::math_source_paths_, | 60 Bootstrap::math_source_paths_, |
61 Bootstrap::math_patch_paths_), | 61 Bootstrap::math_patch_paths_), |
62 INIT_LIBRARY(ObjectStore::kMirrors, | 62 INIT_LIBRARY(ObjectStore::kMirrors, |
63 mirrors, | 63 mirrors, |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 Compiler::CompileClass(cls); | 326 Compiler::CompileClass(cls); |
327 } | 327 } |
328 | 328 |
329 // Restore the library tag handler for the isolate. | 329 // Restore the library tag handler for the isolate. |
330 isolate->set_library_tag_handler(saved_tag_handler); | 330 isolate->set_library_tag_handler(saved_tag_handler); |
331 | 331 |
332 return error.raw(); | 332 return error.raw(); |
333 } | 333 } |
334 | 334 |
335 } // namespace dart | 335 } // namespace dart |
OLD | NEW |