| 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 #include "vm/debugger.h" | 5 #include "vm/debugger.h" |
| 6 | 6 |
| 7 #include "vm/code_generator.h" | 7 #include "vm/code_generator.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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 line_number_(-1), | 98 line_number_(-1), |
| 99 var_descriptors_(NULL), | 99 var_descriptors_(NULL), |
| 100 desc_indices_(8) { | 100 desc_indices_(8) { |
| 101 } | 101 } |
| 102 | 102 |
| 103 | 103 |
| 104 const Function& ActivationFrame::DartFunction() { | 104 const Function& ActivationFrame::DartFunction() { |
| 105 if (function_.IsNull()) { | 105 if (function_.IsNull()) { |
| 106 Isolate* isolate = Isolate::Current(); | 106 Isolate* isolate = Isolate::Current(); |
| 107 ASSERT(isolate != NULL); | 107 ASSERT(isolate != NULL); |
| 108 const Code& code = Code::Handle(StackFrame::LookupCode(isolate, pc_)); | 108 const Code& code = Code::Handle(Code::LookupCode(pc_)); |
| 109 function_ = code.function(); | 109 function_ = code.function(); |
| 110 } | 110 } |
| 111 return function_; | 111 return function_; |
| 112 } | 112 } |
| 113 | 113 |
| 114 | 114 |
| 115 const char* Debugger::QualifiedFunctionName(const Function& func) { | 115 const char* Debugger::QualifiedFunctionName(const Function& func) { |
| 116 const String& func_name = String::Handle(func.name()); | 116 const String& func_name = String::Handle(func.name()); |
| 117 Class& func_class = Class::Handle(func.owner()); | 117 Class& func_class = Class::Handle(func.owner()); |
| 118 String& class_name = String::Handle(func_class.Name()); | 118 String& class_name = String::Handle(func_class.Name()); |
| (...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 | 1138 |
| 1139 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 1139 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 1140 ASSERT(bpt->next() == NULL); | 1140 ASSERT(bpt->next() == NULL); |
| 1141 bpt->set_next(code_breakpoints_); | 1141 bpt->set_next(code_breakpoints_); |
| 1142 code_breakpoints_ = bpt; | 1142 code_breakpoints_ = bpt; |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 } // namespace dart | 1145 } // namespace dart |
| OLD | NEW |