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 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 trace_.Add(frame); | 907 trace_.Add(frame); |
908 } | 908 } |
909 } | 909 } |
910 | 910 |
911 | 911 |
912 static bool IsSafeDescKind(PcDescriptors::Kind kind) { | 912 static bool IsSafeDescKind(PcDescriptors::Kind kind) { |
913 return ((kind == PcDescriptors::kIcCall) || | 913 return ((kind == PcDescriptors::kIcCall) || |
914 (kind == PcDescriptors::kOptStaticCall) || | 914 (kind == PcDescriptors::kOptStaticCall) || |
915 (kind == PcDescriptors::kUnoptStaticCall) || | 915 (kind == PcDescriptors::kUnoptStaticCall) || |
916 (kind == PcDescriptors::kClosureCall) || | 916 (kind == PcDescriptors::kClosureCall) || |
917 (kind == PcDescriptors::kReturn) || | |
918 (kind == PcDescriptors::kRuntimeCall)); | 917 (kind == PcDescriptors::kRuntimeCall)); |
919 } | 918 } |
920 | 919 |
921 | 920 |
922 static bool IsSafePoint(const PcDescriptors& desc, intptr_t i) { | 921 static bool IsSafePoint(const PcDescriptors& desc, intptr_t i) { |
923 return IsSafeDescKind(desc.DescriptorKind(i)) && | 922 return IsSafeDescKind(desc.DescriptorKind(i)) && |
924 (desc.TokenPos(i) != Scanner::kNoSourcePos); | 923 (desc.TokenPos(i) != Scanner::kNoSourcePos); |
925 } | 924 } |
926 | 925 |
927 | 926 |
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 } | 2562 } |
2564 | 2563 |
2565 | 2564 |
2566 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2565 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
2567 ASSERT(bpt->next() == NULL); | 2566 ASSERT(bpt->next() == NULL); |
2568 bpt->set_next(code_breakpoints_); | 2567 bpt->set_next(code_breakpoints_); |
2569 code_breakpoints_ = bpt; | 2568 code_breakpoints_ = bpt; |
2570 } | 2569 } |
2571 | 2570 |
2572 } // namespace dart | 2571 } // namespace dart |
OLD | NEW |