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

Unified Diff: tool/input_sdk/lib/internal/symbol.dart

Issue 2040963005: Update Symbol.hashCode (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 6 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 | « lib/runtime/dart_sdk.js ('k') | tool/input_sdk/patch/internal_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/internal/symbol.dart
diff --git a/tool/input_sdk/lib/internal/symbol.dart b/tool/input_sdk/lib/internal/symbol.dart
index ddb6c7ec5fba64b0e347128e3de17bf6361e65e2..6722d9840fd7ab7cc42a1f88e8b000ec9dbb94d9 100644
--- a/tool/input_sdk/lib/internal/symbol.dart
+++ b/tool/input_sdk/lib/internal/symbol.dart
@@ -112,10 +112,7 @@ class Symbol implements core.Symbol {
bool operator ==(Object other) => other is Symbol && _name == other._name;
- int get hashCode {
- const arbitraryPrime = 664597;
- return 0x1fffffff & (arbitraryPrime * _name.hashCode);
- }
+ external int get hashCode;
toString() => 'Symbol("$_name")';
« no previous file with comments | « lib/runtime/dart_sdk.js ('k') | tool/input_sdk/patch/internal_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698