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

Unified Diff: vm/parser.cc

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/opt_code_generator_ia32.cc ('k') | vm/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/parser.cc
===================================================================
--- vm/parser.cc (revision 3277)
+++ vm/parser.cc (working copy)
@@ -2870,10 +2870,8 @@
void Parser::ConsumeRightAngleBracket() {
if (token_kind_ == Token::kGT) {
ConsumeToken();
- } else if (token_kind_ == Token::kSAR) {
- token_kind_ = Token::kGT;
} else if (token_kind_ == Token::kSHR) {
- token_kind_ = Token::kSAR;
+ token_kind_ = Token::kGT;
} else {
UNREACHABLE();
}
@@ -2887,9 +2885,7 @@
SkipType(false);
} while (CurrentToken() == Token::kCOMMA);
Token::Kind token = CurrentToken();
- if ((token == Token::kGT) ||
- (token == Token::kSAR) ||
- (token == Token::kSHR)) {
+ if ((token == Token::kGT) || (token == Token::kSHR)) {
ConsumeRightAngleBracket();
} else {
ErrorMsg("right angle bracket expected");
@@ -2936,9 +2932,7 @@
type_parameter_extends.Add(&type_extends);
} while (CurrentToken() == Token::kCOMMA);
Token::Kind token = CurrentToken();
- if ((token == Token::kGT) ||
- (token == Token::kSAR) ||
- (token == Token::kSHR)) {
+ if ((token == Token::kGT) || (token == Token::kSHR)) {
ConsumeRightAngleBracket();
} else {
ErrorMsg("right angle bracket expected");
@@ -2970,9 +2964,7 @@
types.Add(&type);
} while (CurrentToken() == Token::kCOMMA);
Token::Kind token = CurrentToken();
- if ((token == Token::kGT) ||
- (token == Token::kSAR) ||
- (token == Token::kSHR)) {
+ if ((token == Token::kGT) || (token == Token::kSHR)) {
ConsumeRightAngleBracket();
} else {
ErrorMsg("right angle bracket expected");
@@ -3911,10 +3903,8 @@
nesting_level++;
} else if (CurrentToken() == Token::kGT) {
nesting_level--;
- } else if (CurrentToken() == Token::kSAR) {
- nesting_level -= 2;
} else if (CurrentToken() == Token::kSHR) {
- nesting_level -= 3;
+ nesting_level -= 2;
} else if (CurrentToken() == Token::kIDENT) {
// Check to see if it is a qualified identifier.
if (LookaheadToken(1) == Token::kPERIOD) {
@@ -5577,12 +5567,10 @@
return new BinaryOpNode(op_pos, Token::kDIV, lhs, rhs);
case Token::kASSIGN_MOD:
return new BinaryOpNode(op_pos, Token::kMOD, lhs, rhs);
- case Token::kASSIGN_SAR:
- return new BinaryOpNode(op_pos, Token::kSAR, lhs, rhs);
- case Token::kASSIGN_SHL:
- return new BinaryOpNode(op_pos, Token::kSHL, lhs, rhs);
case Token::kASSIGN_SHR:
return new BinaryOpNode(op_pos, Token::kSHR, lhs, rhs);
+ case Token::kASSIGN_SHL:
+ return new BinaryOpNode(op_pos, Token::kSHL, lhs, rhs);
case Token::kASSIGN_OR:
return new BinaryOpNode(op_pos, Token::kBIT_OR, lhs, rhs);
case Token::kASSIGN_AND:
« no previous file with comments | « vm/opt_code_generator_ia32.cc ('k') | vm/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698