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

Issue 914143002: Fix checked-mode return for async-functions. (Closed)

Created:
5 years, 10 months ago by sigurdm
Modified:
5 years, 10 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix checked-mode return for async-functions. BUG= dartbug.com/22332 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=43719

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -6 lines) Patch
M pkg/compiler/lib/src/dart_types.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 3 chunks +42 lines, -1 line 0 comments Download
A tests/language/async_return_types_test.dart View 1 chunk +55 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
sigurdm
5 years, 10 months ago (2015-02-11 12:19:50 UTC) #2
floitsch
LGTM with minor comments. https://codereview.chromium.org/914143002/diff/1/pkg/compiler/lib/src/ssa/builder.dart File pkg/compiler/lib/src/ssa/builder.dart (right): https://codereview.chromium.org/914143002/diff/1/pkg/compiler/lib/src/ssa/builder.dart#newcode1062 pkg/compiler/lib/src/ssa/builder.dart:1062: bool get isAsync { This ...
5 years, 10 months ago (2015-02-11 15:04:14 UTC) #3
sigurdm
Committed patchset #2 (id:20001) manually as 43719 (presubmit successful).
5 years, 10 months ago (2015-02-12 09:35:56 UTC) #5
sigurdm
5 years, 10 months ago (2015-02-12 09:36:48 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/914143002/diff/1/pkg/compiler/lib/src/ssa/bui...
File pkg/compiler/lib/src/ssa/builder.dart (right):

https://codereview.chromium.org/914143002/diff/1/pkg/compiler/lib/src/ssa/bui...
pkg/compiler/lib/src/ssa/builder.dart:1062: bool get isAsync {
On 2015/02/11 15:04:13, floitsch wrote:
> This would mean that the "SsaBuilder".isAsync.
> 
> Either change the name, or give it an argument. Eg:
> bool get isBuildingAsyncFunction;
> bool _isAsync(Element x)

Done.

https://codereview.chromium.org/914143002/diff/1/pkg/compiler/lib/src/ssa/bui...
pkg/compiler/lib/src/ssa/builder.dart:5189: /// Returns `true` if [Future] is a
[type].
On 2015/02/11 15:04:13, floitsch wrote:
> /// Returns true if the [type] is a valid return type for an asynchronous
> function.
> ///
> /// Asynchronous functions return a `Future`, and a valid return is thus
either
> dynamic, Object, or Future.
> ///
> /// We do not accept the internal Future implementation class.

Done.

https://codereview.chromium.org/914143002/diff/1/pkg/compiler/lib/src/ssa/bui...
pkg/compiler/lib/src/ssa/builder.dart:5190: bool isValidAsyncReturnType(type) {
On 2015/02/11 15:04:13, floitsch wrote:
> Argument type is missing.

Done.

Powered by Google App Engine
This is Rietveld 408576698