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

Unified Diff: runtime/vm/dart.cc

Issue 8851008: Add support for interrupting an isolate in the vm. Interrupts are (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
Index: runtime/vm/dart.cc
===================================================================
--- runtime/vm/dart.cc (revision 2528)
+++ runtime/vm/dart.cc (working copy)
@@ -24,7 +24,8 @@
Isolate* Dart::vm_isolate_ = NULL;
DebugInfo* Dart::pprof_symbol_generator_ = NULL;
-bool Dart::InitOnce(Dart_IsolateCreateCallback callback) {
+bool Dart::InitOnce(Dart_IsolateCreateCallback create,
+ Dart_IsolateInterruptCallback interrupt) {
// TODO(iposva): Fix race condition here.
if (vm_isolate_ != NULL || !Flags::Initialized()) {
return false;
@@ -48,7 +49,8 @@
Scanner::InitOnce();
}
Isolate::SetCurrent(NULL); // Unregister the VM isolate from this thread.
- Isolate::SetCreateCallback(callback);
+ Isolate::SetCreateCallback(create);
+ Isolate::SetInterruptCallback(interrupt);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698