| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 \ | 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_CONST, "=init_const", 2) /* AST-use only. */ \ | 75 T(INIT_CONST, "=init_const", 2) /* AST-use only. */ \ |
| 75 T(ASSIGN, "=", 2) \ | 76 T(ASSIGN, "=", 2) \ |
| 76 T(ASSIGN_BIT_OR, "|=", 2) \ | 77 T(ASSIGN_BIT_OR, "|=", 2) \ |
| 77 T(ASSIGN_BIT_XOR, "^=", 2) \ | 78 T(ASSIGN_BIT_XOR, "^=", 2) \ |
| 78 T(ASSIGN_BIT_AND, "&=", 2) \ | 79 T(ASSIGN_BIT_AND, "&=", 2) \ |
| 79 T(ASSIGN_SHL, "<<=", 2) \ | 80 T(ASSIGN_SHL, "<<=", 2) \ |
| 80 T(ASSIGN_SAR, ">>=", 2) \ | 81 T(ASSIGN_SAR, ">>=", 2) \ |
| 81 T(ASSIGN_SHR, ">>>=", 2) \ | 82 T(ASSIGN_SHR, ">>>=", 2) \ |
| 82 T(ASSIGN_ADD, "+=", 2) \ | 83 T(ASSIGN_ADD, "+=", 2) \ |
| 83 T(ASSIGN_SUB, "-=", 2) \ | 84 T(ASSIGN_SUB, "-=", 2) \ |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 private: | 280 private: |
| 280 static const char* const name_[NUM_TOKENS]; | 281 static const char* const name_[NUM_TOKENS]; |
| 281 static const char* const string_[NUM_TOKENS]; | 282 static const char* const string_[NUM_TOKENS]; |
| 282 static const int8_t precedence_[NUM_TOKENS]; | 283 static const int8_t precedence_[NUM_TOKENS]; |
| 283 static const char token_type[NUM_TOKENS]; | 284 static const char token_type[NUM_TOKENS]; |
| 284 }; | 285 }; |
| 285 | 286 |
| 286 } } // namespace v8::internal | 287 } } // namespace v8::internal |
| 287 | 288 |
| 288 #endif // V8_TOKEN_H_ | 289 #endif // V8_TOKEN_H_ |
| OLD | NEW |