OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |