| 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" |
| 8 |
| 7 namespace v8 { | 9 namespace v8 { |
| 8 namespace internal { | 10 namespace internal { |
| 9 | 11 |
| 10 FrameInspector::FrameInspector(JavaScriptFrame* frame, | 12 FrameInspector::FrameInspector(JavaScriptFrame* frame, |
| 11 int inlined_jsframe_index, Isolate* isolate) | 13 int inlined_jsframe_index, Isolate* isolate) |
| 12 : frame_(frame), deoptimized_frame_(NULL), isolate_(isolate) { | 14 : frame_(frame), deoptimized_frame_(NULL), isolate_(isolate) { |
| 13 has_adapted_arguments_ = frame_->has_adapted_arguments(); | 15 has_adapted_arguments_ = frame_->has_adapted_arguments(); |
| 14 is_bottommost_ = inlined_jsframe_index == 0; | 16 is_bottommost_ = inlined_jsframe_index == 0; |
| 15 is_optimized_ = frame_->is_optimized(); | 17 is_optimized_ = frame_->is_optimized(); |
| 16 // Calculate the deoptimized frame. | 18 // Calculate the deoptimized frame. |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 if (!frames[i].function()->IsSubjectToDebugging()) continue; | 210 if (!frames[i].function()->IsSubjectToDebugging()) continue; |
| 209 if (++count == index) return i; | 211 if (++count == index) return i; |
| 210 } | 212 } |
| 211 } | 213 } |
| 212 return -1; | 214 return -1; |
| 213 } | 215 } |
| 214 | 216 |
| 215 | 217 |
| 216 } // namespace internal | 218 } // namespace internal |
| 217 } // namespace v8 | 219 } // namespace v8 |
| OLD | NEW |