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

Issue 10911211: Runtime support for the new parameter specification. (Closed)

Created:
8 years, 3 months ago by ngeoffray
Modified:
8 years, 3 months ago
Reviewers:
ahe, kasperl
CC:
reviews_dartlang.org, regis
Visibility:
Public.

Description

Runtime support for the new parameter specification. Committed: https://code.google.com/p/dart/source/detail?r=12258

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -74 lines) Patch
M lib/compiler/implementation/compiler.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M lib/compiler/implementation/elements/elements.dart View 1 1 chunk +7 lines, -5 lines 0 comments Download
M lib/compiler/implementation/js_backend/emitter.dart View 1 2 3 4 5 6 6 chunks +13 lines, -10 lines 4 comments Download
M lib/compiler/implementation/js_backend/namer.dart View 1 2 3 4 5 6 2 chunks +27 lines, -12 lines 2 comments Download
M lib/compiler/implementation/js_backend/native_emitter.dart View 1 2 3 4 1 chunk +2 lines, -2 lines 2 comments Download
M lib/compiler/implementation/native_handler.dart View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M lib/compiler/implementation/resolver.dart View 1 3 chunks +3 lines, -0 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M lib/compiler/implementation/ssa/codegen.dart View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M lib/compiler/implementation/universe/universe.dart View 1 2 3 3 chunks +103 lines, -32 lines 6 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
ngeoffray
8 years, 3 months ago (2012-09-11 14:41:40 UTC) #1
kasperl
Maybe I can convince you to merge from trunk and re-upload? http://codereview.chromium.org/10911211/diff/1/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): ...
8 years, 3 months ago (2012-09-12 07:20:30 UTC) #2
ngeoffray
Uploaded to TOT. PTAL http://codereview.chromium.org/10911211/diff/1/lib/compiler/implementation/compiler.dart File lib/compiler/implementation/compiler.dart (right): http://codereview.chromium.org/10911211/diff/1/lib/compiler/implementation/compiler.dart#newcode95 lib/compiler/implementation/compiler.dart:95: static final bool REJECT_NAMED_ARGUMENT_AS_POSITIONAL = ...
8 years, 3 months ago (2012-09-12 07:30:08 UTC) #3
kasperl
If I'm right, I guess you need another test case. http://codereview.chromium.org/10911211/diff/4001/lib/compiler/implementation/universe/universe.dart File lib/compiler/implementation/universe/universe.dart (right): http://codereview.chromium.org/10911211/diff/4001/lib/compiler/implementation/universe/universe.dart#newcode222 ...
8 years, 3 months ago (2012-09-12 08:23:13 UTC) #4
ngeoffray
Thanks Kasper, PTAL http://codereview.chromium.org/10911211/diff/4001/lib/compiler/implementation/universe/universe.dart File lib/compiler/implementation/universe/universe.dart (right): http://codereview.chromium.org/10911211/diff/4001/lib/compiler/implementation/universe/universe.dart#newcode222 lib/compiler/implementation/universe/universe.dart:222: return namedArguments.isEmpty(); On 2012/09/12 08:23:13, kasperl ...
8 years, 3 months ago (2012-09-12 09:14:34 UTC) #5
kasperl
LGTM.
8 years, 3 months ago (2012-09-12 09:15:55 UTC) #6
ngeoffray
Thanks Kasper, but PTAL, I had to also update the names of instance methods in ...
8 years, 3 months ago (2012-09-12 11:22:38 UTC) #7
kasperl
LGTM. https://chromiumcodereview.appspot.com/10911211/diff/13002/lib/compiler/implementation/js_backend/emitter.dart File lib/compiler/implementation/js_backend/emitter.dart (right): https://chromiumcodereview.appspot.com/10911211/diff/13002/lib/compiler/implementation/js_backend/emitter.dart#newcode352 lib/compiler/implementation/js_backend/emitter.dart:352: if (parameters.optionalParametersAreNamed Add a comment that explains what ...
8 years, 3 months ago (2012-09-12 11:34:48 UTC) #8
ngeoffray
Thanks Kasper https://chromiumcodereview.appspot.com/10911211/diff/13002/lib/compiler/implementation/js_backend/emitter.dart File lib/compiler/implementation/js_backend/emitter.dart (right): https://chromiumcodereview.appspot.com/10911211/diff/13002/lib/compiler/implementation/js_backend/emitter.dart#newcode352 lib/compiler/implementation/js_backend/emitter.dart:352: if (parameters.optionalParametersAreNamed On 2012/09/12 11:34:48, kasperl wrote: ...
8 years, 3 months ago (2012-09-12 11:40:05 UTC) #9
ahe
LGTM! http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementation/js_backend/emitter.dart File lib/compiler/implementation/js_backend/emitter.dart (right): http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementation/js_backend/emitter.dart#newcode354 lib/compiler/implementation/js_backend/emitter.dart:354: // If the selector has the same number ...
8 years, 3 months ago (2012-09-13 14:29:10 UTC) #10
ngeoffray
8 years, 3 months ago (2012-09-17 12:21:01 UTC) #11
Thanks Peter for the comments. Addressed in:
https://codereview.chromium.org/10919316/.

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
File lib/compiler/implementation/js_backend/emitter.dart (right):

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
lib/compiler/implementation/js_backend/emitter.dart:354: // If the selector has
the same number of named arguments than
On 2012/09/13 14:29:10, ahe wrote:
> than -> as

Done.

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
lib/compiler/implementation/js_backend/emitter.dart:374: // the deprecated
parameter specification.
On 2012/09/13 14:29:10, ahe wrote:
> Actually, I think this comment should be moved to addParameterStubs (plural).

Done.

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
File lib/compiler/implementation/js_backend/namer.dart (right):

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
lib/compiler/implementation/js_backend/namer.dart:124: return
'${name.slowToString()}\$$arity';
On 2012/09/13 14:29:10, ahe wrote:
> assert(!name.isPrivate());

Done.

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
File lib/compiler/implementation/js_backend/native_emitter.dart (right):

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
lib/compiler/implementation/js_backend/native_emitter.dart:415: String
toStringName = backend.namer.instanceMethodNameByArity(
On 2012/09/13 14:29:10, ahe wrote:
> Maybe rename to publicInstanceMethodByArity?

Done.

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
File lib/compiler/implementation/universe/universe.dart (right):

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
lib/compiler/implementation/universe/universe.dart:230: if
(positionalArgumentCount > requiredParameterCount) return false;
On 2012/09/13 14:29:10, ahe wrote:
> assert(positionalArgumentCount == requiredParameterCount);

Done.

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
lib/compiler/implementation/universe/universe.dart:238: // TODO(ngeoffray): By
removing from the set we are checking
On 2012/09/13 14:29:10, ahe wrote:
> Perhaps Jamie would like to look at that. File a bug.

Done: http://code.google.com/p/dart/issues/detail?id=5213

http://codereview.chromium.org/10911211/diff/13003/lib/compiler/implementatio...
lib/compiler/implementation/universe/universe.dart:357: if
(!Compiler.REJECT_NAMED_ARGUMENT_AS_POSITIONAL) {
On 2012/09/13 14:29:10, ahe wrote:
> TODO?

Done.

Powered by Google App Engine
This is Rietveld 408576698