| 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 #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/compiler.h" | 10 #include "vm/compiler.h" |
| 10 #include "vm/dart_api_impl.h" | 11 #include "vm/dart_api_impl.h" |
| 11 #include "vm/object.h" | 12 #include "vm/object.h" |
| 12 #include "vm/object_store.h" | 13 #include "vm/object_store.h" |
| 13 | 14 |
| 14 namespace dart { | 15 namespace dart { |
| 15 | 16 |
| 16 DEFINE_FLAG(bool, print_bootstrap, false, "Print the bootstrap source."); | 17 DEFINE_FLAG(bool, print_bootstrap, false, "Print the bootstrap source."); |
| 17 | 18 |
| 18 | 19 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 const Error& error = Error::Handle(Compiler::Compile(library, script)); | 73 const Error& error = Error::Handle(Compiler::Compile(library, script)); |
| 73 if (error.IsNull()) { | 74 if (error.IsNull()) { |
| 74 library.SetLoaded(); | 75 library.SetLoaded(); |
| 75 } else { | 76 } else { |
| 76 library.SetLoadError(); | 77 library.SetLoadError(); |
| 77 } | 78 } |
| 78 return error.raw(); | 79 return error.raw(); |
| 79 } | 80 } |
| 80 | 81 |
| 81 } // namespace dart | 82 } // namespace dart |
| OLD | NEW |