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

Unified Diff: vm/token.h

Issue 9203004: - Remove support for ">>>" operator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/scanner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/token.h
===================================================================
--- vm/token.h (revision 3277)
+++ vm/token.h (working copy)
@@ -13,7 +13,7 @@
//
// 13 multiplicative * / ~/ %
// 12 additive + -
-// 11 shift << >> >>>
+// 11 shift << >>
// 10 relational >= > <= < is
// 9 equality == != === !==
// 8 bitwise and &
@@ -22,7 +22,7 @@
// 5 logical and &&
// 4 logical or ||
// 3 conditional ?
-// 2 assignment = *= /= ~/= %= += -= <<= >>>= >>= &= ^= |=
+// 2 assignment = *= /= ~/= %= += -= <<= >>= &= ^= |=
// 1 comma ,
@@ -54,8 +54,7 @@
TOK(kASSIGN_XOR, "^=", 2, kNoAttribute) \
TOK(kASSIGN_AND, "&=", 2, kNoAttribute) \
TOK(kASSIGN_SHL, "<<=", 2, kNoAttribute) \
- TOK(kASSIGN_SAR, ">>=", 2, kNoAttribute) \
- TOK(kASSIGN_SHR, ">>>=", 2, kNoAttribute) \
+ TOK(kASSIGN_SHR, ">>=", 2, kNoAttribute) \
TOK(kASSIGN_ADD, "+=", 2, kNoAttribute) \
TOK(kASSIGN_SUB, "-=", 2, kNoAttribute) \
TOK(kASSIGN_MUL, "*=", 2, kNoAttribute) \
@@ -73,8 +72,7 @@
\
/* Shift operators. */ \
TOK(kSHL, "<<", 11, kNoAttribute) \
- TOK(kSAR, ">>", 11, kNoAttribute) \
- TOK(kSHR, ">>>", 11, kNoAttribute) \
+ TOK(kSHR, ">>", 11, kNoAttribute) \
\
/* Additive operators. */ \
TOK(kADD, "+", 12, kNoAttribute) \
@@ -241,12 +239,11 @@
ASSERT(tok < kNumTokens);
return IsRelationalOperator(tok) ||
(tok == kEQ) ||
- (tok >= kADD && tok <= kMOD) ||
- (tok >= kBIT_OR && tok <= kSHR) ||
+ (tok >= kADD && tok <= kMOD) || // Arithmetic operations.
+ (tok >= kBIT_OR && tok <= kSHR) || // Bit operations.
(tok == kINDEX) ||
(tok == kASSIGN_INDEX) ||
- (tok == kNEGATE) ||
- (tok >= kBIT_OR && tok <= kBIT_NOT);
+ (tok == kNEGATE);
}
private:
« no previous file with comments | « vm/scanner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698