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

Side by Side Diff: src/token.h

Issue 160073006: Implement handling of arrow functions in the parser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Implement handling of arrow functions in the parser Created 6 years, 9 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 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 T(LBRACK, "[", 0) \ 58 T(LBRACK, "[", 0) \
59 T(RBRACK, "]", 0) \ 59 T(RBRACK, "]", 0) \
60 T(LBRACE, "{", 0) \ 60 T(LBRACE, "{", 0) \
61 T(RBRACE, "}", 0) \ 61 T(RBRACE, "}", 0) \
62 T(COLON, ":", 0) \ 62 T(COLON, ":", 0) \
63 T(SEMICOLON, ";", 0) \ 63 T(SEMICOLON, ";", 0) \
64 T(PERIOD, ".", 0) \ 64 T(PERIOD, ".", 0) \
65 T(CONDITIONAL, "?", 3) \ 65 T(CONDITIONAL, "?", 3) \
66 T(INC, "++", 0) \ 66 T(INC, "++", 0) \
67 T(DEC, "--", 0) \ 67 T(DEC, "--", 0) \
68 T(ARROW, "=>", 0) \
68 \ 69 \
69 /* Assignment operators. */ \ 70 /* Assignment operators. */ \
70 /* IsAssignmentOp() and Assignment::is_compound() relies on */ \ 71 /* IsAssignmentOp() and Assignment::is_compound() relies on */ \
71 /* this block of enum values being contiguous and sorted in the */ \ 72 /* this block of enum values being contiguous and sorted in the */ \
72 /* same order! */ \ 73 /* same order! */ \
73 T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \ 74 T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \
74 T(INIT_LET, "=init_let", 2) /* AST-use only. */ \ 75 T(INIT_LET, "=init_let", 2) /* AST-use only. */ \
75 T(INIT_CONST, "=init_const", 2) /* AST-use only. */ \ 76 T(INIT_CONST, "=init_const", 2) /* AST-use only. */ \
76 T(INIT_CONST_LEGACY, "=init_const_legacy", 2) /* AST-use only. */ \ 77 T(INIT_CONST_LEGACY, "=init_const_legacy", 2) /* AST-use only. */ \
77 T(ASSIGN, "=", 2) \ 78 T(ASSIGN, "=", 2) \
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 private: 307 private:
307 static const char* const name_[NUM_TOKENS]; 308 static const char* const name_[NUM_TOKENS];
308 static const char* const string_[NUM_TOKENS]; 309 static const char* const string_[NUM_TOKENS];
309 static const int8_t precedence_[NUM_TOKENS]; 310 static const int8_t precedence_[NUM_TOKENS];
310 static const char token_type[NUM_TOKENS]; 311 static const char token_type[NUM_TOKENS];
311 }; 312 };
312 313
313 } } // namespace v8::internal 314 } } // namespace v8::internal
314 315
315 #endif // V8_TOKEN_H_ 316 #endif // V8_TOKEN_H_
OLDNEW
« src/preparser.cc ('K') | « src/scanner.cc ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698