| 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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |