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

Side by Side Diff: src/token.h

Issue 181543002: Eliminate extended mode, and other modes clean-up (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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
« no previous file with comments | « src/stub-cache.cc ('k') | src/v8globals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 T(INC, "++", 0) \ 66 T(INC, "++", 0) \
67 T(DEC, "--", 0) \ 67 T(DEC, "--", 0) \
68 \ 68 \
69 /* Assignment operators. */ \ 69 /* Assignment operators. */ \
70 /* IsAssignmentOp() and Assignment::is_compound() relies on */ \ 70 /* IsAssignmentOp() and Assignment::is_compound() relies on */ \
71 /* this block of enum values being contiguous and sorted in the */ \ 71 /* this block of enum values being contiguous and sorted in the */ \
72 /* same order! */ \ 72 /* same order! */ \
73 T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \ 73 T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \
74 T(INIT_LET, "=init_let", 2) /* AST-use only. */ \ 74 T(INIT_LET, "=init_let", 2) /* AST-use only. */ \
75 T(INIT_CONST, "=init_const", 2) /* AST-use only. */ \ 75 T(INIT_CONST, "=init_const", 2) /* AST-use only. */ \
76 T(INIT_CONST_HARMONY, "=init_const_harmony", 2) /* AST-use only. */ \ 76 T(INIT_CONST_LEGACY, "=init_const_legacy", 2) /* AST-use only. */ \
77 T(ASSIGN, "=", 2) \ 77 T(ASSIGN, "=", 2) \
78 T(ASSIGN_BIT_OR, "|=", 2) \ 78 T(ASSIGN_BIT_OR, "|=", 2) \
79 T(ASSIGN_BIT_XOR, "^=", 2) \ 79 T(ASSIGN_BIT_XOR, "^=", 2) \
80 T(ASSIGN_BIT_AND, "&=", 2) \ 80 T(ASSIGN_BIT_AND, "&=", 2) \
81 T(ASSIGN_SHL, "<<=", 2) \ 81 T(ASSIGN_SHL, "<<=", 2) \
82 T(ASSIGN_SAR, ">>=", 2) \ 82 T(ASSIGN_SAR, ">>=", 2) \
83 T(ASSIGN_SHR, ">>>=", 2) \ 83 T(ASSIGN_SHR, ">>>=", 2) \
84 T(ASSIGN_ADD, "+=", 2) \ 84 T(ASSIGN_ADD, "+=", 2) \
85 T(ASSIGN_SUB, "-=", 2) \ 85 T(ASSIGN_SUB, "-=", 2) \
86 T(ASSIGN_MUL, "*=", 2) \ 86 T(ASSIGN_MUL, "*=", 2) \
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 private: 306 private:
307 static const char* const name_[NUM_TOKENS]; 307 static const char* const name_[NUM_TOKENS];
308 static const char* const string_[NUM_TOKENS]; 308 static const char* const string_[NUM_TOKENS];
309 static const int8_t precedence_[NUM_TOKENS]; 309 static const int8_t precedence_[NUM_TOKENS];
310 static const char token_type[NUM_TOKENS]; 310 static const char token_type[NUM_TOKENS];
311 }; 311 };
312 312
313 } } // namespace v8::internal 313 } } // namespace v8::internal
314 314
315 #endif // V8_TOKEN_H_ 315 #endif // V8_TOKEN_H_
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698