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

Unified Diff: runtime/lib/integers.dart

Issue 9212016: - More cleanup after the kSAR -> kSHR rename. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « runtime/lib/integers.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/integers.dart
===================================================================
--- runtime/lib/integers.dart (revision 3311)
+++ runtime/lib/integers.dart (working copy)
@@ -60,7 +60,7 @@
return other - (other ~/ this) * this;
}
int operator >>(int other) {
- return other.sarFromInt(this);
+ return other.shrFromInt(this);
}
int operator <<(int other) {
return other.shlFromInt(this);
@@ -168,7 +168,7 @@
return this;
}
int operator ~() native "Smi_bitNegate";
- int sarFromInt(int other) native "Smi_sarFromInt";
+ int shrFromInt(int other) native "Smi_shrFromInt";
int shlFromInt(int other) native "Smi_shlFromInt";
}
@@ -184,7 +184,7 @@
int operator ~() native "Mint_bitNegate";
// Shift by mint exceeds range that can be handled by the VM.
- int sarFromInt(int other) {
+ int shrFromInt(int other) {
if (other < 0) {
return -1;
} else {
@@ -209,7 +209,7 @@
int operator ~() native "Bigint_bitNegate";
// Shift by bigint exceeds range that can be handled by the VM.
- int sarFromInt(int other) {
+ int shrFromInt(int other) {
if (other < 0) {
return -1;
} else {
« no previous file with comments | « runtime/lib/integers.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698