OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 } | 616 } |
617 | 617 |
618 Handle<String> GetSymbol(bool* ok); | 618 Handle<String> GetSymbol(bool* ok); |
619 | 619 |
620 // Get odd-ball literals. | 620 // Get odd-ball literals. |
621 Literal* GetLiteralUndefined(); | 621 Literal* GetLiteralUndefined(); |
622 Literal* GetLiteralTheHole(); | 622 Literal* GetLiteralTheHole(); |
623 Literal* GetLiteralNumber(double value); | 623 Literal* GetLiteralNumber(double value); |
624 | 624 |
625 Handle<String> ParseIdentifier(bool* ok); | 625 Handle<String> ParseIdentifier(bool* ok); |
626 Handle<String> ParseIdentifierOrReservedWord(bool* is_reserved, bool* ok); | 626 Handle<String> ParseIdentifierOrStrictReservedWord( |
| 627 bool* is_strict_reserved, bool* ok); |
627 Handle<String> ParseIdentifierName(bool* ok); | 628 Handle<String> ParseIdentifierName(bool* ok); |
628 Handle<String> ParseIdentifierOrGetOrSet(bool* is_get, | 629 Handle<String> ParseIdentifierNameOrGetOrSet(bool* is_get, |
629 bool* is_set, | 630 bool* is_set, |
630 bool* ok); | 631 bool* ok); |
631 | 632 |
632 // Strict mode validation of LValue expressions | 633 // Strict mode validation of LValue expressions |
633 void CheckStrictModeLValue(Expression* expression, | 634 void CheckStrictModeLValue(Expression* expression, |
634 const char* error, | 635 const char* error, |
635 bool* ok); | 636 bool* ok); |
636 | 637 |
637 // Strict mode octal literal validation. | 638 // Strict mode octal literal validation. |
638 void CheckOctalLiteral(int beg_pos, int end_pos, bool* ok); | 639 void CheckOctalLiteral(int beg_pos, int end_pos, bool* ok); |
639 | 640 |
640 // Parser support | 641 // Parser support |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 private: | 747 private: |
747 static const int kTypeSlot = 0; | 748 static const int kTypeSlot = 0; |
748 static const int kElementsSlot = 1; | 749 static const int kElementsSlot = 1; |
749 | 750 |
750 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 751 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
751 }; | 752 }; |
752 | 753 |
753 } } // namespace v8::internal | 754 } } // namespace v8::internal |
754 | 755 |
755 #endif // V8_PARSER_H_ | 756 #endif // V8_PARSER_H_ |
OLD | NEW |