| 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 #include "vm/debugger.h" | 5 #include "vm/debugger.h" |
| 6 | 6 |
| 7 #include "vm/code_index_table.h" | 7 #include "vm/code_index_table.h" |
| 8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/flags.h" | 10 #include "vm/flags.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 String* name, | 188 String* name, |
| 189 intptr_t* token_pos, | 189 intptr_t* token_pos, |
| 190 intptr_t* end_pos, | 190 intptr_t* end_pos, |
| 191 Instance* value) { | 191 Instance* value) { |
| 192 GetLocalVariables(); | 192 GetLocalVariables(); |
| 193 ASSERT(i < desc_indices_.length()); | 193 ASSERT(i < desc_indices_.length()); |
| 194 ASSERT(name != NULL); | 194 ASSERT(name != NULL); |
| 195 intptr_t desc_index = desc_indices_[i]; | 195 intptr_t desc_index = desc_indices_[i]; |
| 196 *name ^= var_descriptors_->GetName(desc_index); | 196 *name ^= var_descriptors_->GetName(desc_index); |
| 197 intptr_t scope_id; | 197 intptr_t scope_id; |
| 198 var_descriptors_->GetScopeInfo(i, &scope_id, token_pos, end_pos); | 198 var_descriptors_->GetScopeInfo(desc_index, &scope_id, token_pos, end_pos); |
| 199 ASSERT(value != NULL); | 199 ASSERT(value != NULL); |
| 200 *value = GetLocalVarValue(var_descriptors_->GetSlotIndex(i)); | 200 *value = GetLocalVarValue(var_descriptors_->GetSlotIndex(desc_index)); |
| 201 } | 201 } |
| 202 | 202 |
| 203 | 203 |
| 204 const char* ActivationFrame::ToCString() { | 204 const char* ActivationFrame::ToCString() { |
| 205 const char* kFormat = "Function: '%s' url: '%s' line: %d"; | 205 const char* kFormat = "Function: '%s' url: '%s' line: %d"; |
| 206 | 206 |
| 207 const Function& func = DartFunction(); | 207 const Function& func = DartFunction(); |
| 208 const String& url = String::Handle(SourceUrl()); | 208 const String& url = String::Handle(SourceUrl()); |
| 209 intptr_t line = LineNumber(); | 209 intptr_t line = LineNumber(); |
| 210 const char* func_name = Debugger::QualifiedFunctionName(func); | 210 const char* func_name = Debugger::QualifiedFunctionName(func); |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 530 |
| 531 | 531 |
| 532 void Debugger::RegisterBreakpoint(Breakpoint* bpt) { | 532 void Debugger::RegisterBreakpoint(Breakpoint* bpt) { |
| 533 ASSERT(bpt->next() == NULL); | 533 ASSERT(bpt->next() == NULL); |
| 534 bpt->set_next(this->breakpoints_); | 534 bpt->set_next(this->breakpoints_); |
| 535 this->breakpoints_ = bpt; | 535 this->breakpoints_ = bpt; |
| 536 } | 536 } |
| 537 | 537 |
| 538 | 538 |
| 539 } // namespace dart | 539 } // namespace dart |
| OLD | NEW |