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 #ifndef VM_SERVICE_EVENT_H_ | 5 #ifndef VM_SERVICE_EVENT_H_ |
6 #define VM_SERVICE_EVENT_H_ | 6 #define VM_SERVICE_EVENT_H_ |
7 | 7 |
8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 kIsolateUpdate, // Isolate identity information has changed | 30 kIsolateUpdate, // Isolate identity information has changed |
31 kIsolateReload, // Result of a reload request | 31 kIsolateReload, // Result of a reload request |
32 kIsolateSpawn, // Result of an isolate spawn request | 32 kIsolateSpawn, // Result of an isolate spawn request |
33 kServiceExtensionAdded, // A service extension was registered | 33 kServiceExtensionAdded, // A service extension was registered |
34 | 34 |
35 kPauseStart, // --pause-isolates-on-start | 35 kPauseStart, // --pause-isolates-on-start |
36 kPauseExit, // --pause-isolates-on-exit | 36 kPauseExit, // --pause-isolates-on-exit |
37 kPauseBreakpoint, | 37 kPauseBreakpoint, |
38 kPauseInterrupted, | 38 kPauseInterrupted, |
39 kPauseException, | 39 kPauseException, |
40 kNone, // isolate has not been made runnable yet. | 40 kPausePostRequest, // isolate is paused after a service request. |
| 41 kNone, // isolate has not been made runnable yet. |
41 kResume, | 42 kResume, |
42 kBreakpointAdded, | 43 kBreakpointAdded, |
43 kBreakpointResolved, | 44 kBreakpointResolved, |
44 kBreakpointRemoved, | 45 kBreakpointRemoved, |
45 kInspect, | 46 kInspect, |
46 kDebuggerSettingsUpdate, | 47 kDebuggerSettingsUpdate, |
47 | 48 |
48 kGC, | 49 kGC, |
49 | 50 |
50 kEmbedder, | 51 kEmbedder, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 86 |
86 EventKind kind() const { return kind_; } | 87 EventKind kind() const { return kind_; } |
87 | 88 |
88 bool IsPause() const { | 89 bool IsPause() const { |
89 switch (kind()) { | 90 switch (kind()) { |
90 case kPauseStart: | 91 case kPauseStart: |
91 case kPauseExit: | 92 case kPauseExit: |
92 case kPauseBreakpoint: | 93 case kPauseBreakpoint: |
93 case kPauseInterrupted: | 94 case kPauseInterrupted: |
94 case kPauseException: | 95 case kPauseException: |
| 96 case kPausePostRequest: |
95 return true; | 97 return true; |
96 default: | 98 default: |
97 return false; | 99 return false; |
98 } | 100 } |
99 } | 101 } |
100 | 102 |
101 const char* embedder_kind() const { return embedder_kind_; } | 103 const char* embedder_kind() const { return embedder_kind_; } |
102 | 104 |
103 const char* KindAsCString() const; | 105 const char* KindAsCString() const; |
104 | 106 |
(...skipping 19 matching lines...) Expand all Loading... |
124 breakpoint_ = bpt; | 126 breakpoint_ = bpt; |
125 } | 127 } |
126 | 128 |
127 ActivationFrame* top_frame() const { | 129 ActivationFrame* top_frame() const { |
128 return top_frame_; | 130 return top_frame_; |
129 } | 131 } |
130 void set_top_frame(ActivationFrame* frame) { | 132 void set_top_frame(ActivationFrame* frame) { |
131 ASSERT(kind() == kPauseBreakpoint || | 133 ASSERT(kind() == kPauseBreakpoint || |
132 kind() == kPauseInterrupted || | 134 kind() == kPauseInterrupted || |
133 kind() == kPauseException || | 135 kind() == kPauseException || |
| 136 kind() == kPausePostRequest || |
134 kind() == kResume); | 137 kind() == kResume); |
135 top_frame_ = frame; | 138 top_frame_ = frame; |
136 } | 139 } |
137 | 140 |
138 const String* extension_rpc() const { | 141 const String* extension_rpc() const { |
139 return extension_rpc_; | 142 return extension_rpc_; |
140 } | 143 } |
141 void set_extension_rpc(const String* extension_rpc) { | 144 void set_extension_rpc(const String* extension_rpc) { |
142 extension_rpc_ = extension_rpc; | 145 extension_rpc_ = extension_rpc; |
143 } | 146 } |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 const uint8_t* bytes_; | 262 const uint8_t* bytes_; |
260 intptr_t bytes_length_; | 263 intptr_t bytes_length_; |
261 LogRecord log_record_; | 264 LogRecord log_record_; |
262 ExtensionEvent extension_event_; | 265 ExtensionEvent extension_event_; |
263 int64_t timestamp_; | 266 int64_t timestamp_; |
264 }; | 267 }; |
265 | 268 |
266 } // namespace dart | 269 } // namespace dart |
267 | 270 |
268 #endif // VM_SERVICE_EVENT_H_ | 271 #endif // VM_SERVICE_EVENT_H_ |
OLD | NEW |