| 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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 Handle<String> NextLiteralString(PretenureFlag tenured) { | 760 Handle<String> NextLiteralString(PretenureFlag tenured) { |
| 761 if (scanner().is_next_literal_ascii()) { | 761 if (scanner().is_next_literal_ascii()) { |
| 762 return isolate_->factory()->NewStringFromAscii( | 762 return isolate_->factory()->NewStringFromAscii( |
| 763 scanner().next_literal_ascii_string(), tenured); | 763 scanner().next_literal_ascii_string(), tenured); |
| 764 } else { | 764 } else { |
| 765 return isolate_->factory()->NewStringFromTwoByte( | 765 return isolate_->factory()->NewStringFromTwoByte( |
| 766 scanner().next_literal_utf16_string(), tenured); | 766 scanner().next_literal_utf16_string(), tenured); |
| 767 } | 767 } |
| 768 } | 768 } |
| 769 | 769 |
| 770 Handle<String> GetSymbol(bool* ok); | 770 Handle<String> GetSymbol(); |
| 771 | 771 |
| 772 // Get odd-ball literals. | 772 // Get odd-ball literals. |
| 773 Literal* GetLiteralUndefined(); | 773 Literal* GetLiteralUndefined(); |
| 774 Literal* GetLiteralTheHole(); | 774 Literal* GetLiteralTheHole(); |
| 775 | 775 |
| 776 Handle<String> ParseIdentifier(bool* ok); | 776 Handle<String> ParseIdentifier(bool* ok); |
| 777 Handle<String> ParseIdentifierOrStrictReservedWord( | 777 Handle<String> ParseIdentifierOrStrictReservedWord( |
| 778 bool* is_strict_reserved, bool* ok); | 778 bool* is_strict_reserved, bool* ok); |
| 779 Handle<String> ParseIdentifierName(bool* ok); | 779 Handle<String> ParseIdentifierName(bool* ok); |
| 780 Handle<String> ParseIdentifierNameOrGetOrSet(bool* is_get, | 780 Handle<String> ParseIdentifierNameOrGetOrSet(bool* is_get, |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 private: | 908 private: |
| 909 static const int kTypeSlot = 0; | 909 static const int kTypeSlot = 0; |
| 910 static const int kElementsSlot = 1; | 910 static const int kElementsSlot = 1; |
| 911 | 911 |
| 912 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 912 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 913 }; | 913 }; |
| 914 | 914 |
| 915 } } // namespace v8::internal | 915 } } // namespace v8::internal |
| 916 | 916 |
| 917 #endif // V8_PARSER_H_ | 917 #endif // V8_PARSER_H_ |
| OLD | NEW |