OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_AST_SCOPES_H_ | 5 #ifndef V8_AST_SCOPES_H_ |
6 #define V8_AST_SCOPES_H_ | 6 #define V8_AST_SCOPES_H_ |
7 | 7 |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/base/hashmap.h" | 9 #include "src/base/hashmap.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 Handle<ScopeInfo> scope_info_; | 487 Handle<ScopeInfo> scope_info_; |
488 // Debugging support. | 488 // Debugging support. |
489 #ifdef DEBUG | 489 #ifdef DEBUG |
490 const AstRawString* scope_name_; | 490 const AstRawString* scope_name_; |
491 #endif | 491 #endif |
492 | 492 |
493 // Source positions. | 493 // Source positions. |
494 int start_position_; | 494 int start_position_; |
495 int end_position_; | 495 int end_position_; |
496 | 496 |
497 // Computed via AllocateVariables; function, block and catch scopes only. | 497 // Computed via AllocateVariables. |
498 int num_stack_slots_; | 498 int num_stack_slots_; |
499 int num_heap_slots_; | 499 int num_heap_slots_; |
500 int num_global_slots_; | 500 int num_global_slots_; |
501 | 501 |
502 // The scope type. | 502 // The scope type. |
503 const ScopeType scope_type_; | 503 const ScopeType scope_type_; |
504 | 504 |
505 // Scope-specific information computed during parsing. | 505 // Scope-specific information computed during parsing. |
506 // | 506 // |
507 // The language mode of this scope. | 507 // The language mode of this scope. |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 Variable* this_function_; | 901 Variable* this_function_; |
902 // Module descriptor; module scopes only. | 902 // Module descriptor; module scopes only. |
903 ModuleDescriptor* module_descriptor_; | 903 ModuleDescriptor* module_descriptor_; |
904 PendingCompilationErrorHandler pending_error_handler_; | 904 PendingCompilationErrorHandler pending_error_handler_; |
905 }; | 905 }; |
906 | 906 |
907 } // namespace internal | 907 } // namespace internal |
908 } // namespace v8 | 908 } // namespace v8 |
909 | 909 |
910 #endif // V8_AST_SCOPES_H_ | 910 #endif // V8_AST_SCOPES_H_ |
OLD | NEW |