| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
| 6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
| 7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" |
| 8 | 8 |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "lib/stacktrace.h" | 10 #include "lib/stacktrace.h" |
| (...skipping 5623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5634 | 5634 |
| 5635 // TODO(hausner): move the remaining code below (finalization and | 5635 // TODO(hausner): move the remaining code below (finalization and |
| 5636 // invoing of _completeDeferredLoads) into Isolate::DoneLoading(). | 5636 // invoing of _completeDeferredLoads) into Isolate::DoneLoading(). |
| 5637 | 5637 |
| 5638 // Finalize all classes if needed. | 5638 // Finalize all classes if needed. |
| 5639 Dart_Handle state = Api::CheckAndFinalizePendingClasses(T); | 5639 Dart_Handle state = Api::CheckAndFinalizePendingClasses(T); |
| 5640 if (::Dart_IsError(state)) { | 5640 if (::Dart_IsError(state)) { |
| 5641 return state; | 5641 return state; |
| 5642 } | 5642 } |
| 5643 | 5643 |
| 5644 I->DoneFinalizing(); |
| 5645 |
| 5644 // Now that the newly loaded classes are finalized, notify the debugger | 5646 // Now that the newly loaded classes are finalized, notify the debugger |
| 5645 // that new code has been loaded. If there are latent breakpoints in | 5647 // that new code has been loaded. If there are latent breakpoints in |
| 5646 // the new code, the debugger convert them to unresolved source breakpoints. | 5648 // the new code, the debugger convert them to unresolved source breakpoints. |
| 5647 // The code that completes the futures (invoked below) may call into the | 5649 // The code that completes the futures (invoked below) may call into the |
| 5648 // newly loaded code and trigger one of these breakpoints. | 5650 // newly loaded code and trigger one of these breakpoints. |
| 5649 if (FLAG_support_debugger) { | 5651 if (FLAG_support_debugger) { |
| 5650 I->debugger()->NotifyDoneLoading(); | 5652 I->debugger()->NotifyDoneLoading(); |
| 5651 } | 5653 } |
| 5652 | 5654 |
| 5653 if (FLAG_enable_mirrors) { | 5655 if (FLAG_enable_mirrors) { |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6360 | 6362 |
| 6361 DART_EXPORT bool Dart_IsPrecompiledRuntime() { | 6363 DART_EXPORT bool Dart_IsPrecompiledRuntime() { |
| 6362 #if defined(DART_PRECOMPILED_RUNTIME) | 6364 #if defined(DART_PRECOMPILED_RUNTIME) |
| 6363 return true; | 6365 return true; |
| 6364 #else | 6366 #else |
| 6365 return false; | 6367 return false; |
| 6366 #endif | 6368 #endif |
| 6367 } | 6369 } |
| 6368 | 6370 |
| 6369 } // namespace dart | 6371 } // namespace dart |
| OLD | NEW |