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/compiler.h" | 11 #include "vm/compiler.h" |
11 #include "vm/dart_api_impl.h" | 12 #include "vm/dart_api_impl.h" |
12 #include "vm/object.h" | 13 #include "vm/object.h" |
13 #include "vm/object_store.h" | 14 #include "vm/object_store.h" |
14 #include "vm/symbols.h" | 15 #include "vm/symbols.h" |
15 | 16 |
16 namespace dart { | 17 namespace dart { |
17 | 18 |
18 #define INIT_LIBRARY(index, name, source, patch) \ | 19 #define INIT_LIBRARY(index, name, source, patch) \ |
19 { index, \ | 20 { index, \ |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 lib, | 305 lib, |
305 patch_uri, | 306 patch_uri, |
306 bootstrap_libraries[i].patch_paths_); | 307 bootstrap_libraries[i].patch_paths_); |
307 if (!error.IsNull()) { | 308 if (!error.IsNull()) { |
308 break; | 309 break; |
309 } | 310 } |
310 } | 311 } |
311 } | 312 } |
312 if (error.IsNull()) { | 313 if (error.IsNull()) { |
313 SetupNativeResolver(); | 314 SetupNativeResolver(); |
| 315 ClassFinalizer::ProcessPendingClasses(); |
314 } | 316 } |
315 | 317 |
316 // Restore the library tag handler for the isolate. | 318 // Restore the library tag handler for the isolate. |
317 isolate->set_library_tag_handler(saved_tag_handler); | 319 isolate->set_library_tag_handler(saved_tag_handler); |
318 | 320 |
319 return error.raw(); | 321 return error.raw(); |
320 } | 322 } |
321 | 323 |
322 } // namespace dart | 324 } // namespace dart |
OLD | NEW |