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

Issue 11557002: Added bool.hashCode patch. (Closed)

Created:
8 years ago by Tom Ball
Modified:
8 years ago
Reviewers:
sra1, srdjan, cshapiro
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added bool.hashCode patch. BUG: 7244 Committed: https://code.google.com/p/dart/source/detail?r=16011

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
runtime/lib/bool_patch.dart View 1 1 chunk +14 lines, -0 lines 1 comment Download
runtime/lib/lib_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
tests/corelib/bool_hashcode_test.dart View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Tom Ball
8 years ago (2012-12-11 23:23:32 UTC) #1
cshapiro
lgtm https://codereview.chromium.org/11557002/diff/1/runtime/lib/bool_patch.dart File runtime/lib/bool_patch.dart (right): https://codereview.chromium.org/11557002/diff/1/runtime/lib/bool_patch.dart#newcode12 runtime/lib/bool_patch.dart:12: // Object.equals is fine, since true and false ...
8 years ago (2012-12-12 00:35:13 UTC) #2
srdjan
https://codereview.chromium.org/11557002/diff/1/runtime/lib/bool_patch.dart File runtime/lib/bool_patch.dart (right): https://codereview.chromium.org/11557002/diff/1/runtime/lib/bool_patch.dart#newcode12 runtime/lib/bool_patch.dart:12: // Object.equals is fine, since true and false are ...
8 years ago (2012-12-12 00:55:25 UTC) #3
cshapiro
Sounds like a good enough reason for me!
8 years ago (2012-12-12 00:59:07 UTC) #4
sra1
https://codereview.chromium.org/11557002/diff/6001/runtime/lib/bool_patch.dart File runtime/lib/bool_patch.dart (right): https://codereview.chromium.org/11557002/diff/6001/runtime/lib/bool_patch.dart#newcode10 runtime/lib/bool_patch.dart:10: return this ? 1231 : 1237; These values are ...
8 years ago (2012-12-12 01:23:22 UTC) #5
cshapiro
That is only true if the hash code does not subsequently pass through a mixing ...
8 years ago (2012-12-12 01:26:30 UTC) #6
sra1
8 years ago (2012-12-12 02:09:05 UTC) #7
Message was sent while issue was closed.
On 2012/12/12 01:26:30, cshapiro wrote:
> That is only true if the hash code does not subsequently pass through a mixing
> function.  Otherwise, the same will be true of hash tables with small fixnum
> values.

Sure.  On the other hand, there is no mixing function in lib/core/map.dart.
But since _INITIAL_CAPACITY = 8 (huge IMO), the point is moot.

Powered by Google App Engine
This is Rietveld 408576698