| 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 #ifndef VM_BOOTSTRAP_H_ | 5 #ifndef VM_BOOTSTRAP_H_ |
| 6 #define VM_BOOTSTRAP_H_ | 6 #define VM_BOOTSTRAP_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| 11 | 11 |
| 12 // Forward declarations. | 12 // Forward declarations. |
| 13 class RawError; | 13 class RawError; |
| 14 | 14 |
| 15 class Bootstrap : public AllStatic { | 15 class Bootstrap : public AllStatic { |
| 16 public: | 16 public: |
| 17 static RawError* LoadandCompileScripts(); | 17 static RawError* LoadandCompileScripts(); |
| 18 static void SetupNativeResolver(); | 18 static void SetupNativeResolver(); |
| 19 | 19 |
| 20 static const char async_source_[]; | 20 // Source path mapping for library URI and 'parts'. |
| 21 static const char* async_source_paths_[]; |
| 22 static const char* corelib_source_paths_[]; |
| 23 static const char* collection_source_paths_[]; |
| 24 static const char* collection_dev_source_paths_[]; |
| 25 static const char* crypto_source_paths_[]; |
| 26 static const char* isolate_source_paths_[]; |
| 27 static const char* json_source_paths_[]; |
| 28 static const char* math_source_paths_[]; |
| 29 static const char* mirrors_source_paths_[]; |
| 30 static const char* typed_data_source_paths_[]; |
| 31 static const char* uri_source_paths_[]; |
| 32 static const char* utf_source_paths_[]; |
| 33 |
| 34 // Patch sources for libaries (concatenated source). |
| 21 static const char async_patch_[]; | 35 static const char async_patch_[]; |
| 22 static const char corelib_source_[]; | |
| 23 static const char corelib_patch_[]; | 36 static const char corelib_patch_[]; |
| 24 static const char collection_source_[]; | |
| 25 static const char collection_patch_[]; | 37 static const char collection_patch_[]; |
| 26 static const char collection_dev_source_[]; | |
| 27 static const char collection_dev_patch_[]; | 38 static const char collection_dev_patch_[]; |
| 28 static const char crypto_source_[]; | |
| 29 static const char isolate_source_[]; | |
| 30 static const char isolate_patch_[]; | 39 static const char isolate_patch_[]; |
| 31 static const char json_source_[]; | |
| 32 static const char json_patch_[]; | 40 static const char json_patch_[]; |
| 33 static const char math_source_[]; | |
| 34 static const char math_patch_[]; | 41 static const char math_patch_[]; |
| 35 static const char mirrors_source_[]; | |
| 36 static const char mirrors_patch_[]; | 42 static const char mirrors_patch_[]; |
| 37 static const char typed_data_source_[]; | |
| 38 static const char typed_data_patch_[]; | 43 static const char typed_data_patch_[]; |
| 39 static const char uri_source_[]; | |
| 40 static const char utf_source_[]; | |
| 41 }; | 44 }; |
| 42 | 45 |
| 43 } // namespace dart | 46 } // namespace dart |
| 44 | 47 |
| 45 #endif // VM_BOOTSTRAP_H_ | 48 #endif // VM_BOOTSTRAP_H_ |
| OLD | NEW |