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

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

Issue 1299083002: Automagically change the meaning of 'next' to 'async-next' when paused at an async function at awai… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/service_event.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 #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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 ServiceEvent(Isolate* isolate, EventKind event_kind) 53 ServiceEvent(Isolate* isolate, EventKind event_kind)
54 : isolate_(isolate), 54 : isolate_(isolate),
55 kind_(event_kind), 55 kind_(event_kind),
56 embedder_kind_(NULL), 56 embedder_kind_(NULL),
57 embedder_stream_id_(NULL), 57 embedder_stream_id_(NULL),
58 breakpoint_(NULL), 58 breakpoint_(NULL),
59 top_frame_(NULL), 59 top_frame_(NULL),
60 exception_(NULL), 60 exception_(NULL),
61 async_continuation_(NULL), 61 async_continuation_(NULL),
62 at_async_jump_(false),
62 inspectee_(NULL), 63 inspectee_(NULL),
63 gc_stats_(NULL), 64 gc_stats_(NULL),
64 bytes_(NULL), 65 bytes_(NULL),
65 bytes_length_(0) {} 66 bytes_length_(0) {}
66 67
67 explicit ServiceEvent(const DebuggerEvent* debugger_event); 68 explicit ServiceEvent(const DebuggerEvent* debugger_event);
68 69
69 Isolate* isolate() const { return isolate_; } 70 Isolate* isolate() const { return isolate_; }
70 71
71 EventKind kind() const { return kind_; } 72 EventKind kind() const { return kind_; }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 116 }
116 117
117 const Object* async_continuation() const { 118 const Object* async_continuation() const {
118 return async_continuation_; 119 return async_continuation_;
119 } 120 }
120 void set_async_continuation(const Object* closure) { 121 void set_async_continuation(const Object* closure) {
121 ASSERT(kind_ == kPauseBreakpoint); 122 ASSERT(kind_ == kPauseBreakpoint);
122 async_continuation_ = closure; 123 async_continuation_ = closure;
123 } 124 }
124 125
126 bool at_async_jump() const {
127 return at_async_jump_;
128 }
129 void set_at_async_jump(bool value) {
130 at_async_jump_ = value;
131 }
132
125 const Object* inspectee() const { 133 const Object* inspectee() const {
126 return inspectee_; 134 return inspectee_;
127 } 135 }
128 void set_inspectee(const Object* inspectee) { 136 void set_inspectee(const Object* inspectee) {
129 ASSERT(kind_ == kInspect); 137 ASSERT(kind_ == kInspect);
130 inspectee_ = inspectee; 138 inspectee_ = inspectee;
131 } 139 }
132 140
133 const Heap::GCStats* gc_stats() const { 141 const Heap::GCStats* gc_stats() const {
134 return gc_stats_; 142 return gc_stats_;
(...skipping 26 matching lines...) Expand all
161 169
162 private: 170 private:
163 Isolate* isolate_; 171 Isolate* isolate_;
164 EventKind kind_; 172 EventKind kind_;
165 const char* embedder_kind_; 173 const char* embedder_kind_;
166 const char* embedder_stream_id_; 174 const char* embedder_stream_id_;
167 Breakpoint* breakpoint_; 175 Breakpoint* breakpoint_;
168 ActivationFrame* top_frame_; 176 ActivationFrame* top_frame_;
169 const Object* exception_; 177 const Object* exception_;
170 const Object* async_continuation_; 178 const Object* async_continuation_;
179 bool at_async_jump_;
171 const Object* inspectee_; 180 const Object* inspectee_;
172 const Heap::GCStats* gc_stats_; 181 const Heap::GCStats* gc_stats_;
173 const uint8_t* bytes_; 182 const uint8_t* bytes_;
174 intptr_t bytes_length_; 183 intptr_t bytes_length_;
175 LogRecord log_record_; 184 LogRecord log_record_;
176 }; 185 };
177 186
178 } // namespace dart 187 } // namespace dart
179 188
180 #endif // VM_SERVICE_EVENT_H_ 189 #endif // VM_SERVICE_EVENT_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/service_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698