| 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 if (MatchKeywordStart(input, "import", 3, | 890 if (MatchKeywordStart(input, "import", 3, |
| 891 Token::FUTURE_RESERVED_WORD)) return; | 891 Token::FUTURE_RESERVED_WORD)) return; |
| 892 break; | 892 break; |
| 893 case IN: | 893 case IN: |
| 894 token_ = Token::IDENTIFIER; | 894 token_ = Token::IDENTIFIER; |
| 895 if (MatchKeywordStart(input, "interface", 2, | 895 if (MatchKeywordStart(input, "interface", 2, |
| 896 Token::FUTURE_RESERVED_WORD)) return; | 896 Token::FUTURE_RESERVED_WORD)) return; |
| 897 if (MatchKeywordStart(input, "instanceof", 2, Token::INSTANCEOF)) return; | 897 if (MatchKeywordStart(input, "instanceof", 2, Token::INSTANCEOF)) return; |
| 898 break; | 898 break; |
| 899 case N: | 899 case N: |
| 900 if (MatchKeywordStart(input, "native", 1, Token::NATIVE)) return; | |
| 901 if (MatchKeywordStart(input, "new", 1, Token::NEW)) return; | 900 if (MatchKeywordStart(input, "new", 1, Token::NEW)) return; |
| 902 if (MatchKeywordStart(input, "null", 1, Token::NULL_LITERAL)) return; | 901 if (MatchKeywordStart(input, "null", 1, Token::NULL_LITERAL)) return; |
| 903 break; | 902 break; |
| 904 case P: | 903 case P: |
| 905 if (MatchKeywordStart(input, "package", 1, | 904 if (MatchKeywordStart(input, "package", 1, |
| 906 Token::FUTURE_RESERVED_WORD)) return; | 905 Token::FUTURE_RESERVED_WORD)) return; |
| 907 if (MatchState(input, 'r', PR)) return; | 906 if (MatchState(input, 'r', PR)) return; |
| 908 if (MatchKeywordStart(input, "public", 1, | 907 if (MatchKeywordStart(input, "public", 1, |
| 909 Token::FUTURE_RESERVED_WORD)) return; | 908 Token::FUTURE_RESERVED_WORD)) return; |
| 910 break; | 909 break; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 if (MatchKeywordStart(input, "with", 1, Token::WITH)) return; | 943 if (MatchKeywordStart(input, "with", 1, Token::WITH)) return; |
| 945 break; | 944 break; |
| 946 case UNMATCHABLE: | 945 case UNMATCHABLE: |
| 947 break; | 946 break; |
| 948 } | 947 } |
| 949 // On fallthrough, it's a failure. | 948 // On fallthrough, it's a failure. |
| 950 state_ = UNMATCHABLE; | 949 state_ = UNMATCHABLE; |
| 951 } | 950 } |
| 952 | 951 |
| 953 } } // namespace v8::internal | 952 } } // namespace v8::internal |
| OLD | NEW |