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

Issue 21381002: Implement mirror equality on the VM. Resolves issue 12026. (Closed)

Created:
7 years, 4 months ago by rmacnak
Modified:
7 years, 4 months ago
Reviewers:
ahe, siva
CC:
reviews_dartlang.org, ahe, Michael Lippautz (Google)
Visibility:
Public.

Description

Implement mirror equality on the VM. Resolves issue 12026. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=25711

Patch Set 1 : #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -2 lines) Patch
M runtime/lib/mirror_reference.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/lib/mirrors.cc View 1 chunk +7 lines, -0 lines 2 comments Download
M runtime/lib/mirrors_impl.dart View 5 chunks +29 lines, -1 line 5 comments Download
M runtime/vm/bootstrap_natives.h View 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/lib.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
rmacnak
https://codereview.chromium.org/21381002/diff/5001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/21381002/diff/5001/runtime/lib/mirrors.cc#newcode460 runtime/lib/mirrors.cc:460: return Bool::Get(a.referent() == b.referent()); Assert no GC? Identical_comparison doesn't. ...
7 years, 4 months ago (2013-07-31 18:38:00 UTC) #1
siva
https://codereview.chromium.org/21381002/diff/5001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/21381002/diff/5001/runtime/lib/mirrors.cc#newcode460 runtime/lib/mirrors.cc:460: return Bool::Get(a.referent() == b.referent()); Sure you can add a ...
7 years, 4 months ago (2013-08-01 00:05:06 UTC) #2
siva
7 years, 4 months ago (2013-08-01 00:07:16 UTC) #3
rmacnak
On 2013/08/01 00:05:06, siva wrote: > https://codereview.chromium.org/21381002/diff/5001/runtime/lib/mirrors.cc > File runtime/lib/mirrors.cc (right): > > https://codereview.chromium.org/21381002/diff/5001/runtime/lib/mirrors.cc#newcode460 > ...
7 years, 4 months ago (2013-08-01 00:16:23 UTC) #4
siva
On 2013/08/01 00:16:23, Ryan Macnak wrote: > On 2013/08/01 00:05:06, siva wrote: > > https://codereview.chromium.org/21381002/diff/5001/runtime/lib/mirrors.cc ...
7 years, 4 months ago (2013-08-01 01:05:24 UTC) #5
siva
lgtm
7 years, 4 months ago (2013-08-01 01:05:43 UTC) #6
rmacnak
Committed patchset #1 manually as r25711 (presubmit successful).
7 years, 4 months ago (2013-08-01 16:40:15 UTC) #7
ahe
How is this tested?
7 years, 4 months ago (2013-08-06 15:22:15 UTC) #8
ahe
7 years, 4 months ago (2013-08-06 15:28:11 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/21381002/diff/5001/runtime/lib/mirrors_impl.dart
File runtime/lib/mirrors_impl.dart (right):

https://codereview.chromium.org/21381002/diff/5001/runtime/lib/mirrors_impl.d...
runtime/lib/mirrors_impl.dart:304: int get hashCode => _reflectee.hashCode;
This hashCode implementation is not compatible with operator ==.
You really should use hashCode from Object.

Powered by Google App Engine
This is Rietveld 408576698