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

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

Issue 1160063002: Remove unused pc descriptor types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added comment Created 5 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
« 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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 1028
1029 1029
1030 1030
1031 void DebuggerStackTrace::AddActivation(ActivationFrame* frame) { 1031 void DebuggerStackTrace::AddActivation(ActivationFrame* frame) {
1032 if (FLAG_show_invisible_frames || frame->function().is_visible()) { 1032 if (FLAG_show_invisible_frames || frame->function().is_visible()) {
1033 trace_.Add(frame); 1033 trace_.Add(frame);
1034 } 1034 }
1035 } 1035 }
1036 1036
1037 1037
1038 const uint8_t kSafepointKind = 1038 const uint8_t kSafepointKind = RawPcDescriptors::kIcCall
1039 RawPcDescriptors::kIcCall | RawPcDescriptors::kOptStaticCall | 1039 | RawPcDescriptors::kUnoptStaticCall
1040 RawPcDescriptors::kUnoptStaticCall | RawPcDescriptors::kClosureCall | 1040 | RawPcDescriptors::kRuntimeCall;
1041 RawPcDescriptors::kRuntimeCall;
1042 1041
1043 1042
1044 CodeBreakpoint::CodeBreakpoint(const Code& code, 1043 CodeBreakpoint::CodeBreakpoint(const Code& code,
1045 intptr_t token_pos, 1044 intptr_t token_pos,
1046 uword pc, 1045 uword pc,
1047 RawPcDescriptors::Kind kind) 1046 RawPcDescriptors::Kind kind)
1048 : code_(code.raw()), 1047 : code_(code.raw()),
1049 token_pos_(token_pos), 1048 token_pos_(token_pos),
1050 pc_(pc), 1049 pc_(pc),
1051 line_number_(-1), 1050 line_number_(-1),
(...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after
2926 } 2925 }
2927 2926
2928 2927
2929 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2928 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2930 ASSERT(bpt->next() == NULL); 2929 ASSERT(bpt->next() == NULL);
2931 bpt->set_next(code_breakpoints_); 2930 bpt->set_next(code_breakpoints_);
2932 code_breakpoints_ = bpt; 2931 code_breakpoints_ = bpt;
2933 } 2932 }
2934 2933
2935 } // namespace dart 2934 } // 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