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

Issue 416643002: Support typedefs in function signatures. (Closed)

Created:
6 years, 5 months ago by floitsch
Modified:
6 years, 3 months ago
Reviewers:
karlklose
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Remove new line. #

Patch Set 4 : Recognize typedefs and function mirrors in typeMirrorFromRuntimeTypeRepresentation. #

Total comments: 1

Patch Set 5 : Add/Update tests. Only emit typedef: when it is reflectable. #

Patch Set 6 : Remove spurious 'return'. #

Total comments: 6

Patch Set 7 : Address comments. #

Patch Set 8 : Update mirrors used test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -70 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/namer.dart View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart View 1 2 3 4 6 chunks +35 lines, -6 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/js_emitter.dart View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/metadata_emitter.dart View 1 2 3 4 1 chunk +9 lines, -4 lines 0 comments Download
M sdk/lib/_internal/lib/js_mirrors.dart View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/mirrors_used_test.dart View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/type_representation_test.dart View 1 2 3 4 5 6 4 chunks +132 lines, -43 lines 0 comments Download
M tests/lib/lib.status View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/lib/mirrors/equality_test.dart View 1 2 chunks +9 lines, -11 lines 0 comments Download
A tests/lib/mirrors/typedef_in_signature_test.dart View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
floitsch
6 years, 4 months ago (2014-08-12 12:43:09 UTC) #1
karlklose
LGTM. https://codereview.chromium.org/416643002/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart File sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart (right): https://codereview.chromium.org/416643002/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode158 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:158: Revert this newline.
6 years, 4 months ago (2014-08-12 12:47:45 UTC) #2
floitsch
https://codereview.chromium.org/416643002/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart File sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart (right): https://codereview.chromium.org/416643002/diff/20001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode158 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:158: On 2014/08/12 12:47:45, karlklose wrote: > Revert this newline. ...
6 years, 4 months ago (2014-08-12 13:03:11 UTC) #3
floitsch
PTAL. This is not yet finished. It is missing MirrorsUsed treatment. That is, we need ...
6 years, 4 months ago (2014-08-21 20:33:18 UTC) #4
floitsch
PTAL. This should be ready to go in. https://codereview.chromium.org/416643002/diff/100001/tests/compiler/dart2js/type_representation_test.dart File tests/compiler/dart2js/type_representation_test.dart (right): https://codereview.chromium.org/416643002/diff/100001/tests/compiler/dart2js/type_representation_test.dart#newcode171 tests/compiler/dart2js/type_representation_test.dart:171: expect('$int_rep', ...
6 years, 3 months ago (2014-09-01 20:34:29 UTC) #5
karlklose
SLGTM. https://codereview.chromium.org/416643002/diff/100001/tests/compiler/dart2js/type_representation_test.dart File tests/compiler/dart2js/type_representation_test.dart (right): https://codereview.chromium.org/416643002/diff/100001/tests/compiler/dart2js/type_representation_test.dart#newcode49 tests/compiler/dart2js/type_representation_test.dart:49: [bool encodeTypedefName = false]) { How about testing ...
6 years, 3 months ago (2014-09-02 07:35:31 UTC) #6
floitsch
https://codereview.chromium.org/416643002/diff/100001/tests/compiler/dart2js/type_representation_test.dart File tests/compiler/dart2js/type_representation_test.dart (right): https://codereview.chromium.org/416643002/diff/100001/tests/compiler/dart2js/type_representation_test.dart#newcode49 tests/compiler/dart2js/type_representation_test.dart:49: [bool encodeTypedefName = false]) { On 2014/09/02 07:35:31, karlklose ...
6 years, 3 months ago (2014-09-02 15:50:38 UTC) #7
floitsch
6 years, 3 months ago (2014-09-02 15:54:10 UTC) #8
Message was sent while issue was closed.
Committed patchset #8 (id:130001) manually as 39750 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698