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 #include "src/debug/debug-scopes.h" | 5 #include "src/debug/debug-scopes.h" |
6 | 6 |
| 7 #include "src/ast/scopes.h" |
7 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
8 #include "src/frames-inl.h" | 9 #include "src/frames-inl.h" |
9 #include "src/globals.h" | 10 #include "src/globals.h" |
10 #include "src/isolate-inl.h" | 11 #include "src/isolate-inl.h" |
11 #include "src/parser.h" | 12 #include "src/parsing/parser.h" |
12 #include "src/scopes.h" | |
13 | 13 |
14 namespace v8 { | 14 namespace v8 { |
15 namespace internal { | 15 namespace internal { |
16 | 16 |
17 ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, | 17 ScopeIterator::ScopeIterator(Isolate* isolate, FrameInspector* frame_inspector, |
18 bool ignore_nested_scopes) | 18 bool ignore_nested_scopes) |
19 : isolate_(isolate), | 19 : isolate_(isolate), |
20 frame_inspector_(frame_inspector), | 20 frame_inspector_(frame_inspector), |
21 nested_scope_chain_(4), | 21 nested_scope_chain_(4), |
22 seen_script_scope_(false), | 22 seen_script_scope_(false), |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 isolate_, value, Object::GetPropertyOrElement(extension, key), false); | 782 isolate_, value, Object::GetPropertyOrElement(extension, key), false); |
783 RETURN_ON_EXCEPTION_VALUE( | 783 RETURN_ON_EXCEPTION_VALUE( |
784 isolate_, JSObject::SetOwnPropertyIgnoreAttributes( | 784 isolate_, JSObject::SetOwnPropertyIgnoreAttributes( |
785 scope_object, key, value, NONE), false); | 785 scope_object, key, value, NONE), false); |
786 } | 786 } |
787 return true; | 787 return true; |
788 } | 788 } |
789 | 789 |
790 } // namespace internal | 790 } // namespace internal |
791 } // namespace v8 | 791 } // namespace v8 |
OLD | NEW |