| 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 "vm/object.h" | 8 #include "vm/object.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 void VisitObjectPointers(ObjectPointerVisitor* visitor); | 232 void VisitObjectPointers(ObjectPointerVisitor* visitor); |
| 233 | 233 |
| 234 // Called from Runtime when a breakpoint in Dart code is reached. | 234 // Called from Runtime when a breakpoint in Dart code is reached. |
| 235 void BreakpointCallback(); | 235 void BreakpointCallback(); |
| 236 | 236 |
| 237 DebuggerStackTrace* StackTrace() const { return stack_trace_; } | 237 DebuggerStackTrace* StackTrace() const { return stack_trace_; } |
| 238 | 238 |
| 239 RawArray* GetInstanceFields(const Instance& obj); | 239 RawArray* GetInstanceFields(const Instance& obj); |
| 240 RawArray* GetStaticFields(const Class& cls); | 240 RawArray* GetStaticFields(const Class& cls); |
| 241 RawArray* GetLibraryFields(const Library& lib); |
| 241 | 242 |
| 242 intptr_t CacheObject(const Object& obj); | 243 intptr_t CacheObject(const Object& obj); |
| 243 RawObject* GetCachedObject(intptr_t obj_id); | 244 RawObject* GetCachedObject(intptr_t obj_id); |
| 244 bool IsValidObjectId(intptr_t obj_id); | 245 bool IsValidObjectId(intptr_t obj_id); |
| 245 | 246 |
| 246 // Utility functions. | 247 // Utility functions. |
| 247 static const char* QualifiedFunctionName(const Function& func); | 248 static const char* QualifiedFunctionName(const Function& func); |
| 248 | 249 |
| 249 RawObject* GetInstanceField(const Class& cls, | 250 RawObject* GetInstanceField(const Class& cls, |
| 250 const String& field_name, | 251 const String& field_name, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 bool ignore_breakpoints_; | 308 bool ignore_breakpoints_; |
| 308 | 309 |
| 309 friend class SourceBreakpoint; | 310 friend class SourceBreakpoint; |
| 310 DISALLOW_COPY_AND_ASSIGN(Debugger); | 311 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 311 }; | 312 }; |
| 312 | 313 |
| 313 | 314 |
| 314 } // namespace dart | 315 } // namespace dart |
| 315 | 316 |
| 316 #endif // VM_DEBUGGER_H_ | 317 #endif // VM_DEBUGGER_H_ |
| OLD | NEW |