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 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1593 | 1593 |
1594 | 1594 |
1595 static bool IsDebuggableFunctionKind(const Function& func) { | 1595 static bool IsDebuggableFunctionKind(const Function& func) { |
1596 RawFunction::Kind kind = func.kind(); | 1596 RawFunction::Kind kind = func.kind(); |
1597 if ((kind == RawFunction::kImplicitGetter) || | 1597 if ((kind == RawFunction::kImplicitGetter) || |
1598 (kind == RawFunction::kImplicitSetter) || | 1598 (kind == RawFunction::kImplicitSetter) || |
1599 (kind == RawFunction::kImplicitStaticFinalGetter) || | 1599 (kind == RawFunction::kImplicitStaticFinalGetter) || |
1600 (kind == RawFunction::kMethodExtractor) || | 1600 (kind == RawFunction::kMethodExtractor) || |
1601 (kind == RawFunction::kNoSuchMethodDispatcher) || | 1601 (kind == RawFunction::kNoSuchMethodDispatcher) || |
1602 (kind == RawFunction::kInvokeFieldDispatcher) || | 1602 (kind == RawFunction::kInvokeFieldDispatcher) || |
| 1603 (kind == RawFunction::kIrregexpFunction) || |
1603 func.IsImplicitConstructor()) { | 1604 func.IsImplicitConstructor()) { |
1604 return false; | 1605 return false; |
1605 } | 1606 } |
1606 return true; | 1607 return true; |
1607 } | 1608 } |
1608 | 1609 |
1609 | 1610 |
1610 static void SelectBestFit(Function* best_fit, Function* func) { | 1611 static void SelectBestFit(Function* best_fit, Function* func) { |
1611 if (best_fit->IsNull()) { | 1612 if (best_fit->IsNull()) { |
1612 *best_fit = func->raw(); | 1613 *best_fit = func->raw(); |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2485 } | 2486 } |
2486 | 2487 |
2487 | 2488 |
2488 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2489 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
2489 ASSERT(bpt->next() == NULL); | 2490 ASSERT(bpt->next() == NULL); |
2490 bpt->set_next(code_breakpoints_); | 2491 bpt->set_next(code_breakpoints_); |
2491 code_breakpoints_ = bpt; | 2492 code_breakpoints_ = bpt; |
2492 } | 2493 } |
2493 | 2494 |
2494 } // namespace dart | 2495 } // namespace dart |
OLD | NEW |