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

Unified Diff: pkg/analyzer/lib/src/generated/constant.dart

Issue 928613002: Use better hash computer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/constant.dart
diff --git a/pkg/analyzer/lib/src/generated/constant.dart b/pkg/analyzer/lib/src/generated/constant.dart
index b756a9d84dc44c21a314c1e4148d4be4717aea7e..ee264e6c6e4ec8f28f8c327b8cebca0d01fc860e 100644
--- a/pkg/analyzer/lib/src/generated/constant.dart
+++ b/pkg/analyzer/lib/src/generated/constant.dart
@@ -14,12 +14,12 @@ import 'element.dart';
import 'engine.dart' show AnalysisEngine, RecordingErrorListener;
import 'error.dart';
import 'java_core.dart';
-import 'java_engine.dart' show ObjectUtilities;
import 'resolver.dart' show TypeProvider;
import 'scanner.dart' show Token, TokenType;
import 'source.dart' show Source;
import 'utilities_collection.dart';
import 'utilities_dart.dart' show ParameterKind;
+import 'package:analyzer/src/generated/utilities_general.dart';
/**
* Instances of the class `BoolState` represent the state of an object representing a boolean
@@ -2210,8 +2210,7 @@ class DartObjectImpl implements DartObject {
bool get hasExactValue => _state.hasExactValue;
@override
- int get hashCode =>
- ObjectUtilities.combineHashCodes(type.hashCode, _state.hashCode);
+ int get hashCode => JenkinsSmiHash.hash2(type.hashCode, _state.hashCode);
@override
int get intValue {
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698