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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 enum { | 38 enum { |
39 kPathsUriOffset = 0, | 39 kPathsUriOffset = 0, |
40 kPathsFileOffset = 1, | 40 kPathsFileOffset = 1, |
41 kPathsSourceOffset = 2, | 41 kPathsSourceOffset = 2, |
42 kPathsEntryLength = 3 | 42 kPathsEntryLength = 3 |
43 }; | 43 }; |
44 | 44 |
45 | 45 |
46 const char** Bootstrap::profiler_patch_paths_ = NULL; | 46 const char** Bootstrap::profiler_patch_paths_ = NULL; |
47 const char** Bootstrap::typed_data_patch_paths_ = NULL; | |
48 | 47 |
49 | 48 |
50 #define MAKE_PROPERTIES(CamelName, name) \ | 49 #define MAKE_PROPERTIES(CamelName, name) \ |
51 {ObjectStore::k##CamelName, "dart:" #name, Bootstrap::name##_source_paths_, \ | 50 {ObjectStore::k##CamelName, "dart:" #name, Bootstrap::name##_source_paths_, \ |
52 "dart:" #name "-patch", Bootstrap::name##_patch_paths_}, | 51 "dart:" #name "-patch", Bootstrap::name##_patch_paths_}, |
53 | 52 |
54 static const BootstrapLibProps bootstrap_libraries[] = { | 53 static const BootstrapLibProps bootstrap_libraries[] = { |
55 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_PROPERTIES)}; | 54 FOR_EACH_BOOTSTRAP_LIBRARY(MAKE_PROPERTIES)}; |
56 | 55 |
57 #undef MAKE_PROPERTIES | 56 #undef MAKE_PROPERTIES |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 lib.Register(thread); | 392 lib.Register(thread); |
394 isolate->object_store()->set_bootstrap_library(id, lib); | 393 isolate->object_store()->set_bootstrap_library(id, lib); |
395 } | 394 } |
396 } | 395 } |
397 | 396 |
398 return (kernel_program == NULL) ? BootstrapFromSource(thread) | 397 return (kernel_program == NULL) ? BootstrapFromSource(thread) |
399 : BootstrapFromKernel(thread, kernel_program); | 398 : BootstrapFromKernel(thread, kernel_program); |
400 } | 399 } |
401 | 400 |
402 } // namespace dart | 401 } // namespace dart |
OLD | NEW |