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

Side by Side Diff: src/token.h

Issue 486008: Adding compound assignments to the top-level compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/ia32/fast-codegen-ia32.cc ('k') | src/x64/fast-codegen-x64.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 T(LBRACE, "{", 0) \ 59 T(LBRACE, "{", 0) \
60 T(RBRACE, "}", 0) \ 60 T(RBRACE, "}", 0) \
61 T(COLON, ":", 0) \ 61 T(COLON, ":", 0) \
62 T(SEMICOLON, ";", 0) \ 62 T(SEMICOLON, ";", 0) \
63 T(PERIOD, ".", 0) \ 63 T(PERIOD, ".", 0) \
64 T(CONDITIONAL, "?", 3) \ 64 T(CONDITIONAL, "?", 3) \
65 T(INC, "++", 0) \ 65 T(INC, "++", 0) \
66 T(DEC, "--", 0) \ 66 T(DEC, "--", 0) \
67 \ 67 \
68 /* Assignment operators. */ \ 68 /* Assignment operators. */ \
69 /* IsAssignmentOp() relies on this block of enum values */ \ 69 /* IsAssignmentOp() and Assignment::is_compound() relies on */ \
70 /* being contiguous and sorted in the same order! */ \ 70 /* this block of enum values being contiguous and sorted in the */ \
71 /* same order! */ \
71 T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \ 72 T(INIT_VAR, "=init_var", 2) /* AST-use only. */ \
72 T(INIT_CONST, "=init_const", 2) /* AST-use only. */ \ 73 T(INIT_CONST, "=init_const", 2) /* AST-use only. */ \
73 T(ASSIGN, "=", 2) \ 74 T(ASSIGN, "=", 2) \
74 T(ASSIGN_BIT_OR, "|=", 2) \ 75 T(ASSIGN_BIT_OR, "|=", 2) \
75 T(ASSIGN_BIT_XOR, "^=", 2) \ 76 T(ASSIGN_BIT_XOR, "^=", 2) \
76 T(ASSIGN_BIT_AND, "&=", 2) \ 77 T(ASSIGN_BIT_AND, "&=", 2) \
77 T(ASSIGN_SHL, "<<=", 2) \ 78 T(ASSIGN_SHL, "<<=", 2) \
78 T(ASSIGN_SAR, ">>=", 2) \ 79 T(ASSIGN_SAR, ">>=", 2) \
79 T(ASSIGN_SHR, ">>>=", 2) \ 80 T(ASSIGN_SHR, ">>>=", 2) \
80 T(ASSIGN_ADD, "+=", 2) \ 81 T(ASSIGN_ADD, "+=", 2) \
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 #ifdef DEBUG 265 #ifdef DEBUG
265 static const char* name_[NUM_TOKENS]; 266 static const char* name_[NUM_TOKENS];
266 #endif 267 #endif
267 static const char* string_[NUM_TOKENS]; 268 static const char* string_[NUM_TOKENS];
268 static int8_t precedence_[NUM_TOKENS]; 269 static int8_t precedence_[NUM_TOKENS];
269 }; 270 };
270 271
271 } } // namespace v8::internal 272 } } // namespace v8::internal
272 273
273 #endif // V8_TOKEN_H_ 274 #endif // V8_TOKEN_H_
OLDNEW
« no previous file with comments | « src/ia32/fast-codegen-ia32.cc ('k') | src/x64/fast-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698