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 5630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5641 | 5641 |
5642 // TODO(hausner): move the remaining code below (finalization and | 5642 // TODO(hausner): move the remaining code below (finalization and |
5643 // invoing of _completeDeferredLoads) into Isolate::DoneLoading(). | 5643 // invoing of _completeDeferredLoads) into Isolate::DoneLoading(). |
5644 | 5644 |
5645 // Finalize all classes if needed. | 5645 // Finalize all classes if needed. |
5646 Dart_Handle state = Api::CheckAndFinalizePendingClasses(T); | 5646 Dart_Handle state = Api::CheckAndFinalizePendingClasses(T); |
5647 if (::Dart_IsError(state)) { | 5647 if (::Dart_IsError(state)) { |
5648 return state; | 5648 return state; |
5649 } | 5649 } |
5650 | 5650 |
| 5651 I->DoneFinalizing(); |
| 5652 |
5651 // Now that the newly loaded classes are finalized, notify the debugger | 5653 // Now that the newly loaded classes are finalized, notify the debugger |
5652 // that new code has been loaded. If there are latent breakpoints in | 5654 // that new code has been loaded. If there are latent breakpoints in |
5653 // the new code, the debugger convert them to unresolved source breakpoints. | 5655 // the new code, the debugger convert them to unresolved source breakpoints. |
5654 // The code that completes the futures (invoked below) may call into the | 5656 // The code that completes the futures (invoked below) may call into the |
5655 // newly loaded code and trigger one of these breakpoints. | 5657 // newly loaded code and trigger one of these breakpoints. |
5656 if (FLAG_support_debugger) { | 5658 if (FLAG_support_debugger) { |
5657 I->debugger()->NotifyDoneLoading(); | 5659 I->debugger()->NotifyDoneLoading(); |
5658 } | 5660 } |
5659 | 5661 |
5660 if (FLAG_enable_mirrors) { | 5662 if (FLAG_enable_mirrors) { |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6364 | 6366 |
6365 DART_EXPORT bool Dart_IsPrecompiledRuntime() { | 6367 DART_EXPORT bool Dart_IsPrecompiledRuntime() { |
6366 #if defined(DART_PRECOMPILED_RUNTIME) | 6368 #if defined(DART_PRECOMPILED_RUNTIME) |
6367 return true; | 6369 return true; |
6368 #else | 6370 #else |
6369 return false; | 6371 return false; |
6370 #endif | 6372 #endif |
6371 } | 6373 } |
6372 | 6374 |
6373 } // namespace dart | 6375 } // namespace dart |
OLD | NEW |