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

Issue 11613003: Implement a native identical function in the VM. (Closed)

Created:
8 years ago by Max Heinritz (Google)
Modified:
8 years ago
Reviewers:
srdjan, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, siva
Visibility:
Public.

Description

Implement a native identical function in the VM. Returns true if objects are the same instance. Adds an identical closure test (disabled for dart2js pending https://chromiumcodereview.appspot.com/11612022/). BUG=7378 Committed: https://code.google.com/p/dart/source/detail?r=16461

Patch Set 1 : Add native 'identical' to VM #

Total comments: 4

Patch Set 2 : Cleanup for review #

Total comments: 6

Patch Set 3 : reorder function logic, add NaN handling and tests #

Total comments: 3

Patch Set 4 : Identical closure test should pass for dart2dart but not for dart2js. #

Patch Set 5 : Fix comment, use plain vanilla numbers in the test instead of the .pow function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -3 lines) Patch
A runtime/lib/identical.cc View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
M runtime/lib/identical_patch.dart View 1 chunk +1 line, -3 lines 0 comments Download
M runtime/lib/lib_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 chunk +1 line, -0 lines 0 comments Download
A tests/language/identical_closure_test.dart View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Max Heinritz (Google)
8 years ago (2012-12-17 19:14:40 UTC) #1
srdjan
https://codereview.chromium.org/11613003/diff/2001/runtime/lib/identical.cc File runtime/lib/identical.cc (right): https://codereview.chromium.org/11613003/diff/2001/runtime/lib/identical.cc#newcode16 runtime/lib/identical.cc:16: return Bool::Get(a.Equals(b)); YOu need to do the same for ...
8 years ago (2012-12-17 19:42:47 UTC) #2
Max Heinritz (Google)
https://codereview.chromium.org/11613003/diff/2001/runtime/lib/identical.cc File runtime/lib/identical.cc (right): https://codereview.chromium.org/11613003/diff/2001/runtime/lib/identical.cc#newcode16 runtime/lib/identical.cc:16: return Bool::Get(a.Equals(b)); On 2012/12/17 19:42:47, srdjan wrote: > YOu ...
8 years ago (2012-12-17 21:15:23 UTC) #3
srdjan
https://codereview.chromium.org/11613003/diff/11001/runtime/lib/identical.cc File runtime/lib/identical.cc (right): https://codereview.chromium.org/11613003/diff/11001/runtime/lib/identical.cc#newcode11 runtime/lib/identical.cc:11: Instance, a, arguments->NativeArgAt(0)); Null can be an argument: identical(null, ...
8 years ago (2012-12-17 22:10:19 UTC) #4
Max Heinritz (Google)
https://codereview.chromium.org/11613003/diff/11001/runtime/lib/identical.cc File runtime/lib/identical.cc (right): https://codereview.chromium.org/11613003/diff/11001/runtime/lib/identical.cc#newcode11 runtime/lib/identical.cc:11: Instance, a, arguments->NativeArgAt(0)); On 2012/12/17 22:10:19, srdjan wrote: > ...
8 years ago (2012-12-17 23:27:57 UTC) #5
srdjan
LGTM with last comments. https://codereview.chromium.org/11613003/diff/11002/runtime/lib/identical.cc File runtime/lib/identical.cc (right): https://codereview.chromium.org/11613003/diff/11002/runtime/lib/identical.cc#newcode13 runtime/lib/identical.cc:13: Instance, a, arguments->NativeArgAt(0)); Can this ...
8 years ago (2012-12-17 23:30:20 UTC) #6
siva
8 years ago (2012-12-18 01:16:04 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698