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