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