| 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 Library; | 13 class Library; |
| 14 class RawError; | 14 class RawError; |
| 15 class RawScript; | 15 class RawScript; |
| 16 class Script; | 16 class Script; |
| 17 | 17 |
| 18 class Bootstrap : public AllStatic { | 18 class Bootstrap : public AllStatic { |
| 19 public: | 19 public: |
| 20 static RawScript* LoadAsyncScript(bool patch); | 20 static RawScript* LoadAsyncScript(bool patch); |
| 21 static RawScript* LoadCoreScript(bool patch); | 21 static RawScript* LoadCoreScript(bool patch); |
| 22 static RawScript* LoadCollectionScript(bool patch); | 22 static RawScript* LoadCollectionScript(bool patch); |
| 23 static RawScript* LoadCollectionDevScript(bool patch); | 23 static RawScript* LoadCollectionDevScript(bool patch); |
| 24 static RawScript* LoadCryptoScript(bool patch); | 24 static RawScript* LoadCryptoScript(bool patch); |
| 25 static RawScript* LoadIsolateScript(bool patch); | 25 static RawScript* LoadIsolateScript(bool patch); |
| 26 static RawScript* LoadJsonScript(bool patch); | 26 static RawScript* LoadJsonScript(bool patch); |
| 27 static RawScript* LoadMathScript(bool patch); | 27 static RawScript* LoadMathScript(bool patch); |
| 28 static RawScript* LoadMirrorsScript(bool patch); | 28 static RawScript* LoadMirrorsScript(bool patch); |
| 29 static RawScript* LoadScalarlistScript(bool patch); | |
| 30 static RawScript* LoadTypedDataScript(bool patch); | 29 static RawScript* LoadTypedDataScript(bool patch); |
| 31 static RawScript* LoadUriScript(bool patch); | 30 static RawScript* LoadUriScript(bool patch); |
| 32 static RawScript* LoadUtfScript(bool patch); | 31 static RawScript* LoadUtfScript(bool patch); |
| 33 static RawError* Compile(const Library& library, const Script& script); | 32 static RawError* Compile(const Library& library, const Script& script); |
| 34 static void SetupNativeResolver(); | 33 static void SetupNativeResolver(); |
| 35 | 34 |
| 36 private: | 35 private: |
| 37 static RawScript* LoadScript(const char* url, const char* source, bool patch); | 36 static RawScript* LoadScript(const char* url, const char* source, bool patch); |
| 38 | 37 |
| 39 static const char async_source_[]; | 38 static const char async_source_[]; |
| 40 static const char async_patch_[]; | 39 static const char async_patch_[]; |
| 41 static const char corelib_source_[]; | 40 static const char corelib_source_[]; |
| 42 static const char corelib_patch_[]; | 41 static const char corelib_patch_[]; |
| 43 static const char collection_source_[]; | 42 static const char collection_source_[]; |
| 44 static const char collection_dev_source_[]; | 43 static const char collection_dev_source_[]; |
| 45 static const char crypto_source_[]; | 44 static const char crypto_source_[]; |
| 46 static const char isolate_source_[]; | 45 static const char isolate_source_[]; |
| 47 static const char isolate_patch_[]; | 46 static const char isolate_patch_[]; |
| 48 static const char json_source_[]; | 47 static const char json_source_[]; |
| 49 static const char json_patch_[]; | 48 static const char json_patch_[]; |
| 50 static const char math_source_[]; | 49 static const char math_source_[]; |
| 51 static const char math_patch_[]; | 50 static const char math_patch_[]; |
| 52 static const char mirrors_source_[]; | 51 static const char mirrors_source_[]; |
| 53 static const char mirrors_patch_[]; | 52 static const char mirrors_patch_[]; |
| 54 static const char scalarlist_source_[]; | |
| 55 static const char scalarlist_patch_[]; | |
| 56 static const char typeddata_source_[]; | 53 static const char typeddata_source_[]; |
| 57 static const char typeddata_patch_[]; | 54 static const char typeddata_patch_[]; |
| 58 static const char uri_source_[]; | 55 static const char uri_source_[]; |
| 59 static const char utf_source_[]; | 56 static const char utf_source_[]; |
| 60 }; | 57 }; |
| 61 | 58 |
| 62 } // namespace dart | 59 } // namespace dart |
| 63 | 60 |
| 64 #endif // VM_BOOTSTRAP_H_ | 61 #endif // VM_BOOTSTRAP_H_ |
| OLD | NEW |