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/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 Bootstrap::math_source_paths_, | 59 Bootstrap::math_source_paths_, |
60 Bootstrap::math_patch_paths_), | 60 Bootstrap::math_patch_paths_), |
61 INIT_LIBRARY(ObjectStore::kMirrors, | 61 INIT_LIBRARY(ObjectStore::kMirrors, |
62 mirrors, | 62 mirrors, |
63 Bootstrap::mirrors_source_paths_, | 63 Bootstrap::mirrors_source_paths_, |
64 Bootstrap::mirrors_patch_paths_), | 64 Bootstrap::mirrors_patch_paths_), |
65 INIT_LIBRARY(ObjectStore::kTypedData, | 65 INIT_LIBRARY(ObjectStore::kTypedData, |
66 typed_data, | 66 typed_data, |
67 Bootstrap::typed_data_source_paths_, | 67 Bootstrap::typed_data_source_paths_, |
68 Bootstrap::typed_data_patch_paths_), | 68 Bootstrap::typed_data_patch_paths_), |
69 INIT_LIBRARY(ObjectStore::kUtf, | |
70 utf, | |
71 Bootstrap::utf_source_paths_, | |
72 NULL), | |
73 | 69 |
74 { ObjectStore::kNone, NULL, NULL, NULL, NULL } | 70 { ObjectStore::kNone, NULL, NULL, NULL, NULL } |
75 }; | 71 }; |
76 | 72 |
77 | 73 |
78 static RawString* GetLibrarySource(const Library& lib, | 74 static RawString* GetLibrarySource(const Library& lib, |
79 const String& uri, | 75 const String& uri, |
80 bool patch) { | 76 bool patch) { |
81 // First check if this is a valid boot strap library and find it's index | 77 // First check if this is a valid boot strap library and find it's index |
82 // in the 'bootstrap_libraries' table above. | 78 // in the 'bootstrap_libraries' table above. |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // Exit the Dart scope. | 312 // Exit the Dart scope. |
317 Dart_ExitScope(); | 313 Dart_ExitScope(); |
318 | 314 |
319 // Restore the library tag handler for the isolate. | 315 // Restore the library tag handler for the isolate. |
320 isolate->set_library_tag_handler(saved_tag_handler); | 316 isolate->set_library_tag_handler(saved_tag_handler); |
321 | 317 |
322 return error.raw(); | 318 return error.raw(); |
323 } | 319 } |
324 | 320 |
325 } // namespace dart | 321 } // namespace dart |
OLD | NEW |