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

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

Issue 1961833002: [debugger] refactor debug-scopes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comment Created 4 years, 7 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 | « no previous file | 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 bool SetLocalVariableValue(Handle<String> variable_name, 123 bool SetLocalVariableValue(Handle<String> variable_name,
124 Handle<Object> new_value); 124 Handle<Object> new_value);
125 bool SetBlockVariableValue(Handle<String> variable_name, 125 bool SetBlockVariableValue(Handle<String> variable_name,
126 Handle<Object> new_value); 126 Handle<Object> new_value);
127 bool SetClosureVariableValue(Handle<String> variable_name, 127 bool SetClosureVariableValue(Handle<String> variable_name,
128 Handle<Object> new_value); 128 Handle<Object> new_value);
129 bool SetScriptVariableValue(Handle<String> variable_name, 129 bool SetScriptVariableValue(Handle<String> variable_name,
130 Handle<Object> new_value); 130 Handle<Object> new_value);
131 bool SetCatchVariableValue(Handle<String> variable_name, 131 bool SetCatchVariableValue(Handle<String> variable_name,
132 Handle<Object> new_value); 132 Handle<Object> new_value);
133 bool SetContextLocalValue(Handle<ScopeInfo> scope_info, 133
134 Handle<Context> context, 134 // Helper functions.
135 Handle<String> variable_name, 135 bool SetParameterValue(Handle<ScopeInfo> scope_info, JavaScriptFrame* frame,
136 Handle<Object> new_value); 136 Handle<String> parameter_name,
137 Handle<Object> new_value);
138 bool SetStackVariableValue(Handle<ScopeInfo> scope_info,
139 JavaScriptFrame* frame,
140 Handle<String> variable_name,
141 Handle<Object> new_value);
142 bool SetContextVariableValue(Handle<ScopeInfo> scope_info,
143 Handle<Context> context,
144 Handle<String> variable_name,
145 Handle<Object> new_value);
137 146
138 void CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, 147 void CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info,
139 Handle<Context> context, 148 Handle<Context> context,
140 Handle<JSObject> scope_object); 149 Handle<JSObject> scope_object);
141 bool CopyContextExtensionToScopeObject(Handle<JSObject> extension, 150 bool CopyContextExtensionToScopeObject(Handle<JSObject> extension,
142 Handle<JSObject> scope_object, 151 Handle<JSObject> scope_object,
143 KeyCollectionType type); 152 KeyCollectionType type);
144 153
145 // Get the chain of nested scopes within this scope for the source statement 154 // Get the chain of nested scopes within this scope for the source statement
146 // position. The scopes will be added to the list from the outermost scope to 155 // position. The scopes will be added to the list from the outermost scope to
147 // the innermost scope. Only nested block, catch or with scopes are tracked 156 // the innermost scope. Only nested block, catch or with scopes are tracked
148 // and will be returned, but no inner function scopes. 157 // and will be returned, but no inner function scopes.
149 void GetNestedScopeChain(Isolate* isolate, Scope* scope, 158 void GetNestedScopeChain(Isolate* isolate, Scope* scope,
150 int statement_position); 159 int statement_position);
151 160
152 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator); 161 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator);
153 }; 162 };
154 163
155 } // namespace internal 164 } // namespace internal
156 } // namespace v8 165 } // namespace v8
157 166
158 #endif // V8_DEBUG_DEBUG_SCOPES_H_ 167 #endif // V8_DEBUG_DEBUG_SCOPES_H_
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698