| 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 "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 | 8 |
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 return script.url(); | 232 return script.url(); |
| 233 } | 233 } |
| 234 | 234 |
| 235 | 235 |
| 236 RawScript* ActivationFrame::SourceScript() { | 236 RawScript* ActivationFrame::SourceScript() { |
| 237 return function().script(); | 237 return function().script(); |
| 238 } | 238 } |
| 239 | 239 |
| 240 | 240 |
| 241 RawLibrary* ActivationFrame::Library() { | 241 RawLibrary* ActivationFrame::Library() { |
| 242 const Class& cls = Class::Handle(function().Owner()); | 242 const Class& cls = Class::Handle(function().origin()); |
| 243 return cls.library(); | 243 return cls.library(); |
| 244 } | 244 } |
| 245 | 245 |
| 246 | 246 |
| 247 void ActivationFrame::GetPcDescriptors() { | 247 void ActivationFrame::GetPcDescriptors() { |
| 248 if (pc_desc_.IsNull()) { | 248 if (pc_desc_.IsNull()) { |
| 249 pc_desc_ = code().pc_descriptors(); | 249 pc_desc_ = code().pc_descriptors(); |
| 250 ASSERT(!pc_desc_.IsNull()); | 250 ASSERT(!pc_desc_.IsNull()); |
| 251 } | 251 } |
| 252 } | 252 } |
| (...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2240 } | 2240 } |
| 2241 | 2241 |
| 2242 | 2242 |
| 2243 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2243 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 2244 ASSERT(bpt->next() == NULL); | 2244 ASSERT(bpt->next() == NULL); |
| 2245 bpt->set_next(code_breakpoints_); | 2245 bpt->set_next(code_breakpoints_); |
| 2246 code_breakpoints_ = bpt; | 2246 code_breakpoints_ = bpt; |
| 2247 } | 2247 } |
| 2248 | 2248 |
| 2249 } // namespace dart | 2249 } // namespace dart |
| OLD | NEW |