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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 Expression* ParseRegExpLiteral(bool seen_equal, bool* ok); | 642 Expression* ParseRegExpLiteral(bool seen_equal, bool* ok); |
643 | 643 |
644 // Initialize the components of a for-in / for-of statement. | 644 // Initialize the components of a for-in / for-of statement. |
645 void InitializeForEachStatement(ForEachStatement* stmt, | 645 void InitializeForEachStatement(ForEachStatement* stmt, |
646 Expression* each, | 646 Expression* each, |
647 Expression* subject, | 647 Expression* subject, |
648 Statement* body); | 648 Statement* body); |
649 | 649 |
650 ZoneList<Expression*>* ParseArguments(bool* ok); | 650 ZoneList<Expression*>* ParseArguments(bool* ok); |
651 FunctionLiteral* ParseFunctionLiteral( | 651 FunctionLiteral* ParseFunctionLiteral( |
652 Handle<String> var_name, | 652 Handle<String> name, |
653 Scanner::Location function_name_location, | 653 Scanner::Location function_name_location, |
654 bool name_is_reserved, | 654 bool name_is_strict_reserved, |
655 bool is_generator, | 655 bool is_generator, |
656 int function_token_position, | 656 int function_token_position, |
657 FunctionLiteral::FunctionType type, | 657 FunctionLiteral::FunctionType type, |
658 bool* ok); | 658 bool* ok); |
659 | 659 |
660 // Magical syntax support. | 660 // Magical syntax support. |
661 Expression* ParseV8Intrinsic(bool* ok); | 661 Expression* ParseV8Intrinsic(bool* ok); |
662 | 662 |
663 bool is_generator() const { return current_function_state_->is_generator(); } | 663 bool is_generator() const { return current_function_state_->is_generator(); } |
664 | 664 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 private: | 816 private: |
817 static const int kLiteralTypeSlot = 0; | 817 static const int kLiteralTypeSlot = 0; |
818 static const int kElementsSlot = 1; | 818 static const int kElementsSlot = 1; |
819 | 819 |
820 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 820 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
821 }; | 821 }; |
822 | 822 |
823 } } // namespace v8::internal | 823 } } // namespace v8::internal |
824 | 824 |
825 #endif // V8_PARSER_H_ | 825 #endif // V8_PARSER_H_ |
OLD | NEW |