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

Issue 10855208: Implement new equality spec. (Closed)

Created:
8 years, 4 months ago by srdjan
Modified:
8 years, 4 months ago
Reviewers:
regis, sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Implement new equality spec. "If either o1 or o2 is null, then ee evaluates to identical(o1,o2), where identical() is the predefined dart function that returns true iff its two arguments are the same object. " Committed: https://code.google.com/p/dart/source/detail?r=10907

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -16 lines) Patch
M runtime/vm/intermediate_language_ia32.cc View 1 2 3 5 chunks +52 lines, -8 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 3 5 chunks +52 lines, -8 lines 0 comments Download
A tests/language/equality_test.dart View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
srdjan
8 years, 4 months ago (2012-08-17 01:00:58 UTC) #1
sra1
https://chromiumcodereview.appspot.com/10855208/diff/6001/tests/language/equality_test.dart File tests/language/equality_test.dart (right): https://chromiumcodereview.appspot.com/10855208/diff/6001/tests/language/equality_test.dart#newcode24 tests/language/equality_test.dart:24: Expect.isFalse(null != null); Should also compare cases where both ...
8 years, 4 months ago (2012-08-17 01:34:08 UTC) #2
regis
LGTM https://chromiumcodereview.appspot.com/10855208/diff/6001/runtime/vm/intermediate_language_ia32.cc File runtime/vm/intermediate_language_ia32.cc (right): https://chromiumcodereview.appspot.com/10855208/diff/6001/runtime/vm/intermediate_language_ia32.cc#newcode315 runtime/vm/intermediate_language_ia32.cc:315: } else { Code is easier to read ...
8 years, 4 months ago (2012-08-17 01:53:44 UTC) #3
srdjan
8 years, 4 months ago (2012-08-17 17:26:41 UTC) #4
https://chromiumcodereview.appspot.com/10855208/diff/6001/runtime/vm/intermed...
File runtime/vm/intermediate_language_ia32.cc (right):

https://chromiumcodereview.appspot.com/10855208/diff/6001/runtime/vm/intermed...
runtime/vm/intermediate_language_ia32.cc:315: } else {
On 2012/08/17 01:53:45, regis wrote:
> Code is easier to read if you document this branch with
> ASSERT(comp->kind() == Token::kNE);

Done.

https://chromiumcodereview.appspot.com/10855208/diff/6001/runtime/vm/intermed...
File runtime/vm/intermediate_language_x64.cc (right):

https://chromiumcodereview.appspot.com/10855208/diff/6001/runtime/vm/intermed...
runtime/vm/intermediate_language_x64.cc:324: } else {
On 2012/08/17 01:53:45, regis wrote:
> ditto

Done.

Powered by Google App Engine
This is Rietveld 408576698