| 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 12 matching lines...) Expand all Loading... |
| 23 #include "vm/message.h" | 23 #include "vm/message.h" |
| 24 #include "vm/message_handler.h" | 24 #include "vm/message_handler.h" |
| 25 #include "vm/native_entry.h" | 25 #include "vm/native_entry.h" |
| 26 #include "vm/object.h" | 26 #include "vm/object.h" |
| 27 #include "vm/object_store.h" | 27 #include "vm/object_store.h" |
| 28 #include "vm/os_thread.h" | 28 #include "vm/os_thread.h" |
| 29 #include "vm/port.h" | 29 #include "vm/port.h" |
| 30 #include "vm/profiler.h" | 30 #include "vm/profiler.h" |
| 31 #include "vm/resolver.h" | 31 #include "vm/resolver.h" |
| 32 #include "vm/reusable_handles.h" | 32 #include "vm/reusable_handles.h" |
| 33 #include "vm/service_event.h" |
| 33 #include "vm/service_isolate.h" | 34 #include "vm/service_isolate.h" |
| 34 #include "vm/service.h" | 35 #include "vm/service.h" |
| 35 #include "vm/stack_frame.h" | 36 #include "vm/stack_frame.h" |
| 36 #include "vm/symbols.h" | 37 #include "vm/symbols.h" |
| 37 #include "vm/tags.h" | 38 #include "vm/tags.h" |
| 38 #include "vm/timer.h" | 39 #include "vm/timer.h" |
| 39 #include "vm/unicode.h" | 40 #include "vm/unicode.h" |
| 40 #include "vm/verifier.h" | 41 #include "vm/verifier.h" |
| 41 #include "vm/version.h" | 42 #include "vm/version.h" |
| 42 | 43 |
| (...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1559 } | 1560 } |
| 1560 | 1561 |
| 1561 | 1562 |
| 1562 DART_EXPORT bool Dart_HandleServiceMessages() { | 1563 DART_EXPORT bool Dart_HandleServiceMessages() { |
| 1563 Isolate* isolate = Isolate::Current(); | 1564 Isolate* isolate = Isolate::Current(); |
| 1564 CHECK_ISOLATE_SCOPE(isolate); | 1565 CHECK_ISOLATE_SCOPE(isolate); |
| 1565 CHECK_CALLBACK_STATE(isolate); | 1566 CHECK_CALLBACK_STATE(isolate); |
| 1566 | 1567 |
| 1567 ASSERT(isolate->GetAndClearResumeRequest() == false); | 1568 ASSERT(isolate->GetAndClearResumeRequest() == false); |
| 1568 isolate->message_handler()->HandleOOBMessages(); | 1569 isolate->message_handler()->HandleOOBMessages(); |
| 1569 bool resume = isolate->GetAndClearResumeRequest(); | 1570 return isolate->GetAndClearResumeRequest(); |
| 1570 if (resume && Service::NeedsDebuggerEvents()) { | |
| 1571 DebuggerEvent resumeEvent(isolate, DebuggerEvent::kIsolateResumed); | |
| 1572 Service::HandleDebuggerEvent(&resumeEvent); | |
| 1573 } | |
| 1574 return resume; | |
| 1575 } | 1571 } |
| 1576 | 1572 |
| 1577 | 1573 |
| 1578 DART_EXPORT bool Dart_HasServiceMessages() { | 1574 DART_EXPORT bool Dart_HasServiceMessages() { |
| 1579 Isolate* isolate = Isolate::Current(); | 1575 Isolate* isolate = Isolate::Current(); |
| 1580 ASSERT(isolate); | 1576 ASSERT(isolate); |
| 1581 return isolate->message_handler()->HasOOBMessages(); | 1577 return isolate->message_handler()->HasOOBMessages(); |
| 1582 } | 1578 } |
| 1583 | 1579 |
| 1584 | 1580 |
| (...skipping 3935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5520 | 5516 |
| 5521 | 5517 |
| 5522 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( | 5518 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( |
| 5523 const char* name, | 5519 const char* name, |
| 5524 Dart_ServiceRequestCallback callback, | 5520 Dart_ServiceRequestCallback callback, |
| 5525 void* user_data) { | 5521 void* user_data) { |
| 5526 Service::RegisterRootEmbedderCallback(name, callback, user_data); | 5522 Service::RegisterRootEmbedderCallback(name, callback, user_data); |
| 5527 } | 5523 } |
| 5528 | 5524 |
| 5529 } // namespace dart | 5525 } // namespace dart |
| OLD | NEW |