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 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 } | 1693 } |
1694 } | 1694 } |
1695 } | 1695 } |
1696 | 1696 |
1697 | 1697 |
1698 static bool IsDebuggableFunctionKind(const Function& func) { | 1698 static bool IsDebuggableFunctionKind(const Function& func) { |
1699 RawFunction::Kind kind = func.kind(); | 1699 RawFunction::Kind kind = func.kind(); |
1700 if ((kind == RawFunction::kImplicitGetter) || | 1700 if ((kind == RawFunction::kImplicitGetter) || |
1701 (kind == RawFunction::kImplicitSetter) || | 1701 (kind == RawFunction::kImplicitSetter) || |
1702 (kind == RawFunction::kImplicitStaticFinalGetter) || | 1702 (kind == RawFunction::kImplicitStaticFinalGetter) || |
1703 (kind == RawFunction::kStaticInitializer) || | |
1704 (kind == RawFunction::kMethodExtractor) || | 1703 (kind == RawFunction::kMethodExtractor) || |
1705 (kind == RawFunction::kNoSuchMethodDispatcher) || | 1704 (kind == RawFunction::kNoSuchMethodDispatcher) || |
1706 (kind == RawFunction::kInvokeFieldDispatcher) || | 1705 (kind == RawFunction::kInvokeFieldDispatcher) || |
1707 func.IsImplicitConstructor()) { | 1706 func.IsImplicitConstructor()) { |
1708 return false; | 1707 return false; |
1709 } | 1708 } |
1710 return true; | 1709 return true; |
1711 } | 1710 } |
1712 | 1711 |
1713 | 1712 |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2578 } | 2577 } |
2579 | 2578 |
2580 | 2579 |
2581 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2580 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
2582 ASSERT(bpt->next() == NULL); | 2581 ASSERT(bpt->next() == NULL); |
2583 bpt->set_next(code_breakpoints_); | 2582 bpt->set_next(code_breakpoints_); |
2584 code_breakpoints_ = bpt; | 2583 code_breakpoints_ = bpt; |
2585 } | 2584 } |
2586 | 2585 |
2587 } // namespace dart | 2586 } // namespace dart |
OLD | NEW |