| 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 12 matching lines...) Expand all Loading... |
| 23 ScopeTypeWith, | 23 ScopeTypeWith, |
| 24 ScopeTypeClosure, | 24 ScopeTypeClosure, |
| 25 ScopeTypeCatch, | 25 ScopeTypeCatch, |
| 26 ScopeTypeBlock, | 26 ScopeTypeBlock, |
| 27 ScopeTypeScript, | 27 ScopeTypeScript, |
| 28 ScopeTypeModule | 28 ScopeTypeModule |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 static const int kScopeDetailsTypeIndex = 0; | 31 static const int kScopeDetailsTypeIndex = 0; |
| 32 static const int kScopeDetailsObjectIndex = 1; | 32 static const int kScopeDetailsObjectIndex = 1; |
| 33 static const int kScopeDetailsSize = 2; | 33 static const int kScopeDetailsNameIndex = 2; |
| 34 static const int kScopeDetailsSize = 3; |
| 34 | 35 |
| 35 ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, | 36 ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, |
| 36 bool ignore_nested_scopes = false); | 37 bool ignore_nested_scopes = false); |
| 37 | 38 |
| 38 ScopeIterator(Isolate* isolate, Handle<JSFunction> function); | 39 ScopeIterator(Isolate* isolate, Handle<JSFunction> function); |
| 39 | 40 |
| 40 MUST_USE_RESULT MaybeHandle<JSObject> MaterializeScopeDetails(); | 41 MUST_USE_RESULT MaybeHandle<JSObject> MaterializeScopeDetails(); |
| 41 | 42 |
| 42 // More scopes? | 43 // More scopes? |
| 43 bool Done() { | 44 bool Done() { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 Handle<JSObject> scope_object, | 121 Handle<JSObject> scope_object, |
| 121 JSReceiver::KeyCollectionType type); | 122 JSReceiver::KeyCollectionType type); |
| 122 | 123 |
| 123 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator); | 124 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopeIterator); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace internal | 127 } // namespace internal |
| 127 } // namespace v8 | 128 } // namespace v8 |
| 128 | 129 |
| 129 #endif // V8_DEBUG_DEBUG_SCOPES_H_ | 130 #endif // V8_DEBUG_DEBUG_SCOPES_H_ |
| OLD | NEW |