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

Issue 22425006: Fix equality of implicit closures in the Dart VM. (Closed)

Created:
7 years, 4 months ago by Florian Schneider
Modified:
7 years, 4 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix equality of implicit closures in the Dart VM. This CL also lifts the restriction that classes could not extends or implement 'Function'. BUG=https://code.google.com/p/dart/issues/detail?id=10849 BUG=https://code.google.com/p/dart/issues/detail?id=12411 TEST=tests/language/bound_closure_equality_test.dart, tests/language/black_listed_test.dart R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=26114

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : new simpler approach #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : synced to bleeding_edge #

Patch Set 7 : added missing file #

Total comments: 20

Patch Set 8 : addresses last round of comments #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -17 lines) Patch
M runtime/lib/corelib_sources.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/lib/function.cc View 1 2 3 4 5 6 7 8 1 chunk +46 lines, -0 lines 0 comments Download
A runtime/lib/function.dart View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 4 5 3 chunks +1 line, -6 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -6 lines 0 comments Download
M runtime/vm/object_store.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/object_store.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/black_listed_test.dart View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Ivan Posva
https://codereview.chromium.org/22425006/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/22425006/diff/1/runtime/vm/object.cc#newcode4751 runtime/vm/object.cc:4751: // Add == function to implicit instance closures. This ...
7 years, 4 months ago (2013-08-09 21:24:30 UTC) #1
Florian Schneider
https://codereview.chromium.org/22425006/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/22425006/diff/1/runtime/vm/object.cc#newcode4751 runtime/vm/object.cc:4751: // Add == function to implicit instance closures. Done. ...
7 years, 4 months ago (2013-08-12 09:32:12 UTC) #2
Florian Schneider
Uploaded a much simplified version as you suggested. Instead of having signature classes implement "Function", ...
7 years, 4 months ago (2013-08-12 18:03:05 UTC) #3
Ivan Posva
https://codereview.chromium.org/22425006/diff/17001/runtime/lib/function_patch.dart File runtime/lib/function_patch.dart (right): https://codereview.chromium.org/22425006/diff/17001/runtime/lib/function_patch.dart#newcode31 runtime/lib/function_patch.dart:31: bool operator ==(other) native "Function_equals"; These should be on ...
7 years, 4 months ago (2013-08-13 07:35:09 UTC) #4
Florian Schneider
Addressed comments. The CL got quite a bit bigger mostly because the additional abstract _DartFunctionImpl ...
7 years, 4 months ago (2013-08-13 14:52:20 UTC) #5
Florian Schneider
Uploaded new patch.
7 years, 4 months ago (2013-08-13 16:23:20 UTC) #6
Florian Schneider
Synced to bleeding_edge.
7 years, 4 months ago (2013-08-13 17:21:26 UTC) #7
Ivan Posva
-Ivan https://codereview.chromium.org/22425006/diff/51001/runtime/lib/function.cc File runtime/lib/function.cc (right): https://codereview.chromium.org/22425006/diff/51001/runtime/lib/function.cc#newcode31 runtime/lib/function.cc:31: DEFINE_NATIVE_ENTRY(Function_equals, 2) { FunctionImpl_equals https://codereview.chromium.org/22425006/diff/51001/runtime/lib/function.cc#newcode32 runtime/lib/function.cc:32: const Instance& ...
7 years, 4 months ago (2013-08-13 17:58:48 UTC) #8
Ivan Posva
LGTM with comments addressed. The addition of Closure::CheckedHandle can happen in a follow up CL. ...
7 years, 4 months ago (2013-08-14 05:27:57 UTC) #9
Florian Schneider
https://codereview.chromium.org/22425006/diff/51001/runtime/lib/function.cc File runtime/lib/function.cc (right): https://codereview.chromium.org/22425006/diff/51001/runtime/lib/function.cc#newcode31 runtime/lib/function.cc:31: DEFINE_NATIVE_ENTRY(Function_equals, 2) { On 2013/08/13 17:58:49, Ivan Posva wrote: ...
7 years, 4 months ago (2013-08-14 09:07:48 UTC) #10
Florian Schneider
7 years, 4 months ago (2013-08-14 11:44:03 UTC) #11
Message was sent while issue was closed.
Committed patchset #9 manually as r26114 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698