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 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1700 | 1700 |
1701 | 1701 |
1702 static bool IsDebuggableFunctionKind(const Function& func) { | 1702 static bool IsDebuggableFunctionKind(const Function& func) { |
1703 RawFunction::Kind kind = func.kind(); | 1703 RawFunction::Kind kind = func.kind(); |
1704 if ((kind == RawFunction::kImplicitGetter) || | 1704 if ((kind == RawFunction::kImplicitGetter) || |
1705 (kind == RawFunction::kImplicitSetter) || | 1705 (kind == RawFunction::kImplicitSetter) || |
1706 (kind == RawFunction::kImplicitStaticFinalGetter) || | 1706 (kind == RawFunction::kImplicitStaticFinalGetter) || |
1707 (kind == RawFunction::kMethodExtractor) || | 1707 (kind == RawFunction::kMethodExtractor) || |
1708 (kind == RawFunction::kNoSuchMethodDispatcher) || | 1708 (kind == RawFunction::kNoSuchMethodDispatcher) || |
1709 (kind == RawFunction::kInvokeFieldDispatcher) || | 1709 (kind == RawFunction::kInvokeFieldDispatcher) || |
| 1710 (kind == RawFunction::kIrregexpFunction) || |
1710 func.IsImplicitConstructor()) { | 1711 func.IsImplicitConstructor()) { |
1711 return false; | 1712 return false; |
1712 } | 1713 } |
1713 return true; | 1714 return true; |
1714 } | 1715 } |
1715 | 1716 |
1716 | 1717 |
1717 static void SelectBestFit(Function* best_fit, Function* func) { | 1718 static void SelectBestFit(Function* best_fit, Function* func) { |
1718 if (best_fit->IsNull()) { | 1719 if (best_fit->IsNull()) { |
1719 *best_fit = func->raw(); | 1720 *best_fit = func->raw(); |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2592 } | 2593 } |
2593 | 2594 |
2594 | 2595 |
2595 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2596 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
2596 ASSERT(bpt->next() == NULL); | 2597 ASSERT(bpt->next() == NULL); |
2597 bpt->set_next(code_breakpoints_); | 2598 bpt->set_next(code_breakpoints_); |
2598 code_breakpoints_ = bpt; | 2599 code_breakpoints_ = bpt; |
2599 } | 2600 } |
2600 | 2601 |
2601 } // namespace dart | 2602 } // namespace dart |
OLD | NEW |