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/objects.h" | 9 #include "src/objects.h" |
10 #include "src/utils.h" | 10 #include "src/utils.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // ScopeInfo represents information about different scopes of a source | 26 // ScopeInfo represents information about different scopes of a source |
27 // program and the allocation of the scope's variables. Scope information | 27 // program and the allocation of the scope's variables. Scope information |
28 // 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 |
29 // at runtime (stack dumps, deoptimization, etc.). | 29 // at runtime (stack dumps, deoptimization, etc.). |
30 | 30 |
31 // This object provides quick access to scope info details for runtime | 31 // This object provides quick access to scope info details for runtime |
32 // routines. | 32 // routines. |
33 class ScopeInfo : public FixedArray { | 33 class ScopeInfo : public FixedArray { |
34 public: | 34 public: |
35 DECLARE_CAST(ScopeInfo) | 35 DECL_CAST(ScopeInfo) |
36 | 36 |
37 // Return the type of this scope. | 37 // Return the type of this scope. |
38 ScopeType scope_type(); | 38 ScopeType scope_type(); |
39 | 39 |
40 // Does this scope call eval? | 40 // Does this scope call eval? |
41 bool CallsEval(); | 41 bool CallsEval(); |
42 | 42 |
43 // Return the language mode of this scope. | 43 // Return the language mode of this scope. |
44 LanguageMode language_mode(); | 44 LanguageMode language_mode(); |
45 | 45 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 333 |
334 friend class ScopeIterator; | 334 friend class ScopeIterator; |
335 }; | 335 }; |
336 | 336 |
337 } // namespace internal | 337 } // namespace internal |
338 } // namespace v8 | 338 } // namespace v8 |
339 | 339 |
340 #include "src/objects/object-macros-undef.h" | 340 #include "src/objects/object-macros-undef.h" |
341 | 341 |
342 #endif // V8_OBJECTS_SCOPE_INFO_H_ | 342 #endif // V8_OBJECTS_SCOPE_INFO_H_ |
OLD | NEW |