| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |