| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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; | |
| 15 class RawScript; | 14 class RawScript; |
| 16 class Script; | 15 class Script; |
| 17 | 16 |
| 18 class Bootstrap : public AllStatic { | 17 class Bootstrap : public AllStatic { |
| 19 public: | 18 public: |
| 20 static RawScript* LoadScript(); | 19 static RawScript* LoadScript(); |
| 21 static RawScript* LoadImplScript(); | 20 static RawScript* LoadImplScript(); |
| 22 static RawError* Compile(const Library& library, const Script& script); | 21 static void Compile(const Library& library, const Script& script); |
| 23 static void SetupNativeResolver(); | 22 static void SetupNativeResolver(); |
| 24 | 23 |
| 25 private: | 24 private: |
| 26 static const char corelib_source_[]; | 25 static const char corelib_source_[]; |
| 27 static const char corelib_impl_source_[]; | 26 static const char corelib_impl_source_[]; |
| 28 }; | 27 }; |
| 29 | 28 |
| 30 } // namespace dart | 29 } // namespace dart |
| 31 | 30 |
| 32 #endif // VM_BOOTSTRAP_H_ | 31 #endif // VM_BOOTSTRAP_H_ |
| OLD | NEW |