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

Side by Side Diff: src/debug/debug-frames.cc

Issue 1522273003: [debugger] remove some dead code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: exclude debugger statement Created 5 years 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 | « src/debug/debug-frames.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/debug/debug-frames.h" 5 #include "src/debug/debug-frames.h"
6 6
7 #include "src/frames-inl.h" 7 #include "src/frames-inl.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 } 39 }
40 40
41 41
42 int FrameInspector::GetParametersCount() { 42 int FrameInspector::GetParametersCount() {
43 return is_optimized_ ? deoptimized_frame_->parameters_count() 43 return is_optimized_ ? deoptimized_frame_->parameters_count()
44 : frame_->ComputeParametersCount(); 44 : frame_->ComputeParametersCount();
45 } 45 }
46 46
47 47
48 int FrameInspector::expression_count() {
49 return deoptimized_frame_->expression_count();
50 }
51
52
53 Object* FrameInspector::GetFunction() { 48 Object* FrameInspector::GetFunction() {
54 return is_optimized_ ? deoptimized_frame_->GetFunction() : frame_->function(); 49 return is_optimized_ ? deoptimized_frame_->GetFunction() : frame_->function();
55 } 50 }
56 51
57 52
58 Object* FrameInspector::GetParameter(int index) { 53 Object* FrameInspector::GetParameter(int index) {
59 return is_optimized_ ? deoptimized_frame_->GetParameter(index) 54 return is_optimized_ ? deoptimized_frame_->GetParameter(index)
60 : frame_->GetParameter(index); 55 : frame_->GetParameter(index);
61 } 56 }
62 57
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 if (!frames[i].function()->shared()->IsSubjectToDebugging()) continue; 206 if (!frames[i].function()->shared()->IsSubjectToDebugging()) continue;
212 if (++count == index) return i; 207 if (++count == index) return i;
213 } 208 }
214 } 209 }
215 return -1; 210 return -1;
216 } 211 }
217 212
218 213
219 } // namespace internal 214 } // namespace internal
220 } // namespace v8 215 } // namespace v8
OLDNEW
« no previous file with comments | « src/debug/debug-frames.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698