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

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

Issue 1756393002: Fix some service protocol isolate lifecycle races (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
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 #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/debugger.h" 8 #include "vm/debugger.h"
9 9
10 class DebuggerEvent; 10 class DebuggerEvent;
(...skipping 10 matching lines...) Expand all
21 kIsolateExit, // Isolate has exited 21 kIsolateExit, // Isolate has exited
22 kIsolateUpdate, // Isolate identity information has changed 22 kIsolateUpdate, // Isolate identity information has changed
23 23
24 kServiceExtensionAdded, // A service extension was registered 24 kServiceExtensionAdded, // A service extension was registered
25 25
26 kPauseStart, // --pause-isolates-on-start 26 kPauseStart, // --pause-isolates-on-start
27 kPauseExit, // --pause-isolates-on-exit 27 kPauseExit, // --pause-isolates-on-exit
28 kPauseBreakpoint, 28 kPauseBreakpoint,
29 kPauseInterrupted, 29 kPauseInterrupted,
30 kPauseException, 30 kPauseException,
31 kPauseUntilRunnable, // isolate has not been made runnable yet.
31 kResume, 32 kResume,
32 kBreakpointAdded, 33 kBreakpointAdded,
33 kBreakpointResolved, 34 kBreakpointResolved,
34 kBreakpointRemoved, 35 kBreakpointRemoved,
35 kInspect, 36 kInspect,
36 kDebuggerSettingsUpdate, 37 kDebuggerSettingsUpdate,
37 38
38 kGC, 39 kGC,
39 40
40 kEmbedder, 41 kEmbedder,
(...skipping 29 matching lines...) Expand all
70 71
71 EventKind kind() const { return kind_; } 72 EventKind kind() const { return kind_; }
72 73
73 bool IsPause() const { 74 bool IsPause() const {
74 switch (kind()) { 75 switch (kind()) {
75 case kPauseStart: 76 case kPauseStart:
76 case kPauseExit: 77 case kPauseExit:
77 case kPauseBreakpoint: 78 case kPauseBreakpoint:
78 case kPauseInterrupted: 79 case kPauseInterrupted:
79 case kPauseException: 80 case kPauseException:
81 case kPauseUntilRunnable:
80 return true; 82 return true;
81 default: 83 default:
82 return false; 84 return false;
83 } 85 }
84 } 86 }
85 87
86 const char* embedder_kind() const { return embedder_kind_; } 88 const char* embedder_kind() const { return embedder_kind_; }
87 89
88 const char* KindAsCString() const; 90 const char* KindAsCString() const;
89 91
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 const uint8_t* bytes_; 203 const uint8_t* bytes_;
202 intptr_t bytes_length_; 204 intptr_t bytes_length_;
203 LogRecord log_record_; 205 LogRecord log_record_;
204 ExtensionEvent extension_event_; 206 ExtensionEvent extension_event_;
205 int64_t timestamp_; 207 int64_t timestamp_;
206 }; 208 };
207 209
208 } // namespace dart 210 } // namespace dart
209 211
210 #endif // VM_SERVICE_EVENT_H_ 212 #endif // VM_SERVICE_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698