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 class FrameInspector { | 16 class FrameInspector { |
17 public: | 17 public: |
18 FrameInspector(JavaScriptFrame* frame, int inlined_jsframe_index, | 18 FrameInspector(JavaScriptFrame* frame, int inlined_jsframe_index, |
19 Isolate* isolate); | 19 Isolate* isolate); |
20 | 20 |
21 ~FrameInspector(); | 21 ~FrameInspector(); |
22 | 22 |
23 int GetParametersCount(); | 23 int GetParametersCount(); |
24 Object* GetFunction(); | 24 Handle<Object> GetFunction(); |
25 Object* GetParameter(int index); | 25 Handle<Object> GetParameter(int index); |
26 Object* GetExpression(int index); | 26 Handle<Object> GetExpression(int index); |
27 int GetSourcePosition(); | 27 int GetSourcePosition(); |
28 bool IsConstructor(); | 28 bool IsConstructor(); |
29 Object* GetContext(); | 29 Handle<Object> GetContext(); |
30 | 30 |
31 JavaScriptFrame* GetArgumentsFrame() { return frame_; } | 31 JavaScriptFrame* GetArgumentsFrame() { return frame_; } |
32 void SetArgumentsFrame(JavaScriptFrame* frame); | 32 void SetArgumentsFrame(JavaScriptFrame* frame); |
33 | 33 |
34 void MaterializeStackLocals(Handle<JSObject> target, | 34 void MaterializeStackLocals(Handle<JSObject> target, |
35 Handle<ScopeInfo> scope_info); | 35 Handle<ScopeInfo> scope_info); |
36 | 36 |
37 void MaterializeStackLocals(Handle<JSObject> target, | 37 void MaterializeStackLocals(Handle<JSObject> target, |
38 Handle<JSFunction> function); | 38 Handle<JSFunction> function); |
39 | 39 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 static StackFrame::Id UnwrapFrameId(int wrapped) { | 72 static StackFrame::Id UnwrapFrameId(int wrapped) { |
73 return static_cast<StackFrame::Id>(wrapped << 2); | 73 return static_cast<StackFrame::Id>(wrapped << 2); |
74 } | 74 } |
75 }; | 75 }; |
76 | 76 |
77 } // namespace internal | 77 } // namespace internal |
78 } // namespace v8 | 78 } // namespace v8 |
79 | 79 |
80 #endif // V8_DEBUG_DEBUG_FRAMES_H_ | 80 #endif // V8_DEBUG_DEBUG_FRAMES_H_ |
OLD | NEW |