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

Issue 8403040: Don't wait unnecessarily. (Closed)

Created:
9 years, 1 month ago by Ben Laurie (Google)
Modified:
9 years, 1 month ago
Reviewers:
floitsch, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 17

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 12

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+439 lines, -211 lines) Patch
M compiler/java/com/google/dart/compiler/DartCompilerMainContext.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +59 lines, -37 lines 0 comments Download
M compiler/lib/implementation/isolate_serialization.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M corelib/src/implementation/promise_implementation.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +10 lines, -10 lines 0 comments Download
M corelib/src/promise.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +3 lines, -2 lines 0 comments Download
M tests/stub-generator/src/MintMakerFullyIsolatedTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +135 lines, -47 lines 0 comments Download
M tests/stub-generator/src/MintMakerFullyIsolatedTest-generatedTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +149 lines, -73 lines 0 comments Download
M tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +32 lines, -14 lines 0 comments Download
M tests/stub-generator/src/MintMakerPromiseWithStubsTest-generatedTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +38 lines, -24 lines 0 comments Download
M tests/stub-generator/stub-generator.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -2 lines 0 comments Download
M tests/stub-generator/testcfg.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Ben Laurie (Google)
9 years, 1 month ago (2011-10-27 15:27:51 UTC) #1
floitsch
LGTM. http://codereview.chromium.org/8403040/diff/5001/tests/stub-generator/src/MintMakerFullyIsolatedTest-generatedTest.dart File tests/stub-generator/src/MintMakerFullyIsolatedTest-generatedTest.dart (right): http://codereview.chromium.org/8403040/diff/5001/tests/stub-generator/src/MintMakerFullyIsolatedTest-generatedTest.dart#newcode252 tests/stub-generator/src/MintMakerFullyIsolatedTest-generatedTest.dart:252: class ProxySet<T extends Proxy> implements Collection<T> { why ...
9 years, 1 month ago (2011-10-27 16:16:54 UTC) #2
Ben Laurie (Google)
BTW, FullyIsolated now passes on dartc but hangs on VM - any idea why? I ...
9 years, 1 month ago (2011-10-27 16:34:57 UTC) #3
floitsch
LGTM with comments. http://codereview.chromium.org/8403040/diff/15001/compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java File compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java (right): http://codereview.chromium.org/8403040/diff/15001/compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java#newcode110 compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java:110: // [x] is a promise for ...
9 years, 1 month ago (2011-11-02 14:34:27 UTC) #4
Ben Laurie (Google)
http://codereview.chromium.org/8403040/diff/15001/compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java File compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java (right): http://codereview.chromium.org/8403040/diff/15001/compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java#newcode110 compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java:110: // [x] is a promise for a proxy. On ...
9 years, 1 month ago (2011-11-02 14:45:44 UTC) #5
floitsch
http://codereview.chromium.org/8403040/diff/15001/compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java File compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java (right): http://codereview.chromium.org/8403040/diff/15001/compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java#newcode342 compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java:342: p("return new Promise<" + type + ">.fromValue(new " + ...
9 years, 1 month ago (2011-11-02 16:04:17 UTC) #6
Ben Laurie (Google)
9 years, 1 month ago (2011-11-02 21:09:34 UTC) #7
http://codereview.chromium.org/8403040/diff/15001/compiler/java/com/google/da...
File
compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java
(right):

http://codereview.chromium.org/8403040/diff/15001/compiler/java/com/google/da...
compiler/java/com/google/dart/compiler/backend/isolate/DartIsolateStubGenerator.java:342:
p("return new Promise<" + type + ">.fromValue(new " + type + "Impl(new
PromiseProxy<SendPort>(new PromiseProxy<SendPort>(");
On 2011/11/02 16:04:17, floitsch wrote:
> On 2011/11/02 14:45:44, Ben Laurie (Google) wrote:
> > On 2011/11/02 14:34:27, floitsch wrote:
> > > This is just way too much without comments...: a promise with value of a
> > > promiseForProxyImpl of a promiseproxy of a promiseproxy...
> > 
> > Done.
> Can't see them.

I have no idea why, but uploaded now.

http://codereview.chromium.org/8403040/diff/15001/tests/stub-generator/testcf...
File tests/stub-generator/testcfg.py (right):

http://codereview.chromium.org/8403040/diff/15001/tests/stub-generator/testcf...
tests/stub-generator/testcfg.py:42: def IsFailureOutput(self, output):
On 2011/11/02 16:04:17, floitsch wrote:
> On 2011/11/02 14:45:44, Ben Laurie (Google) wrote:
> > On 2011/11/02 14:34:27, floitsch wrote:
> > > Are you sure this is necessary?
> > 
> > Yes, without it the test can exit early and appear to work even though it
does
> > not.
> The testing-infrastructure should make sure this is not the case. If not,
please
> give us an example so that we can fix the test-framework. (This is the whole
> reason why you have to write expect.succeeded().)

How? AFAICS it does not achieve that: for example, if I return with outstanding
promises, the result is never tested.

> > 
> > > Do all components now support 'print' in testing mode?
> > 
> > I don't know, but we need _some_ equivalent mechanism or we cannot, in
> general,
> > test asynchronous code.
> > 
> > Being able to set an exit code would be another example of a method that
> should
> > work.
>

Powered by Google App Engine
This is Rietveld 408576698