Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: runtime/vm/debugger.cc

Issue 108903002: Fix source location of mixins in stack trace (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698