Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: runtime/vm/service_event.cc

Issue 1007863003: Allow Observatory debugger to switch isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/service_event.h ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/service_event.h ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698