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_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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 bool SetContextVariableValue(Handle<ScopeInfo> scope_info, | 146 bool SetContextVariableValue(Handle<ScopeInfo> scope_info, |
147 Handle<Context> context, | 147 Handle<Context> context, |
148 Handle<String> variable_name, | 148 Handle<String> variable_name, |
149 Handle<Object> new_value); | 149 Handle<Object> new_value); |
150 | 150 |
151 void CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, | 151 void CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, |
152 Handle<Context> context, | 152 Handle<Context> context, |
153 Handle<JSObject> scope_object); | 153 Handle<JSObject> scope_object); |
154 void CopyContextExtensionToScopeObject(Handle<Context> context, | 154 void CopyContextExtensionToScopeObject(Handle<Context> context, |
155 Handle<JSObject> scope_object, | 155 Handle<JSObject> scope_object, |
156 KeyCollectionType type); | 156 KeyCollectionMode mode); |
157 | 157 |
158 // Get the chain of nested scopes within this scope for the source statement | 158 // 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 | 159 // 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 | 160 // the innermost scope. Only nested block, catch or with scopes are tracked |
161 // and will be returned, but no inner function scopes. | 161 // and will be returned, but no inner function scopes. |
162 void GetNestedScopeChain(Isolate* isolate, Scope* scope, | 162 void GetNestedScopeChain(Isolate* isolate, Scope* scope, |
163 int statement_position); | 163 int statement_position); |
164 | 164 |
165 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator); | 165 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator); |
166 }; | 166 }; |
167 | 167 |
168 } // namespace internal | 168 } // namespace internal |
169 } // namespace v8 | 169 } // namespace v8 |
170 | 170 |
171 #endif // V8_DEBUG_DEBUG_SCOPES_H_ | 171 #endif // V8_DEBUG_DEBUG_SCOPES_H_ |
OLD | NEW |