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

Issue 10993059: Stop using the Hashable interface. (Closed)

Created:
8 years, 2 months ago by Lasse Reichstein Nielsen
Modified:
8 years, 2 months ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Stop using the Hashable interface. All objects have a hashCode method, so there is no need for a Hashable interface. The interface itself is retained for at least two weeks, to give time for code to remove uses of it. Committed: https://code.google.com/p/dart/source/detail?r=12955

Patch Set 1 #

Total comments: 22

Patch Set 2 : Some extra space removed, more to come. #

Patch Set 3 : Even more double spaces removed, not all mine. #

Patch Set 4 : Added dartbug reference for removing Hashable. #

Patch Set 5 : Another space removed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -184 lines) Patch
M lib/compiler/implementation/constants.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/dart_backend/placeholder_collector.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/elements/elements.dart View 2 chunks +2 lines, -3 lines 0 comments Download
M lib/compiler/implementation/scanner/token.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/ssa/nodes.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/string_validator.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/tree/nodes.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/typechecker.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M lib/compiler/implementation/universe/universe.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M lib/core/date.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/core/duration.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/core/hashable.dart View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M lib/core/map.dart View 3 chunks +5 lines, -5 lines 0 comments Download
M lib/core/num.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/core/set.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/core/string.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/coreimpl/hash_map_set.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M lib/coreimpl/linked_hash_map.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/isolate/base.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M lib/mirrors/mirrors.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/dartdoc/lib/mirrors.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/fixnum/intx.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/logging/lib/logging.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/http_impl.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/path.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/socket.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/websocket.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/websocket_impl.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/scanner_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/snapshot_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_call_arity1_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_call_arity2_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_call_arity3_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_checked_arguments1_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_checked_fields_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_class_avoids_hidden_name_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_class_inheritance1_test.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_class_inheritance3_test.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_class_inheritance4_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_class_with_dart_methods_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_closure_identity_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_exceptions1_test.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_field_rename_1_test.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_field_rename_2_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_literal_class_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_method_rename1_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_method_rename2_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_method_rename3_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_method_with_keyword_name_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_missing_method1_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_missing_method2_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_named_constructors2_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_named_constructors3_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_no_such_method_exception2_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_no_such_method_exception3_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_no_such_method_exception4_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_no_such_method_exception5_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_no_such_method_exception_test.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_foreign/native_null_closure_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_null_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_parameter_names_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_property_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_to_string_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_use_native_name_in_table_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_wrapping_function2_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_wrapping_function3_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_foreign/native_wrapping_function_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_native/core_type_check_native_test.dart View 1 chunk +21 lines, -43 lines 0 comments Download
M tests/corelib/date_time2_test.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M tests/corelib/is_operator_basic_types_test.dart View 6 chunks +0 lines, -6 lines 0 comments Download
M tests/corelib/set_iterator_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/language/core_type_check_test.dart View 1 2 2 chunks +15 lines, -28 lines 0 comments Download
M tests/language/map_literal_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/language/savannah_test.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/language/type_guard_conversion_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/type_parameter_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/utils/vim/syntax/dart.vim View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/package.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/version.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/yaml/model.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M utils/pub/yaml/yaml_map.dart View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein Nielsen
8 years, 2 months ago (2012-09-27 12:40:16 UTC) #1
Lasse Reichstein Nielsen
https://codereview.chromium.org/10993059/diff/1/lib/compiler/implementation/constants.dart File lib/compiler/implementation/constants.dart (right): https://codereview.chromium.org/10993059/diff/1/lib/compiler/implementation/constants.dart#newcode19 lib/compiler/implementation/constants.dart:19: class Constant { Whoops, double space. Will fix.
8 years, 2 months ago (2012-09-27 12:42:36 UTC) #2
Mads Ager (google)
LGTM, with tons of single spaces removed. :-) https://codereview.chromium.org/10993059/diff/1/lib/compiler/implementation/constants.dart File lib/compiler/implementation/constants.dart (right): https://codereview.chromium.org/10993059/diff/1/lib/compiler/implementation/constants.dart#newcode19 lib/compiler/implementation/constants.dart:19: class ...
8 years, 2 months ago (2012-09-27 12:48:27 UTC) #3
Lasse Reichstein Nielsen
8 years, 2 months ago (2012-09-27 13:59:36 UTC) #4
https://codereview.chromium.org/10993059/diff/1/lib/core/hashable.dart
File lib/core/hashable.dart (right):

https://codereview.chromium.org/10993059/diff/1/lib/core/hashable.dart#newcode11
lib/core/hashable.dart:11: * after a grace period. Code that use the
[:Hashable:] interface should just
On 2012/09/27 12:48:27, Mads Ager wrote:
> I assume you are going to send out a breaking change mail to the mailing list
> with this once this lands?

Absolutely.

> Please add a TODO with a bug number for a M2 bug so we make sure this is
removed.

Done.

Powered by Google App Engine
This is Rietveld 408576698