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

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

Issue 1965823002: Initial isolate reload support (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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;
11 class TimelineEventBlock; 11 class TimelineEventBlock;
12 12
13 namespace dart { 13 namespace dart {
14 14
15 class ServiceEvent { 15 class ServiceEvent {
16 public: 16 public:
17 enum EventKind { 17 enum EventKind {
18 kVMUpdate, // VM identity information has changed 18 kVMUpdate, // VM identity information has changed
19 19
20 kIsolateStart, // New isolate has started 20 kIsolateStart, // New isolate has started
21 kIsolateRunnable, // Isolate is ready to run 21 kIsolateRunnable, // Isolate is ready to run
22 kIsolateExit, // Isolate has exited 22 kIsolateExit, // Isolate has exited
23 kIsolateUpdate, // Isolate identity information has changed 23 kIsolateUpdate, // Isolate identity information has changed
24 24 kIsolateReload, // Result of a reload request
25 kServiceExtensionAdded, // A service extension was registered 25 kServiceExtensionAdded, // A service extension was registered
26 26
27 kPauseStart, // --pause-isolates-on-start 27 kPauseStart, // --pause-isolates-on-start
28 kPauseExit, // --pause-isolates-on-exit 28 kPauseExit, // --pause-isolates-on-exit
29 kPauseBreakpoint, 29 kPauseBreakpoint,
30 kPauseInterrupted, 30 kPauseInterrupted,
31 kPauseException, 31 kPauseException,
32 kNone, // isolate has not been made runnable yet. 32 kNone, // isolate has not been made runnable yet.
33 kResume, 33 kResume,
34 kBreakpointAdded, 34 kBreakpointAdded,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 const Object* exception() const { 133 const Object* exception() const {
134 return exception_; 134 return exception_;
135 } 135 }
136 void set_exception(const Object* exception) { 136 void set_exception(const Object* exception) {
137 ASSERT(kind_ == kPauseException); 137 ASSERT(kind_ == kPauseException);
138 exception_ = exception; 138 exception_ = exception;
139 } 139 }
140 140
141 const Error* reload_error() const {
142 ASSERT(kind_ == kIsolateReload);
143 return reload_error_;
144 }
145 void set_reload_error(const Error* error) {
146 ASSERT(kind_ == kIsolateReload);
147 reload_error_ = error;
148 }
149
141 bool at_async_jump() const { 150 bool at_async_jump() const {
142 return at_async_jump_; 151 return at_async_jump_;
143 } 152 }
144 void set_at_async_jump(bool value) { 153 void set_at_async_jump(bool value) {
145 at_async_jump_ = value; 154 at_async_jump_ = value;
146 } 155 }
147 156
148 const Object* inspectee() const { 157 const Object* inspectee() const {
149 return inspectee_; 158 return inspectee_;
150 } 159 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 private: 211 private:
203 Isolate* isolate_; 212 Isolate* isolate_;
204 EventKind kind_; 213 EventKind kind_;
205 const char* embedder_kind_; 214 const char* embedder_kind_;
206 const char* embedder_stream_id_; 215 const char* embedder_stream_id_;
207 Breakpoint* breakpoint_; 216 Breakpoint* breakpoint_;
208 ActivationFrame* top_frame_; 217 ActivationFrame* top_frame_;
209 const TimelineEventBlock* timeline_event_block_; 218 const TimelineEventBlock* timeline_event_block_;
210 const String* extension_rpc_; 219 const String* extension_rpc_;
211 const Object* exception_; 220 const Object* exception_;
221 const Error* reload_error_;
212 bool at_async_jump_; 222 bool at_async_jump_;
213 const Object* inspectee_; 223 const Object* inspectee_;
214 const Heap::GCStats* gc_stats_; 224 const Heap::GCStats* gc_stats_;
215 const uint8_t* bytes_; 225 const uint8_t* bytes_;
216 intptr_t bytes_length_; 226 intptr_t bytes_length_;
217 LogRecord log_record_; 227 LogRecord log_record_;
218 ExtensionEvent extension_event_; 228 ExtensionEvent extension_event_;
219 int64_t timestamp_; 229 int64_t timestamp_;
220 }; 230 };
221 231
222 } // namespace dart 232 } // namespace dart
223 233
224 #endif // VM_SERVICE_EVENT_H_ 234 #endif // VM_SERVICE_EVENT_H_
OLDNEW
« runtime/vm/service.cc ('K') | « runtime/vm/service.cc ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698