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

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 5623 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698