OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_DEBUGGER_H_ | 5 #ifndef VM_DEBUGGER_H_ |
6 #define VM_DEBUGGER_H_ | 6 #define VM_DEBUGGER_H_ |
7 | 7 |
8 #include "include/dart_debugger_api.h" | 8 #include "include/dart_debugger_api.h" |
9 | 9 |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 RawString* SourceUrl(); | 41 RawString* SourceUrl(); |
42 intptr_t LineNumber(); | 42 intptr_t LineNumber(); |
43 | 43 |
44 void GetCodeLocation(Library* lib, Script* script, intptr_t* token_pos); | 44 void GetCodeLocation(Library* lib, Script* script, intptr_t* token_pos); |
45 | 45 |
46 void Enable(); | 46 void Enable(); |
47 void Disable(); | 47 void Disable(); |
48 bool IsEnabled() const { return is_enabled_; } | 48 bool IsEnabled() const { return is_enabled_; } |
49 bool IsResolved() { return is_resolved_; } | 49 bool IsResolved() { return is_resolved_; } |
50 | 50 |
51 void PrintToJSONStream(JSONStream* stream); | 51 void PrintJSON(JSONStream* stream); |
52 | 52 |
53 private: | 53 private: |
54 void VisitObjectPointers(ObjectPointerVisitor* visitor); | 54 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
55 | 55 |
56 void SetResolved(const Function& func, intptr_t token_pos); | 56 void SetResolved(const Function& func, intptr_t token_pos); |
57 void set_next(SourceBreakpoint* value) { next_ = value; } | 57 void set_next(SourceBreakpoint* value) { next_ = value; } |
58 SourceBreakpoint* next() const { return this->next_; } | 58 SourceBreakpoint* next() const { return this->next_; } |
59 | 59 |
60 const intptr_t id_; | 60 const intptr_t id_; |
61 RawScript* script_; | 61 RawScript* script_; |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 | 501 |
502 friend class Isolate; | 502 friend class Isolate; |
503 friend class SourceBreakpoint; | 503 friend class SourceBreakpoint; |
504 DISALLOW_COPY_AND_ASSIGN(Debugger); | 504 DISALLOW_COPY_AND_ASSIGN(Debugger); |
505 }; | 505 }; |
506 | 506 |
507 | 507 |
508 } // namespace dart | 508 } // namespace dart |
509 | 509 |
510 #endif // VM_DEBUGGER_H_ | 510 #endif // VM_DEBUGGER_H_ |
OLD | NEW |