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 10441071: Use the typedef arity to know how to invoke a closure given by the dom. (Closed)

Created:
8 years, 6 months ago by ngeoffray
Modified:
8 years, 6 months ago
Reviewers:
karlklose, ahe, kasperl
CC:
reviews_dartlang.org, Lasse Reichstein Nielsen, floitsch
Visibility:
Public.

Description

Use the typedef arity to know how to invoke a closure given by the dom. Committed: https://code.google.com/p/dart/source/detail?r=8067

Patch Set 1 : #

Total comments: 18

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -66 lines) Patch
M dart/lib/compiler/implementation/compiler.dart View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M dart/lib/compiler/implementation/elements/elements.dart View 1 2 3 4 2 chunks +10 lines, -21 lines 0 comments Download
M dart/lib/compiler/implementation/lib/js_helper.dart View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M dart/lib/compiler/implementation/native_emitter.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M dart/lib/compiler/implementation/native_handler.dart View 1 2 3 4 3 chunks +7 lines, -6 lines 0 comments Download
M dart/lib/compiler/implementation/resolver.dart View 1 2 3 4 3 chunks +36 lines, -13 lines 0 comments Download
M dart/lib/compiler/implementation/scanner/listener.dart View 1 2 3 4 3 chunks +20 lines, -3 lines 0 comments Download
M dart/lib/compiler/implementation/typechecker.dart View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M dart/samples/tests/samples/samples.status View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M dart/tests/benchmark_smoke/benchmark_smoke.status View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M dart/tests/corelib/corelib.status View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M dart/tests/dom/dom.status View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M dart/tests/html/html.status View 1 2 3 4 1 chunk +8 lines, -1 line 0 comments Download
M dart/tests/isolate/isolate.status View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/json/json.status View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M dart/tests/language/language.status View 1 2 3 4 2 chunks +17 lines, -2 lines 0 comments Download
M dart/tests/lib/lib.status View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M dart/tests/utils/utils.status View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ngeoffray
8 years, 6 months ago (2012-05-29 12:10:50 UTC) #1
kasperl
LGTM! https://chromiumcodereview.appspot.com/10441071/diff/16/dart/lib/compiler/implementation/elements/elements.dart File dart/lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10441071/diff/16/dart/lib/compiler/implementation/elements/elements.dart#newcode372 dart/lib/compiler/implementation/elements/elements.dart:372: assert(listener.nodes.isEmpty()); Maybe cancel with an internal error instead? ...
8 years, 6 months ago (2012-05-29 12:16:24 UTC) #2
ngeoffray
Thanks Kasper https://chromiumcodereview.appspot.com/10441071/diff/16/dart/lib/compiler/implementation/lib/js_helper.dart File dart/lib/compiler/implementation/lib/js_helper.dart (right): https://chromiumcodereview.appspot.com/10441071/diff/16/dart/lib/compiler/implementation/lib/js_helper.dart#newcode853 dart/lib/compiler/implementation/lib/js_helper.dart:853: convertDartClosureToJS(closure, int numberOfArguments) { On 2012/05/29 12:16:24, ...
8 years, 6 months ago (2012-05-29 12:31:01 UTC) #3
ahe
https://chromiumcodereview.appspot.com/10441071/diff/16/dart/lib/compiler/implementation/elements/elements.dart File dart/lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10441071/diff/16/dart/lib/compiler/implementation/elements/elements.dart#newcode359 dart/lib/compiler/implementation/elements/elements.dart:359: Node cachedNode; The type should be Typedef. https://chromiumcodereview.appspot.com/10441071/diff/16/dart/lib/compiler/implementation/elements/elements.dart#newcode366 dart/lib/compiler/implementation/elements/elements.dart:366: ...
8 years, 6 months ago (2012-05-29 12:32:08 UTC) #4
ngeoffray
Thanks Peter, PTAL https://chromiumcodereview.appspot.com/10441071/diff/16/dart/lib/compiler/implementation/elements/elements.dart File dart/lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10441071/diff/16/dart/lib/compiler/implementation/elements/elements.dart#newcode359 dart/lib/compiler/implementation/elements/elements.dart:359: Node cachedNode; On 2012/05/29 12:32:08, ahe ...
8 years, 6 months ago (2012-05-29 13:06:28 UTC) #5
ahe
https://chromiumcodereview.appspot.com/10441071/diff/17/dart/lib/compiler/implementation/elements/elements.dart File dart/lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10441071/diff/17/dart/lib/compiler/implementation/elements/elements.dart#newcode363 dart/lib/compiler/implementation/elements/elements.dart:363: Type computeType(Compiler compiler) { I'm absolutely 100% lukewarm on ...
8 years, 6 months ago (2012-05-29 13:21:50 UTC) #6
ngeoffray
PTAL
8 years, 6 months ago (2012-05-29 13:43:13 UTC) #7
ahe
LGTM if you address the comments. https://chromiumcodereview.appspot.com/10441071/diff/12001/dart/lib/compiler/implementation/elements/elements.dart File dart/lib/compiler/implementation/elements/elements.dart (left): https://chromiumcodereview.appspot.com/10441071/diff/12001/dart/lib/compiler/implementation/elements/elements.dart#oldcode365 dart/lib/compiler/implementation/elements/elements.dart:365: position() => findMyName(token); ...
8 years, 6 months ago (2012-05-29 15:43:49 UTC) #8
ngeoffray
8 years, 6 months ago (2012-05-29 15:51:42 UTC) #9
Thanks Peter! I have also updated some status files to stop skipping on firefox.

https://chromiumcodereview.appspot.com/10441071/diff/12001/dart/lib/compiler/...
File dart/lib/compiler/implementation/elements/elements.dart (left):

https://chromiumcodereview.appspot.com/10441071/diff/12001/dart/lib/compiler/...
dart/lib/compiler/implementation/elements/elements.dart:365: position() =>
findMyName(token);
On 2012/05/29 15:43:49, ahe wrote:
> Did you mean to delete this?

Yes, it is now in PartialTypedefElement.

https://chromiumcodereview.appspot.com/10441071/diff/12001/dart/lib/compiler/...
File dart/lib/compiler/implementation/resolver.dart (right):

https://chromiumcodereview.appspot.com/10441071/diff/12001/dart/lib/compiler/...
dart/lib/compiler/implementation/resolver.dart:236: FunctionSignature
resolveSignature(FunctionElement element) {
On 2012/05/29 15:43:49, ahe wrote:
> Wrap in compiler.withCurrentElement

Done.

https://chromiumcodereview.appspot.com/10441071/diff/12001/dart/lib/compiler/...
dart/lib/compiler/implementation/resolver.dart:243: FunctionSignature
resolveTypedef(TypedefElement element) {
On 2012/05/29 15:43:49, ahe wrote:
> Wrap in compiler.withCurrentElement

Done.

https://chromiumcodereview.appspot.com/10441071/diff/12001/dart/lib/compiler/...
File dart/lib/compiler/implementation/scanner/listener.dart (right):

https://chromiumcodereview.appspot.com/10441071/diff/12001/dart/lib/compiler/...
dart/lib/compiler/implementation/scanner/listener.dart:1519: Node
parseNode(Compiler compiler) {
On 2012/05/29 15:43:49, ahe wrote:
> Try to use the parse method as the two other PartialElements do.

Done.

Powered by Google App Engine
This is Rietveld 408576698