OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 | 685 |
686 private: | 686 private: |
687 FunctionState** const function_state_stack_; | 687 FunctionState** const function_state_stack_; |
688 FunctionState* const outer_function_state_; | 688 FunctionState* const outer_function_state_; |
689 Scope** const scope_stack_; | 689 Scope** const scope_stack_; |
690 Scope* const outer_scope_; | 690 Scope* const outer_scope_; |
691 Scope scope_; | 691 Scope scope_; |
692 | 692 |
693 int materialized_literal_count_; | 693 int materialized_literal_count_; |
694 int expected_properties_; | 694 int expected_properties_; |
695 LanguageMode language_mode_; | |
696 bool is_generator_; | 695 bool is_generator_; |
697 }; | 696 }; |
698 | 697 |
699 class BlockState { | 698 class BlockState { |
700 public: | 699 public: |
701 BlockState(Scope** scope_stack, ScopeType scope_type) | 700 BlockState(Scope** scope_stack, ScopeType scope_type) |
702 : scope_stack_(scope_stack), | 701 : scope_stack_(scope_stack), |
703 outer_scope_(*scope_stack), | 702 outer_scope_(*scope_stack), |
704 scope_(*scope_stack, scope_type) { | 703 scope_(*scope_stack, scope_type) { |
705 *scope_stack_ = &scope_; | 704 *scope_stack_ = &scope_; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 "accessor_get_set"); | 948 "accessor_get_set"); |
950 } | 949 } |
951 *ok = false; | 950 *ok = false; |
952 } | 951 } |
953 } | 952 } |
954 | 953 |
955 | 954 |
956 } } // v8::internal | 955 } } // v8::internal |
957 | 956 |
958 #endif // V8_PREPARSER_H | 957 #endif // V8_PREPARSER_H |
OLD | NEW |