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

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

Issue 271153002: Add pause/resume for isolates in vmservice/observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/object.dart ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 return error; 1268 return error;
1269 } 1269 }
1270 return Api::Success(); 1270 return Api::Success();
1271 } 1271 }
1272 1272
1273 1273
1274 DART_EXPORT bool Dart_HandleServiceMessages() { 1274 DART_EXPORT bool Dart_HandleServiceMessages() {
1275 Isolate* isolate = Isolate::Current(); 1275 Isolate* isolate = Isolate::Current();
1276 CHECK_ISOLATE_SCOPE(isolate); 1276 CHECK_ISOLATE_SCOPE(isolate);
1277 CHECK_CALLBACK_STATE(isolate); 1277 CHECK_CALLBACK_STATE(isolate);
1278
1279 ASSERT(isolate->GetAndClearResumeRequest() == false);
1278 isolate->message_handler()->HandleOOBMessages(); 1280 isolate->message_handler()->HandleOOBMessages();
1279 // TODO(turnidge): The return value here should indicate whether an 1281 return isolate->GetAndClearResumeRequest();
1280 // OOB message should cause the program to resume. Implement.
1281 return false;
1282 } 1282 }
1283 1283
1284 1284
1285 DART_EXPORT bool Dart_HasLivePorts() { 1285 DART_EXPORT bool Dart_HasLivePorts() {
1286 Isolate* isolate = Isolate::Current(); 1286 Isolate* isolate = Isolate::Current();
1287 ASSERT(isolate); 1287 ASSERT(isolate);
1288 return isolate->message_handler()->HasLivePorts(); 1288 return isolate->message_handler()->HasLivePorts();
1289 } 1289 }
1290 1290
1291 1291
(...skipping 3493 matching lines...) Expand 10 before | Expand all | Expand 10 after
4785 4785
4786 4786
4787 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 4787 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
4788 const char* name, 4788 const char* name,
4789 Dart_ServiceRequestCallback callback, 4789 Dart_ServiceRequestCallback callback,
4790 void* user_data) { 4790 void* user_data) {
4791 Service::RegisterRootEmbedderCallback(name, callback, user_data); 4791 Service::RegisterRootEmbedderCallback(name, callback, user_data);
4792 } 4792 }
4793 4793
4794 } // namespace dart 4794 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/service/object.dart ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698