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 1234883005: Implement tear-off closure operator # (Closed)

Created:
5 years, 5 months ago by hausner
Modified:
5 years, 5 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address review comments #

Total comments: 7

Patch Set 3 : Reuse previously created closures #

Total comments: 12

Patch Set 4 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+502 lines, -23 lines) Patch
M runtime/lib/symbol_patch.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
M runtime/vm/parser.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 10 chunks +200 lines, -19 lines 0 comments Download
M runtime/vm/resolver.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
M runtime/vm/symbols.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tests/co19/co19-co19.status View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language/language_analyzer.status View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language_analyzer2.status View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + tests/language/tearoff_basic_lib.dart View 1 1 chunk +10 lines, -4 lines 0 comments Download
A tests/language/tearoff_basic_test.dart View 1 2 1 chunk +166 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
hausner
Ivan, if you don't have time for the review please let me know. Tear-off of ...
5 years, 5 months ago (2015-07-16 23:25:41 UTC) #2
Ivan Posva
First set of comments. -Ivan https://codereview.chromium.org/1234883005/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1234883005/diff/1/runtime/vm/object.cc#newcode7394 runtime/vm/object.cc:7394: result = Object::Clone(result, Heap::kOld); ...
5 years, 5 months ago (2015-07-17 08:35:42 UTC) #3
Florian Schneider
https://codereview.chromium.org/1234883005/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1234883005/diff/1/runtime/vm/object.cc#newcode7390 runtime/vm/object.cc:7390: Object::Handle(field_owner.Evaluate(expr_src, With precompilation we can't invoke the compiler at ...
5 years, 5 months ago (2015-07-17 09:42:02 UTC) #5
hausner
Thanks for taking a look. Here my answers, in case you are still online this ...
5 years, 5 months ago (2015-07-17 17:53:51 UTC) #6
hausner
PTAL and let me know whether the pre-compilation works. Thank you. https://codereview.chromium.org/1234883005/diff/20001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): ...
5 years, 5 months ago (2015-07-17 23:13:07 UTC) #7
Florian Schneider
https://codereview.chromium.org/1234883005/diff/20001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1234883005/diff/20001/runtime/vm/object.cc#newcode7412 runtime/vm/object.cc:7412: String::NewFormatted("(xxx) { return %s = xxx; }", field_name)); s/xxx/value/ ...
5 years, 5 months ago (2015-07-20 07:00:16 UTC) #8
Florian Schneider
https://codereview.chromium.org/1234883005/diff/20001/tests/language/tearoff_basic_test.dart File tests/language/tearoff_basic_test.dart (right): https://codereview.chromium.org/1234883005/diff/20001/tests/language/tearoff_basic_test.dart#newcode140 tests/language/tearoff_basic_test.dart:140: testDeferred(); As Ryan mentioned, equality for closurized getters/setters should ...
5 years, 5 months ago (2015-07-20 17:22:07 UTC) #9
hausner
https://codereview.chromium.org/1234883005/diff/20001/tests/language/tearoff_basic_test.dart File tests/language/tearoff_basic_test.dart (right): https://codereview.chromium.org/1234883005/diff/20001/tests/language/tearoff_basic_test.dart#newcode140 tests/language/tearoff_basic_test.dart:140: testDeferred(); On 2015/07/20 17:22:07, Florian Schneider wrote: > As ...
5 years, 5 months ago (2015-07-20 17:47:27 UTC) #10
hausner
The generated getter and setter closures for static fields are now cached and reused. Thus, ...
5 years, 5 months ago (2015-07-21 17:18:36 UTC) #11
Florian Schneider
Lgtm. https://codereview.chromium.org/1234883005/diff/40001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1234883005/diff/40001/runtime/vm/object.cc#newcode7396 runtime/vm/object.cc:7396: String& closure_name = String::Handle(); String& closure_name = String::Handle(this->name()) ...
5 years, 5 months ago (2015-07-22 08:25:54 UTC) #12
hausner
Thank you. https://codereview.chromium.org/1234883005/diff/40001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1234883005/diff/40001/runtime/vm/object.cc#newcode7396 runtime/vm/object.cc:7396: String& closure_name = String::Handle(); On 2015/07/22 08:25:53, ...
5 years, 5 months ago (2015-07-22 18:41:10 UTC) #13
hausner
5 years, 5 months ago (2015-07-22 19:51:19 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
f1da09741dd69d48f10204cf5974e5ce93805330 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698