| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 "vm/service_event.h" | 5 #include "vm/service_event.h" |
| 6 | 6 |
| 7 namespace dart { | 7 namespace dart { |
| 8 | 8 |
| 9 // Translate from the legacy DebugEvent to a ServiceEvent. | 9 // Translate from the legacy DebugEvent to a ServiceEvent. |
| 10 static ServiceEvent::EventType TranslateEventType( | 10 static ServiceEvent::EventType TranslateEventType( |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 } | 52 } |
| 53 | 53 |
| 54 | 54 |
| 55 const char* ServiceEvent::EventTypeToCString(EventType type) { | 55 const char* ServiceEvent::EventTypeToCString(EventType type) { |
| 56 switch (type) { | 56 switch (type) { |
| 57 case kIsolateStart: | 57 case kIsolateStart: |
| 58 return "IsolateStart"; | 58 return "IsolateStart"; |
| 59 case kIsolateExit: | 59 case kIsolateExit: |
| 60 return "IsolateExit"; | 60 return "IsolateExit"; |
| 61 case kIsolateUpdate: |
| 62 return "IsolateUpdate"; |
| 61 case kPauseStart: | 63 case kPauseStart: |
| 62 return "PauseStart"; | 64 return "PauseStart"; |
| 63 case kPauseExit: | 65 case kPauseExit: |
| 64 return "PauseExit"; | 66 return "PauseExit"; |
| 65 case kPauseBreakpoint: | 67 case kPauseBreakpoint: |
| 66 return "PauseBreakpoint"; | 68 return "PauseBreakpoint"; |
| 67 case kPauseInterrupted: | 69 case kPauseInterrupted: |
| 68 return "PauseInterrupted"; | 70 return "PauseInterrupted"; |
| 69 case kPauseException: | 71 case kPauseException: |
| 70 return "PauseException"; | 72 return "PauseException"; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 94 if (top_frame() != NULL) { | 96 if (top_frame() != NULL) { |
| 95 JSONObject jsFrame(&jsobj, "topFrame"); | 97 JSONObject jsFrame(&jsobj, "topFrame"); |
| 96 top_frame()->PrintToJSONObject(&jsFrame); | 98 top_frame()->PrintToJSONObject(&jsFrame); |
| 97 } | 99 } |
| 98 if (exception() != NULL) { | 100 if (exception() != NULL) { |
| 99 jsobj.AddProperty("exception", *(exception())); | 101 jsobj.AddProperty("exception", *(exception())); |
| 100 } | 102 } |
| 101 } | 103 } |
| 102 | 104 |
| 103 } // namespace dart | 105 } // namespace dart |
| OLD | NEW |