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

Issue 10956026: - Add definition of "int hashCode()" to Object. (Closed)

Created:
8 years, 3 months ago by Ivan Posva
Modified:
8 years, 3 months ago
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

- Add definition of "int hashCode()" to Object. - Implement hashCode in the VM. - Mark hashCode as unimplemented in dart2js. - Update test using the identity hashcode. Committed: https://code.google.com/p/dart/source/detail?r=12669

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -25 lines) Patch
M lib/compiler/implementation/lib/core_patch.dart View 1 chunk +5 lines, -0 lines 3 comments Download
M lib/compiler/implementation/ssa/value_set.dart View 2 chunks +4 lines, -3 lines 0 comments Download
M lib/core/object.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/lib/object_patch.dart View 1 chunk +16 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/savannah_test.dart View 3 chunks +18 lines, -22 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Ivan Posva
This fixes the VM bug 5267 and provides a framework to implement dart2js bug 5268. ...
8 years, 3 months ago (2012-09-20 22:17:30 UTC) #1
siva
lgtm
8 years, 3 months ago (2012-09-21 00:16:38 UTC) #2
ahe
Except for the unreachable code, dart2js changes look good to me! https://chromiumcodereview.appspot.com/10956026/diff/1/lib/compiler/implementation/lib/core_patch.dart File lib/compiler/implementation/lib/core_patch.dart (right): ...
8 years, 3 months ago (2012-09-21 09:15:56 UTC) #3
Ivan Posva
https://chromiumcodereview.appspot.com/10956026/diff/1/lib/compiler/implementation/lib/core_patch.dart File lib/compiler/implementation/lib/core_patch.dart (right): https://chromiumcodereview.appspot.com/10956026/diff/1/lib/compiler/implementation/lib/core_patch.dart#newcode21 lib/compiler/implementation/lib/core_patch.dart:21: return -1; On 2012/09/21 09:15:57, ahe wrote: > This ...
8 years, 3 months ago (2012-09-24 17:16:47 UTC) #4
ahe
https://chromiumcodereview.appspot.com/10956026/diff/1/lib/compiler/implementation/lib/core_patch.dart File lib/compiler/implementation/lib/core_patch.dart (right): https://chromiumcodereview.appspot.com/10956026/diff/1/lib/compiler/implementation/lib/core_patch.dart#newcode21 lib/compiler/implementation/lib/core_patch.dart:21: return -1; On 2012/09/24 17:16:47, Ivan Posva wrote: > ...
8 years, 3 months ago (2012-09-24 17:19:11 UTC) #5
Ivan Posva
8 years, 3 months ago (2012-09-24 17:27:06 UTC) #6
On 2012/09/24 17:19:11, ahe wrote:
>
https://chromiumcodereview.appspot.com/10956026/diff/1/lib/compiler/implement...
> File lib/compiler/implementation/lib/core_patch.dart (right):
> 
>
https://chromiumcodereview.appspot.com/10956026/diff/1/lib/compiler/implement...
> lib/compiler/implementation/lib/core_patch.dart:21: return -1;
> On 2012/09/24 17:16:47, Ivan Posva wrote:
> > Thanks for the feedback. Next time I will not attempt to alert dart2js'
> > implementation as missing and instead just make it always return some
> constant.
> 
> Or you can just use "throw", there no need to have a "return" after "throw".

Thanks! I did not know that. But it makes perfect sense.

-Ivan

Powered by Google App Engine
This is Rietveld 408576698