| 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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 Scope* top_scope_; | 800 Scope* top_scope_; |
| 801 FunctionState* current_function_state_; | 801 FunctionState* current_function_state_; |
| 802 Target* target_stack_; // for break, continue statements | 802 Target* target_stack_; // for break, continue statements |
| 803 v8::Extension* extension_; | 803 v8::Extension* extension_; |
| 804 ScriptDataImpl* pre_data_; | 804 ScriptDataImpl* pre_data_; |
| 805 FuncNameInferrer* fni_; | 805 FuncNameInferrer* fni_; |
| 806 | 806 |
| 807 Mode mode_; | 807 Mode mode_; |
| 808 bool allow_natives_syntax_; | 808 bool allow_natives_syntax_; |
| 809 bool allow_lazy_; | 809 bool allow_lazy_; |
| 810 bool allow_modules_; |
| 810 bool stack_overflow_; | 811 bool stack_overflow_; |
| 811 // If true, the next (and immediately following) function literal is | 812 // If true, the next (and immediately following) function literal is |
| 812 // preceded by a parenthesis. | 813 // preceded by a parenthesis. |
| 813 // Heuristically that means that the function will be called immediately, | 814 // Heuristically that means that the function will be called immediately, |
| 814 // so never lazily compile it. | 815 // so never lazily compile it. |
| 815 bool parenthesized_function_; | 816 bool parenthesized_function_; |
| 816 | 817 |
| 817 friend class BlockState; | 818 friend class BlockState; |
| 818 friend class FunctionState; | 819 friend class FunctionState; |
| 819 }; | 820 }; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 845 private: | 846 private: |
| 846 static const int kTypeSlot = 0; | 847 static const int kTypeSlot = 0; |
| 847 static const int kElementsSlot = 1; | 848 static const int kElementsSlot = 1; |
| 848 | 849 |
| 849 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 850 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 850 }; | 851 }; |
| 851 | 852 |
| 852 } } // namespace v8::internal | 853 } } // namespace v8::internal |
| 853 | 854 |
| 854 #endif // V8_PARSER_H_ | 855 #endif // V8_PARSER_H_ |
| OLD | NEW |