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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 // Set variable value and return true on success. | 69 // Set variable value and return true on success. |
70 bool SetVariableValue(Handle<String> variable_name, Handle<Object> new_value); | 70 bool SetVariableValue(Handle<String> variable_name, Handle<Object> new_value); |
71 | 71 |
72 Handle<ScopeInfo> CurrentScopeInfo(); | 72 Handle<ScopeInfo> CurrentScopeInfo(); |
73 | 73 |
74 // Return the context for this scope. For the local context there might not | 74 // Return the context for this scope. For the local context there might not |
75 // be an actual context. | 75 // be an actual context. |
76 Handle<Context> CurrentContext(); | 76 Handle<Context> CurrentContext(); |
77 | 77 |
78 // Populate the list with collected non-local variable names. | 78 // Populate the dictionary with collected non-local variable names. |
79 void GetNonLocals(List<Handle<String> >* list_out); | 79 Handle<NameDictionary> GetNonLocals(); |
80 | 80 |
81 bool ThisIsNonLocal(); | 81 bool ThisIsNonLocal(); |
82 | 82 |
83 #ifdef DEBUG | 83 #ifdef DEBUG |
84 // Debug print of the content of the current scope. | 84 // Debug print of the content of the current scope. |
85 void DebugPrint(); | 85 void DebugPrint(); |
86 #endif | 86 #endif |
87 | 87 |
88 private: | 88 private: |
89 struct ExtendedScopeInfo { | 89 struct ExtendedScopeInfo { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void GetNestedScopeChain(Isolate* isolate, Scope* scope, | 158 void GetNestedScopeChain(Isolate* isolate, Scope* scope, |
159 int statement_position); | 159 int statement_position); |
160 | 160 |
161 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator); | 161 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace internal | 164 } // namespace internal |
165 } // namespace v8 | 165 } // namespace v8 |
166 | 166 |
167 #endif // V8_DEBUG_DEBUG_SCOPES_H_ | 167 #endif // V8_DEBUG_DEBUG_SCOPES_H_ |
OLD | NEW |