Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: src/scanner-base.cc

Issue 7616009: Parse harmony let declarations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 KEYWORD("for", FOR) \ 838 KEYWORD("for", FOR) \
839 KEYWORD("function", FUNCTION) \ 839 KEYWORD("function", FUNCTION) \
840 KEYWORD_GROUP('i') \ 840 KEYWORD_GROUP('i') \
841 KEYWORD("if", IF) \ 841 KEYWORD("if", IF) \
842 KEYWORD("implements", FUTURE_STRICT_RESERVED_WORD) \ 842 KEYWORD("implements", FUTURE_STRICT_RESERVED_WORD) \
843 KEYWORD("import", FUTURE_RESERVED_WORD) \ 843 KEYWORD("import", FUTURE_RESERVED_WORD) \
844 KEYWORD("in", IN) \ 844 KEYWORD("in", IN) \
845 KEYWORD("instanceof", INSTANCEOF) \ 845 KEYWORD("instanceof", INSTANCEOF) \
846 KEYWORD("interface", FUTURE_STRICT_RESERVED_WORD) \ 846 KEYWORD("interface", FUTURE_STRICT_RESERVED_WORD) \
847 KEYWORD_GROUP('l') \ 847 KEYWORD_GROUP('l') \
848 KEYWORD("let", FUTURE_STRICT_RESERVED_WORD) \ 848 KEYWORD("let", LET) \
849 KEYWORD_GROUP('n') \ 849 KEYWORD_GROUP('n') \
850 KEYWORD("new", NEW) \ 850 KEYWORD("new", NEW) \
851 KEYWORD("null", NULL_LITERAL) \ 851 KEYWORD("null", NULL_LITERAL) \
852 KEYWORD_GROUP('p') \ 852 KEYWORD_GROUP('p') \
853 KEYWORD("package", FUTURE_STRICT_RESERVED_WORD) \ 853 KEYWORD("package", FUTURE_STRICT_RESERVED_WORD) \
854 KEYWORD("private", FUTURE_STRICT_RESERVED_WORD) \ 854 KEYWORD("private", FUTURE_STRICT_RESERVED_WORD) \
855 KEYWORD("protected", FUTURE_STRICT_RESERVED_WORD) \ 855 KEYWORD("protected", FUTURE_STRICT_RESERVED_WORD) \
856 KEYWORD("public", FUTURE_STRICT_RESERVED_WORD) \ 856 KEYWORD("public", FUTURE_STRICT_RESERVED_WORD) \
857 KEYWORD_GROUP('r') \ 857 KEYWORD_GROUP('r') \
858 KEYWORD("return", RETURN) \ 858 KEYWORD("return", RETURN) \
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 } 1034 }
1035 AddLiteralCharAdvance(); 1035 AddLiteralCharAdvance();
1036 } 1036 }
1037 literal.Complete(); 1037 literal.Complete();
1038 1038
1039 next_.location.end_pos = source_pos() - 1; 1039 next_.location.end_pos = source_pos() - 1;
1040 return true; 1040 return true;
1041 } 1041 }
1042 1042
1043 } } // namespace v8::internal 1043 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698