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

Unified Diff: runtime/lib/integers.dart

Issue 1820653002: VM library tweaks to avoid megamorphic calls in dart2js (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/bool_patch.dart ('k') | runtime/lib/string_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/integers.dart
diff --git a/runtime/lib/integers.dart b/runtime/lib/integers.dart
index 9192b28bfa2592d5412ecb1b0e16446bb9d68dbf..45500d6dc21ecd5b3af28a6ae3585ddfa3a9a558 100644
--- a/runtime/lib/integers.dart
+++ b/runtime/lib/integers.dart
@@ -410,9 +410,8 @@ class _Smi extends _IntegerImplementation implements int {
throw new UnsupportedError(
"_Smi can only be allocated by the VM");
}
- int get _identityHashCode {
- return this;
- }
+ int get _identityHashCode => this;
+ int get hashCode => this;
int operator ~() native "Smi_bitNegate";
int get bitLength native "Smi_bitLength";
@@ -608,9 +607,8 @@ class _Mint extends _IntegerImplementation implements int {
throw new UnsupportedError(
"_Mint can only be allocated by the VM");
}
- int get _identityHashCode {
- return this;
- }
+ int get _identityHashCode => this;
+ int get hashCode => this;
int operator ~() native "Mint_bitNegate";
int get bitLength native "Mint_bitLength";
« no previous file with comments | « runtime/lib/bool_patch.dart ('k') | runtime/lib/string_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698