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

Issue 9419009: Use shared implementation of Stopwatch. (Closed)

Created:
8 years, 10 months ago by ahe
Modified:
8 years, 10 months ago
CC:
reviews_dartlang.org, kasperl, Lasse Reichstein Nielsen
Visibility:
Public.

Description

Use shared implementation of Stopwatch. Alos, mock up an implementation of interface constructors. Committed: https://code.google.com/p/dart/source/detail?r=4357

Patch Set 1 #

Total comments: 14

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -135 lines) Patch
M dart/frog/leg/elements/elements.dart View 1 2 chunks +28 lines, -8 lines 0 comments Download
M dart/frog/leg/emitter.dart View 1 chunk +11 lines, -0 lines 0 comments Download
A dart/frog/leg/lib/clock.dart View 1 1 chunk +20 lines, -0 lines 0 comments Download
M dart/frog/leg/lib/core.dart View 1 chunk +1 line, -1 line 0 comments Download
M dart/frog/leg/lib/coreimpl.dart View 2 chunks +3 lines, -0 lines 0 comments Download
M dart/frog/leg/lib/mock.dart View 1 chunk +0 lines, -47 lines 0 comments Download
M dart/frog/leg/lib/mockimpl.dart View 1 chunk +14 lines, -2 lines 0 comments Download
M dart/frog/leg/resolver.dart View 1 2 chunks +106 lines, -54 lines 0 comments Download
M dart/frog/leg/ssa/builder.dart View 1 1 chunk +4 lines, -2 lines 0 comments Download
M dart/frog/leg/warnings.dart View 1 2 chunks +5 lines, -0 lines 0 comments Download
M dart/tests/co19/co19-leg.status View 6 chunks +2 lines, -12 lines 0 comments Download
M dart/tests/corelib/corelib-leg.status View 2 chunks +1 line, -1 line 0 comments Download
M dart/tests/language/language-leg.status View 5 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ahe
8 years, 10 months ago (2012-02-16 15:38:36 UTC) #1
ngeoffray
Initial comments, this is doing much more than what the subject pretends it's doing :) ...
8 years, 10 months ago (2012-02-17 09:45:21 UTC) #2
ngeoffray
And LGTM
8 years, 10 months ago (2012-02-17 14:42:45 UTC) #3
ahe
8 years, 10 months ago (2012-02-17 15:43:10 UTC) #4
Hi Nicolas,

Thank you for you suggestions and comments.

Cheers,
Peter

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/elements/...
File dart/frog/leg/elements/elements.dart (right):

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/elements/...
dart/frog/leg/elements/elements.dart:392:
FunctionElement.tooMuchOverloading(SourceString name,
On 2012/02/17 09:45:21, ngeoffray wrote:
> Unsurprisingly, this is too much. Why didn't you keep the previous way of
doing
> it? There was basically three cases:
> - element created by the diet-parser (FunctionElement)
> - element created for nested functions (FunctionElement.node)
> - element created by the backend (FunctionElement.from).
> 
> I don't think you need to change that. Maybe the name FunctionElement.node
> should be changed to FunctionElement.nested, to make it clearer?

As we discussed, I'd like to raise the abstraction level for building elements
and plan to return to this.

> Also this 'implementation' element, is that just for constructors in
interfaces?
> I'd prefer another name, like defaultImplementation.

Great idea. I have changed the name.

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/lib/clock...
File dart/frog/leg/lib/clock.dart (right):

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/lib/clock...
dart/frog/leg/lib/clock.dart:20: 
On 2012/02/17 09:45:21, ngeoffray wrote:
> extra line

Done.

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/resolver....
File dart/frog/leg/resolver.dart (right):

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/resolver....
dart/frog/leg/resolver.dart:114: if (constructor.implementation === null) {
On 2012/02/17 09:45:21, ngeoffray wrote:
> Maybe add a comment here that you're looking for the constructor with the name
> of the default class, instead of the interface.

Done.

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/resolver....
dart/frog/leg/resolver.dart:122: && new SourceString(name) == defaultClass.name
On 2012/02/17 09:45:21, ngeoffray wrote:
> You could share new SourceString(name) with line 119

Done.

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/resolver....
dart/frog/leg/resolver.dart:123: &&
constructor.functionParameters.parameterCount === 0) {
On 2012/02/17 09:45:21, ngeoffray wrote:
> constructor.computeParameters(compiler).parameterCount

Done.

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/resolver....
dart/frog/leg/resolver.dart:127: if (constructor === null) {
On 2012/02/17 09:45:21, ngeoffray wrote:
> This case cannot happen.

Done.

https://chromiumcodereview.appspot.com/9419009/diff/1/dart/frog/leg/resolver....
dart/frog/leg/resolver.dart:866: handleArguments(node.send);
On 2012/02/17 09:45:21, ngeoffray wrote:
> This should still be done at the end, otherwise you'll get errors on the
> arguments before errors on the type/

Done.

Powered by Google App Engine
This is Rietveld 408576698