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

Issue 73403003: Fix bug in type_variable_handler. (Closed)

Created:
7 years, 1 month ago by zarah
Modified:
7 years ago
Reviewers:
karlklose, ahe, ngeoffray
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

Move registration of type variable constants to resolution. R=ahe@google.com, karlklose@google.com Committed: https://code.google.com/p/dart/source/detail?r=30751

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Changed to use onElementResolved(). #

Total comments: 6

Patch Set 3 : Addressed comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -32 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 2 2 chunks +1 line, -7 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart View 1 2 3 chunks +33 lines, -24 lines 2 comments Download
M tests/compiler/dart2js_extra/mirrors_used_native_test.dart View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
zarah
7 years, 1 month ago (2013-11-15 13:29:34 UTC) #1
karlklose
LGTM. https://codereview.chromium.org/73403003/diff/40001/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/73403003/diff/40001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode46 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:46: print('processClasses ${typeVariableClasses != null}'); Remove debug code. https://codereview.chromium.org/73403003/diff/40001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode57 ...
7 years, 1 month ago (2013-11-15 13:39:35 UTC) #2
ngeoffray
DBC https://codereview.chromium.org/73403003/diff/40001/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/73403003/diff/40001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode68 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:68: !hasMemberNeededForReflection(cls)) return; Please add braces on a two-line ...
7 years, 1 month ago (2013-11-18 07:27:51 UTC) #3
ahe
https://codereview.chromium.org/73403003/diff/40001/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/73403003/diff/40001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode47 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:47: if (typeVariableClasses != null) { As discussed, I don't ...
7 years, 1 month ago (2013-11-18 10:02:45 UTC) #4
zarah
PTAL https://codereview.chromium.org/73403003/diff/40001/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/73403003/diff/40001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode46 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:46: print('processClasses ${typeVariableClasses != null}'); On 2013/11/15 13:39:35, karlklose ...
7 years ago (2013-11-27 14:18:23 UTC) #5
ahe
https://codereview.chromium.org/73403003/diff/110001/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/73403003/diff/110001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode44 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:44: compiler.constantHandler, compiler.globalDependencies, compiler); Why isn't this a field on ...
7 years ago (2013-11-27 14:45:46 UTC) #6
zarah
PTAL https://codereview.chromium.org/73403003/diff/110001/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/73403003/diff/110001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode44 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:44: compiler.constantHandler, compiler.globalDependencies, compiler); On 2013/11/27 14:45:46, ahe wrote: ...
7 years ago (2013-11-27 15:23:17 UTC) #7
ahe
LGTM! https://codereview.chromium.org/73403003/diff/130001/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/73403003/diff/130001/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart#newcode100 sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:100: void onTreeShakingDisabled(Enqueuer enqueuer) { Perhaps this should be ...
7 years ago (2013-11-27 15:43:58 UTC) #8
zarah
Committed patchset #3 manually as r30751 (presubmit successful).
7 years ago (2013-11-28 09:24:07 UTC) #9
zarah
7 years ago (2013-11-28 09:29:25 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/73403003/diff/130001/sdk/lib/_internal/compil...
File
sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
(right):

https://codereview.chromium.org/73403003/diff/130001/sdk/lib/_internal/compil...
sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart:100:
void onTreeShakingDisabled(Enqueuer enqueuer) {
On 2013/11/27 15:43:58, ahe wrote:
> Perhaps this should be grouped with registerClassWithTypeVariables above?

Done.

Powered by Google App Engine
This is Rietveld 408576698