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

Issue 9930005: Use default values of named arguments when invoking the default super constructor. (Closed)

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

Description

Use default values of named arguments when invoking the default super constructor. Committed: https://code.google.com/p/dart/source/detail?r=6580

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove synthetic nodes. #

Patch Set 3 : Report bad static calls with position (regression fix). #

Total comments: 12

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -74 lines) Patch
M lib/compiler/implementation/compile_time_constants.dart View 1 2 3 5 chunks +32 lines, -18 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 2 3 10 chunks +76 lines, -48 lines 0 comments Download
M lib/compiler/implementation/universe.dart View 1 3 chunks +6 lines, -7 lines 0 comments Download
M tests/language/language.status View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language-leg.status View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
A tests/language/src/CompileTimeConstantLTest.dart View 1 chunk +26 lines, -0 lines 0 comments Download
A tests/language/src/CompileTimeConstantPTest.dart View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
floitsch
8 years, 8 months ago (2012-03-29 23:09:08 UTC) #1
ngeoffray
https://chromiumcodereview.appspot.com/9930005/diff/1/lib/compiler/implementation/ssa/builder.dart File lib/compiler/implementation/ssa/builder.dart (right): https://chromiumcodereview.appspot.com/9930005/diff/1/lib/compiler/implementation/ssa/builder.dart#newcode1766 lib/compiler/implementation/ssa/builder.dart:1766: } I think the creation of the synthethized node, ...
8 years, 8 months ago (2012-03-30 09:10:03 UTC) #2
floitsch
https://chromiumcodereview.appspot.com/9930005/diff/1/lib/compiler/implementation/ssa/builder.dart File lib/compiler/implementation/ssa/builder.dart (right): https://chromiumcodereview.appspot.com/9930005/diff/1/lib/compiler/implementation/ssa/builder.dart#newcode1766 lib/compiler/implementation/ssa/builder.dart:1766: } On 2012/03/30 09:10:03, ngeoffray wrote: > I think ...
8 years, 8 months ago (2012-03-30 18:18:28 UTC) #3
floitsch
Making karl the main-reviewer since Nicolas is on vacation.
8 years, 8 months ago (2012-04-11 14:53:21 UTC) #4
floitsch
8 years, 8 months ago (2012-04-11 15:24:01 UTC) #5
karlklose
LGTM. https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/implementation/compile_time_constants.dart File lib/compiler/implementation/compile_time_constants.dart (right): https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/implementation/compile_time_constants.dart#newcode952 lib/compiler/implementation/compile_time_constants.dart:952: * Retruns [:null:] if the [target] does not ...
8 years, 8 months ago (2012-04-12 13:33:51 UTC) #6
ngeoffray
LGTM, with Karl's comments https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/implementation/ssa/builder.dart File lib/compiler/implementation/ssa/builder.dart (right): https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/implementation/ssa/builder.dart#newcode818 lib/compiler/implementation/ssa/builder.dart:818: assert(succeeded); Please add a comment ...
8 years, 8 months ago (2012-04-16 12:24:01 UTC) #7
floitsch
8 years, 8 months ago (2012-04-16 14:23:14 UTC) #8
https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/impleme...
File lib/compiler/implementation/compile_time_constants.dart (right):

https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/impleme...
lib/compiler/implementation/compile_time_constants.dart:952: * Retruns [:null:]
if the [target] does not apply to the selector.
On 2012/04/12 13:33:51, karlklose wrote:
> Retruns -> returns.

As discussed now asserts that it succeeded. So never returns null.

https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/impleme...
lib/compiler/implementation/compile_time_constants.dart:988:
List<Constant>jsNewArguments = evaluator.buildJsNewArguments(classElement);
On 2012/04/12 13:33:51, karlklose wrote:
> Not your code, but please add a space between variable type and name, even
> though it makes the line exceeds the limit. 

Done.

https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/impleme...
lib/compiler/implementation/compile_time_constants.dart:1059: if (arguments ===
null) return false;
On 2012/04/12 13:33:51, karlklose wrote:
> arguments -> compiledArguments? Remove?

removed.

https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/impleme...
File lib/compiler/implementation/ssa/builder.dart (right):

https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/impleme...
lib/compiler/implementation/ssa/builder.dart:818: assert(succeeded);
On 2012/04/16 12:24:02, ngeoffray wrote:
> Please add a comment why this is an assert and not an internalError.

changed to internal error.

https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/impleme...
lib/compiler/implementation/ssa/builder.dart:890: compiler.internalError("no
default constructor available");
On 2012/04/16 12:24:02, ngeoffray wrote:
> Could you also update the resolver to report the 'real' error?

The resolver does the right thing now.

https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/impleme...
File lib/compiler/implementation/universe.dart (right):

https://chromiumcodereview.appspot.com/9930005/diff/5002/lib/compiler/impleme...
lib/compiler/implementation/universe.dart:135:
addMatchingSendArgumentsToList(arguments);
On 2012/04/16 12:24:02, ngeoffray wrote:
> addMatchingSendArgumentsToList -> addMatchingArgumentsToList?

Inlined the function.

Powered by Google App Engine
This is Rietveld 408576698