Changeset 170677 in webkit for trunk/Source/JavaScriptCore/debugger/Breakpoint.h
- Timestamp:
- Jul 1, 2014, 4:40:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/debugger/Breakpoint.h
r162970 r170677 28 28 29 29 #include "DebuggerPrimitives.h" 30 #include <wtf/DoublyLinkedList.h> 31 #include <wtf/RefCounted.h> 30 32 #include <wtf/text/WTFString.h> 31 33 32 34 namespace JSC { 33 35 34 struct Breakpoint {36 struct Breakpoint : public DoublyLinkedListNode<Breakpoint> { 35 37 Breakpoint() 36 38 : id(noBreakpointID) … … 52 54 } 53 55 56 Breakpoint(const Breakpoint& other) 57 : id(other.id) 58 , sourceID(other.sourceID) 59 , line(other.line) 60 , column(other.column) 61 , condition(other.condition) 62 , autoContinue(other.autoContinue) 63 { 64 } 65 54 66 BreakpointID id; 55 67 SourceID sourceID; … … 60 72 61 73 static const unsigned unspecifiedColumn = UINT_MAX; 74 75 private: 76 Breakpoint* m_prev; 77 Breakpoint* m_next; 78 79 friend class WTF::DoublyLinkedListNode<Breakpoint>; 80 }; 81 82 class BreakpointsList : public DoublyLinkedList<Breakpoint>, 83 public RefCounted<BreakpointsList> { 84 public: 85 ~BreakpointsList() 86 { 87 Breakpoint* breakpoint; 88 while ((breakpoint = removeHead())) 89 delete breakpoint; 90 ASSERT(isEmpty()); 91 } 62 92 }; 63 93
Note:
See TracChangeset
for help on using the changeset viewer.