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 #ifndef V8_DEBUG_DEBUG_FRAMES_H_ | 5 #ifndef V8_DEBUG_DEBUG_FRAMES_H_ |
6 #define V8_DEBUG_DEBUG_FRAMES_H_ | 6 #define V8_DEBUG_DEBUG_FRAMES_H_ |
7 | 7 |
8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
9 #include "src/frames.h" | 9 #include "src/frames.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
11 #include "src/objects.h" | 11 #include "src/objects.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
| 16 // Forward declaration: |
| 17 namespace wasm { |
| 18 class InterpretedFrame; |
| 19 } |
| 20 |
16 class FrameInspector { | 21 class FrameInspector { |
17 public: | 22 public: |
18 FrameInspector(StandardFrame* frame, int inlined_frame_index, | 23 FrameInspector(StandardFrame* frame, int inlined_frame_index, |
19 Isolate* isolate); | 24 Isolate* isolate); |
20 | 25 |
21 ~FrameInspector(); | 26 ~FrameInspector(); |
22 | 27 |
23 FrameSummary& summary() { return frame_summary_; } | 28 FrameSummary& summary() { return frame_summary_; } |
24 | 29 |
25 int GetParametersCount(); | 30 int GetParametersCount(); |
(...skipping 21 matching lines...) Expand all Loading... |
47 | 52 |
48 void UpdateStackLocalsFromMaterializedObject(Handle<JSObject> object, | 53 void UpdateStackLocalsFromMaterializedObject(Handle<JSObject> object, |
49 Handle<ScopeInfo> scope_info); | 54 Handle<ScopeInfo> scope_info); |
50 | 55 |
51 private: | 56 private: |
52 bool ParameterIsShadowedByContextLocal(Handle<ScopeInfo> info, | 57 bool ParameterIsShadowedByContextLocal(Handle<ScopeInfo> info, |
53 Handle<String> parameter_name); | 58 Handle<String> parameter_name); |
54 | 59 |
55 StandardFrame* frame_; | 60 StandardFrame* frame_; |
56 FrameSummary frame_summary_; | 61 FrameSummary frame_summary_; |
57 DeoptimizedFrameInfo* deoptimized_frame_; | 62 std::unique_ptr<DeoptimizedFrameInfo> deoptimized_frame_; |
| 63 std::unique_ptr<wasm::InterpretedFrame> wasm_interpreted_frame_; |
58 Isolate* isolate_; | 64 Isolate* isolate_; |
59 bool is_optimized_; | 65 bool is_optimized_; |
60 bool is_interpreted_; | 66 bool is_interpreted_; |
61 bool is_bottommost_; | 67 bool is_bottommost_; |
62 bool has_adapted_arguments_; | 68 bool has_adapted_arguments_; |
63 | 69 |
64 DISALLOW_COPY_AND_ASSIGN(FrameInspector); | 70 DISALLOW_COPY_AND_ASSIGN(FrameInspector); |
65 }; | 71 }; |
66 | 72 |
67 | 73 |
(...skipping 13 matching lines...) Expand all Loading... |
81 | 87 |
82 static StackFrame::Id UnwrapFrameId(int wrapped) { | 88 static StackFrame::Id UnwrapFrameId(int wrapped) { |
83 return static_cast<StackFrame::Id>(wrapped << 2); | 89 return static_cast<StackFrame::Id>(wrapped << 2); |
84 } | 90 } |
85 }; | 91 }; |
86 | 92 |
87 } // namespace internal | 93 } // namespace internal |
88 } // namespace v8 | 94 } // namespace v8 |
89 | 95 |
90 #endif // V8_DEBUG_DEBUG_FRAMES_H_ | 96 #endif // V8_DEBUG_DEBUG_FRAMES_H_ |
OLD | NEW |