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

Unified Diff: runtime/lib/bigint.dart

Issue 2137673002: Sped up hashCode by removing megamorphic call to _identityHashCode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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/bool_patch.dart » ('j') | runtime/lib/double.dart » ('J')
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 c21b04a0f1eba31f25d858c4d41db352d1463f5e..0c562d7b730e9b3e9e4649a9636aa8d1252454cf 100644
--- a/runtime/lib/bigint.dart
+++ b/runtime/lib/bigint.dart
@@ -1206,9 +1206,9 @@ class _Bigint extends _IntegerImplementation implements int {
return r_used;
}
- int get _identityHashCode {
- return this;
- }
+ int get hashCode => this;
+ int get _identityHashCode => this;
+
int operator ~() {
return _not()._toValidInt();
}
« no previous file with comments | « no previous file | runtime/lib/bool_patch.dart » ('j') | runtime/lib/double.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698