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

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

Issue 1149983003: Reapply "Per-closure breakpoints; restructure breakpoint implementation to keep a list of condition… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 5 years, 6 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/service.cc ('k') | no next file » | 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 exception_(NULL), 43 exception_(NULL),
44 inspectee_(NULL), 44 inspectee_(NULL),
45 gc_stats_(NULL) {} 45 gc_stats_(NULL) {}
46 46
47 explicit ServiceEvent(const DebuggerEvent* debugger_event); 47 explicit ServiceEvent(const DebuggerEvent* debugger_event);
48 48
49 Isolate* isolate() const { return isolate_; } 49 Isolate* isolate() const { return isolate_; }
50 50
51 EventType type() const { return type_; } 51 EventType type() const { return type_; }
52 52
53 SourceBreakpoint* breakpoint() const { 53 Breakpoint* breakpoint() const {
54 return breakpoint_; 54 return breakpoint_;
55 } 55 }
56 void set_breakpoint(SourceBreakpoint* bpt) { 56 void set_breakpoint(Breakpoint* bpt) {
57 ASSERT(type() == kPauseBreakpoint || 57 ASSERT(type() == kPauseBreakpoint ||
58 type() == kBreakpointAdded || 58 type() == kBreakpointAdded ||
59 type() == kBreakpointResolved || 59 type() == kBreakpointResolved ||
60 type() == kBreakpointRemoved); 60 type() == kBreakpointRemoved);
61 breakpoint_ = bpt; 61 breakpoint_ = bpt;
62 } 62 }
63 63
64 ActivationFrame* top_frame() const { 64 ActivationFrame* top_frame() const {
65 return top_frame_; 65 return top_frame_;
66 } 66 }
(...skipping 29 matching lines...) Expand all
96 gc_stats_ = gc_stats; 96 gc_stats_ = gc_stats;
97 } 97 }
98 98
99 void PrintJSON(JSONStream* js) const; 99 void PrintJSON(JSONStream* js) const;
100 100
101 static const char* EventTypeToCString(EventType type); 101 static const char* EventTypeToCString(EventType type);
102 102
103 private: 103 private:
104 Isolate* isolate_; 104 Isolate* isolate_;
105 EventType type_; 105 EventType type_;
106 SourceBreakpoint* breakpoint_; 106 Breakpoint* breakpoint_;
107 ActivationFrame* top_frame_; 107 ActivationFrame* top_frame_;
108 const Object* exception_; 108 const Object* exception_;
109 const Object* inspectee_; 109 const Object* inspectee_;
110 const Heap::GCStats* gc_stats_; 110 const Heap::GCStats* gc_stats_;
111 }; 111 };
112 112
113 } // namespace dart 113 } // namespace dart
114 114
115 #endif // VM_SERVICE_EVENT_H_ 115 #endif // VM_SERVICE_EVENT_H_
OLDNEW
« no previous file with comments | « runtime/vm/service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698