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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 PreParser* reusable_preparser_; | 778 PreParser* reusable_preparser_; |
779 Scope* top_scope_; | 779 Scope* top_scope_; |
780 Scope* original_scope_; // for ES5 function declarations in sloppy eval | 780 Scope* original_scope_; // for ES5 function declarations in sloppy eval |
781 FunctionState* current_function_state_; | 781 FunctionState* current_function_state_; |
782 Target* target_stack_; // for break, continue statements | 782 Target* target_stack_; // for break, continue statements |
783 v8::Extension* extension_; | 783 v8::Extension* extension_; |
784 ScriptDataImpl* pre_parse_data_; | 784 ScriptDataImpl* pre_parse_data_; |
785 FuncNameInferrer* fni_; | 785 FuncNameInferrer* fni_; |
786 | 786 |
787 Mode mode_; | 787 Mode mode_; |
788 // If true, the next (and immediately following) function literal is | |
789 // preceded by a parenthesis. | |
790 // Heuristically that means that the function will be called immediately, | |
791 // so never lazily compile it. | |
792 bool parenthesized_function_; | |
793 | 788 |
794 Zone* zone_; | 789 Zone* zone_; |
795 CompilationInfo* info_; | 790 CompilationInfo* info_; |
796 friend class BlockState; | 791 friend class BlockState; |
797 friend class FunctionState; | 792 friend class FunctionState; |
798 }; | 793 }; |
799 | 794 |
800 | 795 |
801 // Support for handling complex values (array and object literals) that | 796 // Support for handling complex values (array and object literals) that |
802 // can be fully handled at compile time. | 797 // can be fully handled at compile time. |
(...skipping 19 matching lines...) Expand all Loading... |
822 private: | 817 private: |
823 static const int kLiteralTypeSlot = 0; | 818 static const int kLiteralTypeSlot = 0; |
824 static const int kElementsSlot = 1; | 819 static const int kElementsSlot = 1; |
825 | 820 |
826 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 821 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
827 }; | 822 }; |
828 | 823 |
829 } } // namespace v8::internal | 824 } } // namespace v8::internal |
830 | 825 |
831 #endif // V8_PARSER_H_ | 826 #endif // V8_PARSER_H_ |
OLD | NEW |