| 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 29 matching lines...) Expand all Loading... |
| 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::kDebugger, |
| 51 debugger, |
| 52 Bootstrap::debugger_source_paths_, |
| 53 Bootstrap::debugger_patch_paths_), |
| 50 INIT_LIBRARY(ObjectStore::kInternal, | 54 INIT_LIBRARY(ObjectStore::kInternal, |
| 51 _internal, | 55 _internal, |
| 52 Bootstrap::_internal_source_paths_, | 56 Bootstrap::_internal_source_paths_, |
| 53 Bootstrap::_internal_patch_paths_), | 57 Bootstrap::_internal_patch_paths_), |
| 54 INIT_LIBRARY(ObjectStore::kIsolate, | 58 INIT_LIBRARY(ObjectStore::kIsolate, |
| 55 isolate, | 59 isolate, |
| 56 Bootstrap::isolate_source_paths_, | 60 Bootstrap::isolate_source_paths_, |
| 57 Bootstrap::isolate_patch_paths_), | 61 Bootstrap::isolate_patch_paths_), |
| 58 INIT_LIBRARY(ObjectStore::kMath, | 62 INIT_LIBRARY(ObjectStore::kMath, |
| 59 math, | 63 math, |
| 60 Bootstrap::math_source_paths_, | 64 Bootstrap::math_source_paths_, |
| 61 Bootstrap::math_patch_paths_), | 65 Bootstrap::math_patch_paths_), |
| 62 INIT_LIBRARY(ObjectStore::kMirrors, | 66 INIT_LIBRARY(ObjectStore::kMirrors, |
| 63 mirrors, | 67 mirrors, |
| 64 Bootstrap::mirrors_source_paths_, | 68 Bootstrap::mirrors_source_paths_, |
| 65 Bootstrap::mirrors_patch_paths_), | 69 Bootstrap::mirrors_patch_paths_), |
| 70 INIT_LIBRARY(ObjectStore::kProfiler, |
| 71 profiler, |
| 72 Bootstrap::profiler_source_paths_, |
| 73 Bootstrap::profiler_patch_paths_), |
| 66 INIT_LIBRARY(ObjectStore::kTypedData, | 74 INIT_LIBRARY(ObjectStore::kTypedData, |
| 67 typed_data, | 75 typed_data, |
| 68 Bootstrap::typed_data_source_paths_, | 76 Bootstrap::typed_data_source_paths_, |
| 69 Bootstrap::typed_data_patch_paths_), | 77 Bootstrap::typed_data_patch_paths_), |
| 70 | |
| 71 INIT_LIBRARY(ObjectStore::kProfiler, | |
| 72 profiler, | |
| 73 Bootstrap::profiler_source_paths_, | |
| 74 Bootstrap::profiler_patch_paths_), | |
| 75 | |
| 76 { ObjectStore::kNone, NULL, NULL, NULL, NULL } | 78 { ObjectStore::kNone, NULL, NULL, NULL, NULL } |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 | 81 |
| 80 static RawString* GetLibrarySource(const Library& lib, | 82 static RawString* GetLibrarySource(const Library& lib, |
| 81 const String& uri, | 83 const String& uri, |
| 82 bool patch) { | 84 bool patch) { |
| 83 // First check if this is a valid boot strap library and find it's index | 85 // First check if this is a valid boot strap library and find it's index |
| 84 // in the 'bootstrap_libraries' table above. | 86 // in the 'bootstrap_libraries' table above. |
| 85 intptr_t index; | 87 intptr_t index; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 Compiler::CompileClass(cls); | 328 Compiler::CompileClass(cls); |
| 327 } | 329 } |
| 328 | 330 |
| 329 // Restore the library tag handler for the isolate. | 331 // Restore the library tag handler for the isolate. |
| 330 isolate->set_library_tag_handler(saved_tag_handler); | 332 isolate->set_library_tag_handler(saved_tag_handler); |
| 331 | 333 |
| 332 return error.raw(); | 334 return error.raw(); |
| 333 } | 335 } |
| 334 | 336 |
| 335 } // namespace dart | 337 } // namespace dart |
| OLD | NEW |