| 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/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
| (...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1558 } | 1558 } |
| 1559 | 1559 |
| 1560 | 1560 |
| 1561 DART_EXPORT bool Dart_HandleServiceMessages() { | 1561 DART_EXPORT bool Dart_HandleServiceMessages() { |
| 1562 Isolate* isolate = Isolate::Current(); | 1562 Isolate* isolate = Isolate::Current(); |
| 1563 CHECK_ISOLATE_SCOPE(isolate); | 1563 CHECK_ISOLATE_SCOPE(isolate); |
| 1564 CHECK_CALLBACK_STATE(isolate); | 1564 CHECK_CALLBACK_STATE(isolate); |
| 1565 | 1565 |
| 1566 ASSERT(isolate->GetAndClearResumeRequest() == false); | 1566 ASSERT(isolate->GetAndClearResumeRequest() == false); |
| 1567 isolate->message_handler()->HandleOOBMessages(); | 1567 isolate->message_handler()->HandleOOBMessages(); |
| 1568 return isolate->GetAndClearResumeRequest(); | 1568 bool resume = isolate->GetAndClearResumeRequest(); |
| 1569 if (resume && Service::NeedsDebuggerEvents()) { |
| 1570 DebuggerEvent resumeEvent(isolate, DebuggerEvent::kIsolateResumed); |
| 1571 Service::HandleDebuggerEvent(&resumeEvent); |
| 1572 } |
| 1573 return resume; |
| 1569 } | 1574 } |
| 1570 | 1575 |
| 1571 | 1576 |
| 1572 DART_EXPORT bool Dart_HasServiceMessages() { | 1577 DART_EXPORT bool Dart_HasServiceMessages() { |
| 1573 Isolate* isolate = Isolate::Current(); | 1578 Isolate* isolate = Isolate::Current(); |
| 1574 ASSERT(isolate); | 1579 ASSERT(isolate); |
| 1575 return isolate->message_handler()->HasOOBMessages(); | 1580 return isolate->message_handler()->HasOOBMessages(); |
| 1576 } | 1581 } |
| 1577 | 1582 |
| 1578 | 1583 |
| (...skipping 3891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5470 | 5475 |
| 5471 | 5476 |
| 5472 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 5477 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
| 5473 const char* name, | 5478 const char* name, |
| 5474 Dart_ServiceRequestCallback callback, | 5479 Dart_ServiceRequestCallback callback, |
| 5475 void* user_data) { | 5480 void* user_data) { |
| 5476 Service::RegisterRootEmbedderCallback(name, callback, user_data); | 5481 Service::RegisterRootEmbedderCallback(name, callback, user_data); |
| 5477 } | 5482 } |
| 5478 | 5483 |
| 5479 } // namespace dart | 5484 } // namespace dart |
| OLD | NEW |