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

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

Issue 2096863003: [wasm] prototype for breakpoint support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@extend-script-functionality
Patch Set: Created 4 years, 5 months 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.cc ('k') | src/debug/debug-frames.cc » ('j') | 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 #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(StandardFrame* frame, int inlined_jsframe_index, 18 FrameInspector(StandardFrame* frame, int inlined_frame_index,
19 Isolate* isolate); 19 Isolate* isolate);
20 20
21 ~FrameInspector();
22
23 int GetParametersCount(); 21 int GetParametersCount();
22 bool HasFunction();
24 Handle<JSFunction> GetFunction(); 23 Handle<JSFunction> GetFunction();
24 Handle<String> GetFunctionName();
25 Handle<Script> GetScript(); 25 Handle<Script> GetScript();
26 Handle<Object> GetParameter(int index); 26 Handle<Object> GetParameter(int index);
27 Handle<Object> GetExpression(int index); 27 Handle<Object> GetExpression(int index);
28 int GetSourcePosition(); 28 int GetSourcePosition();
29 bool IsConstructor(); 29 bool IsConstructor();
30 Handle<Object> GetContext(); 30 Handle<Object> GetContext();
31 31
32 inline JavaScriptFrame* javascript_frame() { 32 inline JavaScriptFrame* javascript_frame() {
33 return frame_->is_arguments_adaptor() ? ArgumentsAdaptorFrame::cast(frame_) 33 return frame_->is_arguments_adaptor() ? ArgumentsAdaptorFrame::cast(frame_)
34 : JavaScriptFrame::cast(frame_); 34 : JavaScriptFrame::cast(frame_);
(...skipping 10 matching lines...) Expand all
45 Handle<JSFunction> function); 45 Handle<JSFunction> function);
46 46
47 void UpdateStackLocalsFromMaterializedObject(Handle<JSObject> object, 47 void UpdateStackLocalsFromMaterializedObject(Handle<JSObject> object,
48 Handle<ScopeInfo> scope_info); 48 Handle<ScopeInfo> scope_info);
49 49
50 private: 50 private:
51 bool ParameterIsShadowedByContextLocal(Handle<ScopeInfo> info, 51 bool ParameterIsShadowedByContextLocal(Handle<ScopeInfo> info,
52 Handle<String> parameter_name); 52 Handle<String> parameter_name);
53 53
54 StandardFrame* frame_; 54 StandardFrame* frame_;
55 DeoptimizedFrameInfo* deoptimized_frame_; 55 std::unique_ptr<DeoptimizedFrameInfo> deoptimized_frame_;
56 std::unique_ptr<wasm::InterpreterFrameInfo> wasm_interpreted_frame_;
56 Isolate* isolate_; 57 Isolate* isolate_;
57 bool is_optimized_;
58 bool is_interpreted_; 58 bool is_interpreted_;
59 bool is_bottommost_; 59 bool is_bottommost_;
60 bool has_adapted_arguments_; 60 bool has_adapted_arguments_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(FrameInspector); 62 DISALLOW_COPY_AND_ASSIGN(FrameInspector);
63 }; 63 };
64 64
65 65
66 class DebugFrameHelper : public AllStatic { 66 class DebugFrameHelper : public AllStatic {
67 public: 67 public:
(...skipping 11 matching lines...) Expand all
79 79
80 static StackFrame::Id UnwrapFrameId(int wrapped) { 80 static StackFrame::Id UnwrapFrameId(int wrapped) {
81 return static_cast<StackFrame::Id>(wrapped << 2); 81 return static_cast<StackFrame::Id>(wrapped << 2);
82 } 82 }
83 }; 83 };
84 84
85 } // namespace internal 85 } // namespace internal
86 } // namespace v8 86 } // namespace v8
87 87
88 #endif // V8_DEBUG_DEBUG_FRAMES_H_ 88 #endif // V8_DEBUG_DEBUG_FRAMES_H_
OLDNEW
« no previous file with comments | « src/debug/debug.cc ('k') | src/debug/debug-frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698