| 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 #ifndef BIN_DBG_MESSAGE_H_ | 5 #ifndef BIN_DBG_MESSAGE_H_ |
| 6 #define BIN_DBG_MESSAGE_H_ | 6 #define BIN_DBG_MESSAGE_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/utils.h" | 9 #include "bin/utils.h" |
| 10 | 10 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // Get Debugger Message Queue corresponding to the Isolate. | 229 // Get Debugger Message Queue corresponding to the Isolate. |
| 230 static DbgMsgQueue* GetIsolateMsgQueue(Dart_IsolateId isolate_id); | 230 static DbgMsgQueue* GetIsolateMsgQueue(Dart_IsolateId isolate_id); |
| 231 | 231 |
| 232 // Remove Debugger Message Queue corresponding to the Isolate. | 232 // Remove Debugger Message Queue corresponding to the Isolate. |
| 233 static void RemoveIsolateMsgQueue(Dart_IsolateId isolate_id); | 233 static void RemoveIsolateMsgQueue(Dart_IsolateId isolate_id); |
| 234 | 234 |
| 235 // Generic handlers for breakpoints, exceptions and delayed breakpoint | 235 // Generic handlers for breakpoints, exceptions and delayed breakpoint |
| 236 // resolution. | 236 // resolution. |
| 237 static void BptResolvedHandler(Dart_IsolateId isolate_id, | 237 static void BptResolvedHandler(Dart_IsolateId isolate_id, |
| 238 intptr_t bp_id, | 238 intptr_t bp_id, |
| 239 Dart_Handle url, | 239 const Dart_CodeLocation& location); |
| 240 intptr_t line_number); | |
| 241 static void PausedEventHandler(Dart_IsolateId isolate_id, | 240 static void PausedEventHandler(Dart_IsolateId isolate_id, |
| 242 const Dart_CodeLocation& loc); | 241 const Dart_CodeLocation& loc); |
| 243 static void ExceptionThrownHandler(Dart_IsolateId isolate_id, | 242 static void ExceptionThrownHandler(Dart_IsolateId isolate_id, |
| 244 Dart_Handle exception, | 243 Dart_Handle exception, |
| 245 Dart_StackTrace stack_trace); | 244 Dart_StackTrace stack_trace); |
| 246 static void IsolateEventHandler(Dart_IsolateId isolate_id, | 245 static void IsolateEventHandler(Dart_IsolateId isolate_id, |
| 247 Dart_IsolateEvent kind); | 246 Dart_IsolateEvent kind); |
| 248 | 247 |
| 249 private: | 248 private: |
| 250 static DbgMsgQueue* GetIsolateMsgQueueLocked(Dart_IsolateId isolate_id); | 249 static DbgMsgQueue* GetIsolateMsgQueueLocked(Dart_IsolateId isolate_id); |
| 251 | 250 |
| 252 static DbgMsgQueue* list_; | 251 static DbgMsgQueue* list_; |
| 253 static dart::Mutex msg_queue_list_lock_; | 252 static dart::Mutex msg_queue_list_lock_; |
| 254 | 253 |
| 255 DISALLOW_ALLOCATION(); | 254 DISALLOW_ALLOCATION(); |
| 256 DISALLOW_IMPLICIT_CONSTRUCTORS(DbgMsgQueueList); | 255 DISALLOW_IMPLICIT_CONSTRUCTORS(DbgMsgQueueList); |
| 257 }; | 256 }; |
| 258 | 257 |
| 259 #endif // BIN_DBG_MESSAGE_H_ | 258 #endif // BIN_DBG_MESSAGE_H_ |
| OLD | NEW |