| 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 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1467 | 1467 |
| 1468 static bool IsDebuggableFunctionKind(const Function& func) { | 1468 static bool IsDebuggableFunctionKind(const Function& func) { |
| 1469 RawFunction::Kind kind = func.kind(); | 1469 RawFunction::Kind kind = func.kind(); |
| 1470 if ((kind == RawFunction::kImplicitGetter) || | 1470 if ((kind == RawFunction::kImplicitGetter) || |
| 1471 (kind == RawFunction::kImplicitSetter) || | 1471 (kind == RawFunction::kImplicitSetter) || |
| 1472 (kind == RawFunction::kImplicitStaticFinalGetter) || | 1472 (kind == RawFunction::kImplicitStaticFinalGetter) || |
| 1473 (kind == RawFunction::kStaticInitializer) || | 1473 (kind == RawFunction::kStaticInitializer) || |
| 1474 (kind == RawFunction::kMethodExtractor) || | 1474 (kind == RawFunction::kMethodExtractor) || |
| 1475 (kind == RawFunction::kNoSuchMethodDispatcher) || | 1475 (kind == RawFunction::kNoSuchMethodDispatcher) || |
| 1476 (kind == RawFunction::kInvokeFieldDispatcher) || | 1476 (kind == RawFunction::kInvokeFieldDispatcher) || |
| 1477 (kind == RawFunction::kInvokeClosureDispatcher) || | |
| 1478 func.IsImplicitConstructor()) { | 1477 func.IsImplicitConstructor()) { |
| 1479 return false; | 1478 return false; |
| 1480 } | 1479 } |
| 1481 return true; | 1480 return true; |
| 1482 } | 1481 } |
| 1483 | 1482 |
| 1484 | 1483 |
| 1485 static void SelectBestFit(Function* best_fit, Function* func) { | 1484 static void SelectBestFit(Function* best_fit, Function* func) { |
| 1486 if (best_fit->IsNull()) { | 1485 if (best_fit->IsNull()) { |
| 1487 *best_fit = func->raw(); | 1486 *best_fit = func->raw(); |
| (...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2322 } | 2321 } |
| 2323 | 2322 |
| 2324 | 2323 |
| 2325 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2324 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
| 2326 ASSERT(bpt->next() == NULL); | 2325 ASSERT(bpt->next() == NULL); |
| 2327 bpt->set_next(code_breakpoints_); | 2326 bpt->set_next(code_breakpoints_); |
| 2328 code_breakpoints_ = bpt; | 2327 code_breakpoints_ = bpt; |
| 2329 } | 2328 } |
| 2330 | 2329 |
| 2331 } // namespace dart | 2330 } // namespace dart |
| OLD | NEW |