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

Unified Diff: runtime/vm/dart.cc

Issue 1427583009: 1. Get rid of SwitchIsolateScope as it is not clear when this should be used and there is also a bu… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index e9c578a9d99d97301250818aa13e5dc7301c7e16..0fd5fa7107ab09f8c749cd5202023ed1042bcf4e 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -398,6 +398,17 @@ void Dart::RunShutdownCallback() {
}
+void Dart::ShutdownIsolate(Isolate* isolate) {
+ ASSERT(Isolate::Current() == NULL);
+ // We need to enter the isolate in order to shut it down.
+ Thread::EnterIsolate(isolate);
+ ShutdownIsolate();
+ // Since the isolate is shutdown and deleted, there is no need to
+ // exit the isolate here.
+ ASSERT(Isolate::Current() == NULL);
+}
+
+
void Dart::ShutdownIsolate() {
Isolate* isolate = Isolate::Current();
isolate->Shutdown();
« no previous file with comments | « runtime/vm/dart.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698