| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const char* ToCString(); | 64 const char* ToCString(); |
| 65 | 65 |
| 66 intptr_t NumLocalVariables(); | 66 intptr_t NumLocalVariables(); |
| 67 | 67 |
| 68 void VariableAt(intptr_t i, | 68 void VariableAt(intptr_t i, |
| 69 String* name, | 69 String* name, |
| 70 intptr_t* token_pos, | 70 intptr_t* token_pos, |
| 71 intptr_t* end_pos, | 71 intptr_t* end_pos, |
| 72 Instance* value); | 72 Instance* value); |
| 73 | 73 |
| 74 // Returns the value of the given variable in the context of the | |
| 75 // activation frame. | |
| 76 RawInstance* Value(const String& variable_name); | |
| 77 | |
| 78 private: | 74 private: |
| 79 void GetLocalVariables(); | 75 void GetLocalVariables(); |
| 80 RawInstance* GetLocalVarValue(intptr_t slot_index); | 76 RawInstance* GetLocalVarValue(intptr_t slot_index); |
| 81 | 77 |
| 82 uword pc_; | 78 uword pc_; |
| 83 uword fp_; | 79 uword fp_; |
| 84 Function& function_; | 80 Function& function_; |
| 85 intptr_t token_index_; | 81 intptr_t token_index_; |
| 86 intptr_t line_number_; | 82 intptr_t line_number_; |
| 87 | 83 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 bool initialized_; | 144 bool initialized_; |
| 149 BreakpointHandler* bp_handler_; | 145 BreakpointHandler* bp_handler_; |
| 150 Breakpoint* breakpoints_; | 146 Breakpoint* breakpoints_; |
| 151 DISALLOW_COPY_AND_ASSIGN(Debugger); | 147 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 152 }; | 148 }; |
| 153 | 149 |
| 154 | 150 |
| 155 } // namespace dart | 151 } // namespace dart |
| 156 | 152 |
| 157 #endif // VM_DEBUGGER_H_ | 153 #endif // VM_DEBUGGER_H_ |
| OLD | NEW |