Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Side by Side Diff: runtime/vm/debugger.cc

Issue 345103002: Remove unused pc-descriptor kind kReturn. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/debugger_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/debugger_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698