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

Unified Diff: runtime/lib/bigint.dart

Issue 1900863004: VM: Remove _leftShiftWithMask32. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | runtime/lib/integers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/bigint.dart
diff --git a/runtime/lib/bigint.dart b/runtime/lib/bigint.dart
index ae941b756fdc3682221dc1f54944e5eabe03e0de..bc9b8f486dea198aff173f0822e0584326bfd940 100644
--- a/runtime/lib/bigint.dart
+++ b/runtime/lib/bigint.dart
@@ -1336,16 +1336,6 @@ class _Bigint extends _IntegerImplementation implements int {
return str;
}
- _leftShiftWithMask32(int count, int mask) {
- if (_used == 0) return 0;
- if (count is! _Smi) {
- _shlFromInt(count); // Throws out of memory exception.
- }
- assert(_DIGIT_BITS == 32); // Otherwise this code needs to be revised.
- if (count > 31) return 0;
- return (_digits[0] << count) & mask;
- }
-
int _bitAndFromInteger(int other) {
return other._toBigint()._and(this)._toValidInt();
}
« no previous file with comments | « no previous file | runtime/lib/integers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698