| 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 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1529 | 1529 |
| 1530 void Debugger::SetEventHandler(EventHandler* handler) { | 1530 void Debugger::SetEventHandler(EventHandler* handler) { |
| 1531 event_handler_ = handler; | 1531 event_handler_ = handler; |
| 1532 } | 1532 } |
| 1533 | 1533 |
| 1534 | 1534 |
| 1535 bool Debugger::IsDebuggable(const Function& func) { | 1535 bool Debugger::IsDebuggable(const Function& func) { |
| 1536 RawFunction::Kind fkind = func.kind(); | 1536 RawFunction::Kind fkind = func.kind(); |
| 1537 if ((fkind == RawFunction::kImplicitGetter) || | 1537 if ((fkind == RawFunction::kImplicitGetter) || |
| 1538 (fkind == RawFunction::kImplicitSetter) || | 1538 (fkind == RawFunction::kImplicitSetter) || |
| 1539 (fkind == RawFunction::kConstImplicitGetter) || | 1539 (fkind == RawFunction::kImplicitStaticFinalGetter) || |
| 1540 (fkind == RawFunction::kMethodExtractor) || | 1540 (fkind == RawFunction::kMethodExtractor) || |
| 1541 (fkind == RawFunction::kNoSuchMethodDispatcher) || | 1541 (fkind == RawFunction::kNoSuchMethodDispatcher) || |
| 1542 (fkind == RawFunction::kInvokeFieldDispatcher)) { | 1542 (fkind == RawFunction::kInvokeFieldDispatcher)) { |
| 1543 return false; | 1543 return false; |
| 1544 } | 1544 } |
| 1545 const Class& cls = Class::Handle(func.Owner()); | 1545 const Class& cls = Class::Handle(func.Owner()); |
| 1546 const Library& lib = Library::Handle(cls.library()); | 1546 const Library& lib = Library::Handle(cls.library()); |
| 1547 return lib.IsDebuggable(); | 1547 return lib.IsDebuggable(); |
| 1548 } | 1548 } |
| 1549 | 1549 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1860 } | 1860 } |
| 1861 | 1861 |
| 1862 | 1862 |
| 1863 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 1863 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 1864 ASSERT(bpt->next() == NULL); | 1864 ASSERT(bpt->next() == NULL); |
| 1865 bpt->set_next(code_breakpoints_); | 1865 bpt->set_next(code_breakpoints_); |
| 1866 code_breakpoints_ = bpt; | 1866 code_breakpoints_ = bpt; |
| 1867 } | 1867 } |
| 1868 | 1868 |
| 1869 } // namespace dart | 1869 } // namespace dart |
| OLD | NEW |