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

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

Issue 2109093003: [wasm] Enable wasm frame inspection for debugging (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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-frames.cc ('k') | src/debug/debug-scopes.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_SCOPES_H_ 5 #ifndef V8_DEBUG_DEBUG_SCOPES_H_
6 #define V8_DEBUG_DEBUG_SCOPES_H_ 6 #define V8_DEBUG_DEBUG_SCOPES_H_
7 7
8 #include "src/debug/debug-frames.h" 8 #include "src/debug/debug-frames.h"
9 #include "src/frames.h" 9 #include "src/frames.h"
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 List<ExtendedScopeInfo> nested_scope_chain_; 100 List<ExtendedScopeInfo> nested_scope_chain_;
101 Handle<StringSet> non_locals_; 101 Handle<StringSet> non_locals_;
102 bool seen_script_scope_; 102 bool seen_script_scope_;
103 bool failed_; 103 bool failed_;
104 104
105 inline JavaScriptFrame* GetFrame() { 105 inline JavaScriptFrame* GetFrame() {
106 return frame_inspector_->GetArgumentsFrame(); 106 return frame_inspector_->GetArgumentsFrame();
107 } 107 }
108 108
109 inline Handle<JSFunction> GetFunction() { 109 inline Handle<JSFunction> GetFunction() {
110 return Handle<JSFunction>::cast(frame_inspector_->GetFunction()); 110 return frame_inspector_->GetFunction();
111 } 111 }
112 112
113 void RetrieveScopeChain(Scope* scope); 113 void RetrieveScopeChain(Scope* scope);
114 114
115 void CollectNonLocals(Scope* scope); 115 void CollectNonLocals(Scope* scope);
116 116
117 void UnwrapEvaluationContext(); 117 void UnwrapEvaluationContext();
118 118
119 MUST_USE_RESULT MaybeHandle<JSObject> MaterializeScriptScope(); 119 MUST_USE_RESULT MaybeHandle<JSObject> MaterializeScriptScope();
120 MUST_USE_RESULT MaybeHandle<JSObject> MaterializeLocalScope(); 120 MUST_USE_RESULT MaybeHandle<JSObject> MaterializeLocalScope();
(...skipping 12 matching lines...) Expand all
133 bool SetScriptVariableValue(Handle<String> variable_name, 133 bool SetScriptVariableValue(Handle<String> variable_name,
134 Handle<Object> new_value); 134 Handle<Object> new_value);
135 bool SetCatchVariableValue(Handle<String> variable_name, 135 bool SetCatchVariableValue(Handle<String> variable_name,
136 Handle<Object> new_value); 136 Handle<Object> new_value);
137 137
138 // Helper functions. 138 // Helper functions.
139 bool SetParameterValue(Handle<ScopeInfo> scope_info, JavaScriptFrame* frame, 139 bool SetParameterValue(Handle<ScopeInfo> scope_info, JavaScriptFrame* frame,
140 Handle<String> parameter_name, 140 Handle<String> parameter_name,
141 Handle<Object> new_value); 141 Handle<Object> new_value);
142 bool SetStackVariableValue(Handle<ScopeInfo> scope_info, 142 bool SetStackVariableValue(Handle<ScopeInfo> scope_info,
143 JavaScriptFrame* frame,
144 Handle<String> variable_name, 143 Handle<String> variable_name,
145 Handle<Object> new_value); 144 Handle<Object> new_value);
146 bool SetContextVariableValue(Handle<ScopeInfo> scope_info, 145 bool SetContextVariableValue(Handle<ScopeInfo> scope_info,
147 Handle<Context> context, 146 Handle<Context> context,
148 Handle<String> variable_name, 147 Handle<String> variable_name,
149 Handle<Object> new_value); 148 Handle<Object> new_value);
150 149
151 void CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, 150 void CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info,
152 Handle<Context> context, 151 Handle<Context> context,
153 Handle<JSObject> scope_object); 152 Handle<JSObject> scope_object);
154 void CopyContextExtensionToScopeObject(Handle<Context> context, 153 void CopyContextExtensionToScopeObject(Handle<Context> context,
155 Handle<JSObject> scope_object, 154 Handle<JSObject> scope_object,
156 KeyCollectionMode mode); 155 KeyCollectionMode mode);
157 156
158 // Get the chain of nested scopes within this scope for the source statement 157 // Get the chain of nested scopes within this scope for the source statement
159 // position. The scopes will be added to the list from the outermost scope to 158 // position. The scopes will be added to the list from the outermost scope to
160 // the innermost scope. Only nested block, catch or with scopes are tracked 159 // the innermost scope. Only nested block, catch or with scopes are tracked
161 // and will be returned, but no inner function scopes. 160 // and will be returned, but no inner function scopes.
162 void GetNestedScopeChain(Isolate* isolate, Scope* scope, 161 void GetNestedScopeChain(Isolate* isolate, Scope* scope,
163 int statement_position); 162 int statement_position);
164 163
165 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator); 164 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator);
166 }; 165 };
167 166
168 } // namespace internal 167 } // namespace internal
169 } // namespace v8 168 } // namespace v8
170 169
171 #endif // V8_DEBUG_DEBUG_SCOPES_H_ 170 #endif // V8_DEBUG_DEBUG_SCOPES_H_
OLDNEW
« no previous file with comments | « src/debug/debug-frames.cc ('k') | src/debug/debug-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698