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

Issue 13642002: Make sure required type arguments are given when using factories. (Closed)

Created:
7 years, 8 months ago by karlklose
Modified:
7 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make sure required type arguments are given when using factories. When a factory is used to create an instance using type arguments and these instances needed the type arguments, we did not track that requirement, because we only knew about the constructor call to the factory. Committed: https://code.google.com/p/dart/source/detail?r=21057

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -54 lines) Patch
M sdk/lib/_internal/compiler/implementation/enqueue.dart View 1 1 chunk +9 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart View 1 5 chunks +57 lines, -15 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 1 chunk +5 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/universe/universe.dart View 2 chunks +2 lines, -35 lines 0 comments Download
A tests/language/factory_type_parameter2_test.dart View 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
karlklose
https://chromiumcodereview.appspot.com/13642002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart File sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart (right): https://chromiumcodereview.appspot.com/13642002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart#newcode71 sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart:71: if (universe.usingFactoryWithTypeArguments) { l. 71-78 are new. https://chromiumcodereview.appspot.com/13642002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart#newcode80 sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart:80: ...
7 years, 8 months ago (2013-04-04 14:15:40 UTC) #1
ahe
DBC https://chromiumcodereview.appspot.com/13642002/diff/1/sdk/lib/_internal/compiler/implementation/enqueue.dart File sdk/lib/_internal/compiler/implementation/enqueue.dart (right): https://chromiumcodereview.appspot.com/13642002/diff/1/sdk/lib/_internal/compiler/implementation/enqueue.dart#newcode394 sdk/lib/_internal/compiler/implementation/enqueue.dart:394: void registerFactoryWithTypeArguments() { Please pass in the TreeElements ...
7 years, 8 months ago (2013-04-04 18:43:31 UTC) #2
Johnni Winther
lgtm
7 years, 8 months ago (2013-04-05 08:14:46 UTC) #3
ngeoffray
https://chromiumcodereview.appspot.com/13642002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart File sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart (right): https://chromiumcodereview.appspot.com/13642002/diff/1/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart#newcode72 sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart:72: for (DartType type in universe.instantiatedTypes) { What do we ...
7 years, 8 months ago (2013-04-07 09:38:37 UTC) #4
karlklose
Thanks for the review! https://chromiumcodereview.appspot.com/13642002/diff/1/sdk/lib/_internal/compiler/implementation/enqueue.dart File sdk/lib/_internal/compiler/implementation/enqueue.dart (right): https://chromiumcodereview.appspot.com/13642002/diff/1/sdk/lib/_internal/compiler/implementation/enqueue.dart#newcode394 sdk/lib/_internal/compiler/implementation/enqueue.dart:394: void registerFactoryWithTypeArguments() { On 2013/04/04 ...
7 years, 8 months ago (2013-04-08 09:45:12 UTC) #5
karlklose
7 years, 8 months ago (2013-04-08 10:38:32 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r21057 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698