Chromium Code Reviews| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 void set_next(CodeBreakpoint* value) { next_ = value; } | 88 void set_next(CodeBreakpoint* value) { next_ = value; } |
| 89 CodeBreakpoint* next() const { return this->next_; } | 89 CodeBreakpoint* next() const { return this->next_; } |
| 90 intptr_t pc_desc_index() const { return pc_desc_index_; } | 90 intptr_t pc_desc_index() const { return pc_desc_index_; } |
| 91 | 91 |
| 92 void PatchCode(); | 92 void PatchCode(); |
| 93 void RestoreCode(); | 93 void RestoreCode(); |
| 94 void PatchFunctionReturn(); | 94 void PatchFunctionReturn(); |
| 95 void RestoreFunctionReturn(); | 95 void RestoreFunctionReturn(); |
| 96 | 96 |
| 97 RawFunction* function_; | 97 RawFunction* function_; |
| 98 const Code& code_; | |
|
srdjan
2013/02/15 21:24:27
Remove function_ use RawCode* instead Code.
regis
2013/02/15 22:51:31
The purpose of the member code_ was to cache the C
| |
| 98 intptr_t pc_desc_index_; | 99 intptr_t pc_desc_index_; |
| 99 intptr_t token_pos_; | 100 intptr_t token_pos_; |
| 100 uword pc_; | 101 uword pc_; |
| 101 intptr_t line_number_; | 102 intptr_t line_number_; |
| 102 bool is_enabled_; | 103 bool is_enabled_; |
| 103 | 104 |
| 104 SourceBreakpoint* src_bpt_; | 105 SourceBreakpoint* src_bpt_; |
| 105 CodeBreakpoint* next_; | 106 CodeBreakpoint* next_; |
| 106 | 107 |
| 107 PcDescriptors::Kind breakpoint_kind_; | 108 PcDescriptors::Kind breakpoint_kind_; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 382 static EventHandler* event_handler_; | 383 static EventHandler* event_handler_; |
| 383 | 384 |
| 384 friend class SourceBreakpoint; | 385 friend class SourceBreakpoint; |
| 385 DISALLOW_COPY_AND_ASSIGN(Debugger); | 386 DISALLOW_COPY_AND_ASSIGN(Debugger); |
| 386 }; | 387 }; |
| 387 | 388 |
| 388 | 389 |
| 389 } // namespace dart | 390 } // namespace dart |
| 390 | 391 |
| 391 #endif // VM_DEBUGGER_H_ | 392 #endif // VM_DEBUGGER_H_ |
| OLD | NEW |