| 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_OBJECTS_SCOPE_INFO_H_ | 5 #ifndef V8_OBJECTS_SCOPE_INFO_H_ |
| 6 #define V8_OBJECTS_SCOPE_INFO_H_ | 6 #define V8_OBJECTS_SCOPE_INFO_H_ |
| 7 | 7 |
| 8 #include "src/globals.h" | 8 #include "src/globals.h" |
| 9 #include "src/handles.h" | |
| 10 #include "src/objects.h" | 9 #include "src/objects.h" |
| 11 #include "src/utils.h" | 10 #include "src/utils.h" |
| 12 | 11 |
| 13 // Has to be the last include (doesn't have include guards): | 12 // Has to be the last include (doesn't have include guards): |
| 14 #include "src/objects/object-macros.h" | 13 #include "src/objects/object-macros.h" |
| 15 | 14 |
| 16 namespace v8 { | 15 namespace v8 { |
| 17 namespace internal { | 16 namespace internal { |
| 18 | 17 |
| 18 template <typename T> |
| 19 class Handle; |
| 19 class Isolate; | 20 class Isolate; |
| 21 template <typename T> |
| 22 class MaybeHandle; |
| 20 class Scope; | 23 class Scope; |
| 21 class Zone; | 24 class Zone; |
| 22 | 25 |
| 23 // ScopeInfo represents information about different scopes of a source | 26 // ScopeInfo represents information about different scopes of a source |
| 24 // program and the allocation of the scope's variables. Scope information | 27 // program and the allocation of the scope's variables. Scope information |
| 25 // is stored in a compressed form in ScopeInfo objects and is used | 28 // is stored in a compressed form in ScopeInfo objects and is used |
| 26 // at runtime (stack dumps, deoptimization, etc.). | 29 // at runtime (stack dumps, deoptimization, etc.). |
| 27 | 30 |
| 28 // This object provides quick access to scope info details for runtime | 31 // This object provides quick access to scope info details for runtime |
| 29 // routines. | 32 // routines. |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 339 |
| 337 friend class ScopeIterator; | 340 friend class ScopeIterator; |
| 338 }; | 341 }; |
| 339 | 342 |
| 340 } // namespace internal | 343 } // namespace internal |
| 341 } // namespace v8 | 344 } // namespace v8 |
| 342 | 345 |
| 343 #include "src/objects/object-macros-undef.h" | 346 #include "src/objects/object-macros-undef.h" |
| 344 | 347 |
| 345 #endif // V8_OBJECTS_SCOPE_INFO_H_ | 348 #endif // V8_OBJECTS_SCOPE_INFO_H_ |
| OLD | NEW |