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

Issue 26472002: Add TypeVariable object on runtime to support reflection on type variables. (Closed)

Created:
7 years, 2 months ago by zarah
Modified:
7 years, 2 months ago
Reviewers:
ahe, karlklose
CC:
reviews_dartlang.org, Johnni Winther
Visibility:
Public.

Description

Add TypeVariable object on runtime to support reflection on type variables. R=ahe@google.com, karlklose@google.com Committed: https://code.google.com/p/dart/source/detail?r=28708

Patch Set 1 #

Total comments: 54

Patch Set 2 : Addressed comments. #

Total comments: 18

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -38 lines) Patch
M sdk/lib/_internal/compiler/implementation/compile_time_constants.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 6 chunks +19 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart View 1 3 chunks +7 lines, -6 lines 0 comments Download
A sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart View 1 2 1 chunk +143 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/class_emitter.dart View 1 2 2 chunks +11 lines, -7 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/code_emitter_task.dart View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/js_emitter.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/lib/js_mirrors.dart View 1 2 5 chunks +17 lines, -11 lines 0 comments Download
M sdk/lib/_internal/lib/js_rti.dart View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M tests/lib/mirrors/class_mirror_type_variables_test.dart View 1 2 chunks +38 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
zarah
7 years, 2 months ago (2013-10-08 09:28:37 UTC) #1
zarah
Ping.
7 years, 2 months ago (2013-10-14 09:55:16 UTC) #2
karlklose
LGTM. https://codereview.chromium.org/26472002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart File sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart (right): https://codereview.chromium.org/26472002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart#newcode341 sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart:341: .map((DartType type) => rti.getTypeRepresentationWithHashes(type, (_){})); Long line. https://codereview.chromium.org/26472002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart ...
7 years, 2 months ago (2013-10-14 10:54:43 UTC) #3
ahe
Mostly nits below, but I would like to see an updated version before I approve ...
7 years, 2 months ago (2013-10-14 13:07:07 UTC) #4
zarah
PTAL. https://codereview.chromium.org/26472002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/26472002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode409 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:409: TypeVariableConstantHandler typeVarHandler; On 2013/10/14 13:07:07, ahe wrote: > ...
7 years, 2 months ago (2013-10-15 14:20:02 UTC) #5
ahe
Comments so far. https://codereview.chromium.org/26472002/diff/25001/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/26472002/diff/25001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode15 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:15: ClassElement get typeVariableClass => backend.typeVariableClass; Please ...
7 years, 2 months ago (2013-10-15 14:56:31 UTC) #6
ahe
LGTM! https://codereview.chromium.org/26472002/diff/25001/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/26472002/diff/25001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode71 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:71: if (constructor != typeVariableConstructor) Braces. https://codereview.chromium.org/26472002/diff/25001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode122 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:122: * ...
7 years, 2 months ago (2013-10-15 14:59:56 UTC) #7
zarah
https://codereview.chromium.org/26472002/diff/25001/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/26472002/diff/25001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode15 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:15: ClassElement get typeVariableClass => backend.typeVariableClass; On 2013/10/15 14:56:31, ahe ...
7 years, 2 months ago (2013-10-16 07:00:47 UTC) #8
zarah
7 years, 2 months ago (2013-10-16 08:17:32 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as r28708 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698