OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_tools_api.h" | 5 #include "include/dart_tools_api.h" |
6 | 6 |
7 #include "vm/class_finalizer.h" | 7 #include "vm/class_finalizer.h" |
8 #include "vm/compiler.h" | 8 #include "vm/compiler.h" |
9 #include "vm/dart_api_impl.h" | 9 #include "vm/dart_api_impl.h" |
10 #include "vm/dart_api_state.h" | 10 #include "vm/dart_api_state.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 (*isolate_event_handler)(event->isolate_id(), kCreated); | 166 (*isolate_event_handler)(event->isolate_id(), kCreated); |
167 } | 167 } |
168 } else if (event->kind() == ServiceEvent::kPauseInterrupted) { | 168 } else if (event->kind() == ServiceEvent::kPauseInterrupted) { |
169 if (isolate_event_handler != NULL) { | 169 if (isolate_event_handler != NULL) { |
170 (*isolate_event_handler)(event->isolate_id(), kInterrupted); | 170 (*isolate_event_handler)(event->isolate_id(), kInterrupted); |
171 } | 171 } |
172 } else if (event->kind() == ServiceEvent::kIsolateExit) { | 172 } else if (event->kind() == ServiceEvent::kIsolateExit) { |
173 if (isolate_event_handler != NULL) { | 173 if (isolate_event_handler != NULL) { |
174 (*isolate_event_handler)(event->isolate_id(), kShutdown); | 174 (*isolate_event_handler)(event->isolate_id(), kShutdown); |
175 } | 175 } |
| 176 } else if (event->kind() == ServiceEvent::kPausePostRequest) { |
| 177 // Ignore. |
176 } else { | 178 } else { |
177 UNIMPLEMENTED(); | 179 UNIMPLEMENTED(); |
178 } | 180 } |
179 Dart_ExitScope(); | 181 Dart_ExitScope(); |
180 } | 182 } |
181 | 183 |
182 | 184 |
183 DART_EXPORT void Dart_SetPausedEventHandler(Dart_PausedEventHandler handler) { | 185 DART_EXPORT void Dart_SetPausedEventHandler(Dart_PausedEventHandler handler) { |
184 paused_event_handler = handler; | 186 paused_event_handler = handler; |
185 Debugger::SetEventHandler(DebuggerEventHandler); | 187 Debugger::SetEventHandler(DebuggerEventHandler); |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 | 983 |
982 #else | 984 #else |
983 | 985 |
984 DART_EXPORT void Dart_SetPausedEventHandler(Dart_PausedEventHandler handler) { | 986 DART_EXPORT void Dart_SetPausedEventHandler(Dart_PausedEventHandler handler) { |
985 // NOOP. | 987 // NOOP. |
986 } | 988 } |
987 | 989 |
988 #endif // !PRODUCT | 990 #endif // !PRODUCT |
989 | 991 |
990 } // namespace dart | 992 } // namespace dart |
OLD | NEW |