Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 1965823002: Initial isolate reload support (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698