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

Unified Diff: lib/integers.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
Index: lib/integers.cc
===================================================================
--- lib/integers.cc (revision 3276)
+++ lib/integers.cc (working copy)
@@ -477,7 +477,7 @@
}
result = left.Value() << right.Value();
break;
- case Token::kSAR: {
+ case Token::kSHR: {
int shift_amount = (right.Value() > 0x1F) ? 0x1F : right.Value();
result = left.Value() >> shift_amount;
break;
@@ -511,7 +511,7 @@
switch (kind) {
case Token::kSHL:
return Integer::New(mint_value << amount.Value());
- case Token::kSAR:
+ case Token::kSHR:
return Integer::New(mint_value >> amount.Value());
default:
UNIMPLEMENTED();
@@ -527,7 +527,7 @@
switch (kind) {
case Token::kSHL:
return BigintOperations::ShiftLeft(big_value, amount.Value());
- case Token::kSAR:
+ case Token::kSHR:
return BigintOperations::ShiftRight(big_value, amount.Value());
default:
UNIMPLEMENTED();
@@ -542,7 +542,7 @@
ASSERT(CheckInteger(amount));
ASSERT(CheckInteger(value));
Integer& result = Integer::Handle(
- ShiftOperationHelper(Token::kSAR, value, amount));
+ ShiftOperationHelper(Token::kSHR, value, amount));
arguments->SetReturn(Integer::Handle(AsInteger(result)));
}
« no previous file with comments | « ../tests/corelib/src/CoreRuntimeTypesTest.dart ('k') | vm/ast.cc » ('j') | vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698