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

Issue 10915054: Mark the local for this as used if a constructor call needs type variables. (Closed)

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

Description

Mark the local for this as used if a constructor call needs type variables. R=floitsch@google.com BUG=http://code.google.com/p/dart/issues/detail?id=4829 Committed: https://code.google.com/p/dart/source/detail?r=11787

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add test and address comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -35 lines) Patch
M lib/compiler/implementation/closure.dart View 1 1 chunk +24 lines, -0 lines 1 comment Download
M lib/compiler/implementation/resolver.dart View 2 chunks +1 line, -14 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 3 chunks +6 lines, -17 lines 0 comments Download
M lib/compiler/implementation/tree/nodes.dart View 1 chunk +16 lines, -0 lines 0 comments Download
A + tests/language/closure_type_variables_test.dart View 1 1 chunk +7 lines, -4 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
karlklose
8 years, 3 months ago (2012-09-03 12:01:40 UTC) #1
ngeoffray
Also add the test case? http://codereview.chromium.org/10915054/diff/1/lib/compiler/implementation/closure.dart File lib/compiler/implementation/closure.dart (right): http://codereview.chromium.org/10915054/diff/1/lib/compiler/implementation/closure.dart#newcode337 lib/compiler/implementation/closure.dart:337: // TODO(karlklose): factories cannot ...
8 years, 3 months ago (2012-09-03 12:57:23 UTC) #2
floitsch
LGTM once Nicolas' comments have been addressed.
8 years, 3 months ago (2012-09-03 13:23:01 UTC) #3
karlklose
PTAL. https://chromiumcodereview.appspot.com/10915054/diff/1/lib/compiler/implementation/closure.dart File lib/compiler/implementation/closure.dart (right): https://chromiumcodereview.appspot.com/10915054/diff/1/lib/compiler/implementation/closure.dart#newcode337 lib/compiler/implementation/closure.dart:337: // TODO(karlklose): factories cannot get the type argument ...
8 years, 3 months ago (2012-09-03 13:55:19 UTC) #4
ngeoffray
LGTM https://chromiumcodereview.appspot.com/10915054/diff/4001/tests/language/closure_type_variables_test.dart File tests/language/closure_type_variables_test.dart (right): https://chromiumcodereview.appspot.com/10915054/diff/4001/tests/language/closure_type_variables_test.dart#newcode5 tests/language/closure_type_variables_test.dart:5: // Test that type variables are available in ...
8 years, 3 months ago (2012-09-03 14:03:36 UTC) #5
floitsch
8 years, 3 months ago (2012-09-03 14:04:15 UTC) #6
LGTM.

https://chromiumcodereview.appspot.com/10915054/diff/4001/lib/compiler/implem...
File lib/compiler/implementation/closure.dart (right):

https://chromiumcodereview.appspot.com/10915054/diff/4001/lib/compiler/implem...
lib/compiler/implementation/closure.dart:337: if (closureData.thisElement !==
null) {
Add comment why this is necessary. Maybe find a more direct way of testing it?
for example: closureData.isInsideInstanceMethod

Powered by Google App Engine
This is Rietveld 408576698