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

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

Issue 1128803002: Lazily generate local var descriptors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 months 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 | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | 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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 if (code().is_optimized()) { 471 if (code().is_optimized()) {
472 Thread* thread = Thread::Current(); 472 Thread* thread = Thread::Current();
473 Zone* zone = thread->zone(); 473 Zone* zone = thread->zone();
474 const Error& error = Error::Handle(zone, 474 const Error& error = Error::Handle(zone,
475 Compiler::EnsureUnoptimizedCode(thread, function())); 475 Compiler::EnsureUnoptimizedCode(thread, function()));
476 if (!error.IsNull()) { 476 if (!error.IsNull()) {
477 Exceptions::PropagateError(error); 477 Exceptions::PropagateError(error);
478 } 478 }
479 } 479 }
480 var_descriptors_ = 480 var_descriptors_ =
481 Code::Handle(function().unoptimized_code()).var_descriptors(); 481 Code::Handle(function().unoptimized_code()).GetLocalVarDescriptors();
482 ASSERT(!var_descriptors_.IsNull()); 482 ASSERT(!var_descriptors_.IsNull());
483 } 483 }
484 } 484 }
485 485
486 486
487 bool ActivationFrame::IsDebuggable() const { 487 bool ActivationFrame::IsDebuggable() const {
488 return Debugger::IsDebuggable(function()); 488 return Debugger::IsDebuggable(function());
489 } 489 }
490 490
491 491
(...skipping 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 } 2690 }
2691 2691
2692 2692
2693 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2693 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2694 ASSERT(bpt->next() == NULL); 2694 ASSERT(bpt->next() == NULL);
2695 bpt->set_next(code_breakpoints_); 2695 bpt->set_next(code_breakpoints_);
2696 code_breakpoints_ = bpt; 2696 code_breakpoints_ = bpt;
2697 } 2697 }
2698 2698
2699 } // namespace dart 2699 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698