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

Issue 892583002: Support async getters. (Closed)

Created:
5 years, 10 months ago by Johnni Winther
Modified:
4 years, 8 months ago
Reviewers:
ahe, floitsch
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Support async getters. BUG=http://dartbug.com/22184 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=43333

Patch Set 1 #

Total comments: 8

Patch Set 2 : Updated cf. comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -20 lines) Patch
M pkg/compiler/lib/src/resolution/members.dart View 6 chunks +13 lines, -10 lines 0 comments Download
M pkg/compiler/lib/src/scanner/parser.dart View 1 6 chunks +84 lines, -10 lines 3 comments Download
M tests/compiler/dart2js/async_await_syntax.dart View 5 chunks +91 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Johnni Winther
5 years, 10 months ago (2015-01-30 09:49:34 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/892583002/diff/1/pkg/compiler/lib/src/scanner/parser.dart File pkg/compiler/lib/src/scanner/parser.dart (right): https://codereview.chromium.org/892583002/diff/1/pkg/compiler/lib/src/scanner/parser.dart#newcode949 pkg/compiler/lib/src/scanner/parser.dart:949: bool hasAsync = false; So far this seems ...
5 years, 10 months ago (2015-01-30 10:48:13 UTC) #3
Johnni Winther
Committed patchset #2 (id:20001) manually as 43333 (presubmit successful).
5 years, 10 months ago (2015-01-30 12:14:25 UTC) #4
Johnni Winther
https://codereview.chromium.org/892583002/diff/1/pkg/compiler/lib/src/scanner/parser.dart File pkg/compiler/lib/src/scanner/parser.dart (right): https://codereview.chromium.org/892583002/diff/1/pkg/compiler/lib/src/scanner/parser.dart#newcode949 pkg/compiler/lib/src/scanner/parser.dart:949: bool hasAsync = false; On 2015/01/30 10:48:13, floitsch wrote: ...
5 years, 10 months ago (2015-01-30 12:16:33 UTC) #5
floitsch
https://codereview.chromium.org/892583002/diff/1/pkg/compiler/lib/src/scanner/parser.dart File pkg/compiler/lib/src/scanner/parser.dart (right): https://codereview.chromium.org/892583002/diff/1/pkg/compiler/lib/src/scanner/parser.dart#newcode953 pkg/compiler/lib/src/scanner/parser.dart:953: if (identical(value, 'get')) { On 2015/01/30 12:16:33, Johnni Winther ...
5 years, 10 months ago (2015-01-30 12:18:14 UTC) #6
Johnni Winther
https://codereview.chromium.org/892583002/diff/1/pkg/compiler/lib/src/scanner/parser.dart File pkg/compiler/lib/src/scanner/parser.dart (right): https://codereview.chromium.org/892583002/diff/1/pkg/compiler/lib/src/scanner/parser.dart#newcode953 pkg/compiler/lib/src/scanner/parser.dart:953: if (identical(value, 'get')) { On 2015/01/30 12:18:14, floitsch wrote: ...
5 years, 10 months ago (2015-01-30 15:40:16 UTC) #7
ahe
DBC https://codereview.chromium.org/892583002/diff/20001/pkg/compiler/lib/src/scanner/parser.dart File pkg/compiler/lib/src/scanner/parser.dart (right): https://codereview.chromium.org/892583002/diff/20001/pkg/compiler/lib/src/scanner/parser.dart#newcode954 pkg/compiler/lib/src/scanner/parser.dart:954: (value == 'sync' || value == 'async')) { ...
4 years, 8 months ago (2016-04-25 12:54:15 UTC) #9
Johnni Winther
https://codereview.chromium.org/892583002/diff/20001/pkg/compiler/lib/src/scanner/parser.dart File pkg/compiler/lib/src/scanner/parser.dart (right): https://codereview.chromium.org/892583002/diff/20001/pkg/compiler/lib/src/scanner/parser.dart#newcode954 pkg/compiler/lib/src/scanner/parser.dart:954: (value == 'sync' || value == 'async')) { On ...
4 years, 8 months ago (2016-04-25 13:36:02 UTC) #10
ahe
4 years, 8 months ago (2016-04-25 13:39:53 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/892583002/diff/20001/pkg/compiler/lib/src/sca...
File pkg/compiler/lib/src/scanner/parser.dart (right):

https://codereview.chromium.org/892583002/diff/20001/pkg/compiler/lib/src/sca...
pkg/compiler/lib/src/scanner/parser.dart:954: (value == 'sync' || value ==
'async')) {
On 2016/04/25 13:36:02, Johnni Winther wrote:
> On 2016/04/25 12:54:15, ahe wrote:
> > FWIW, for sake of performance, it's important that you use identical when
> > comparing keywords in the parser.
> 
> I was under the imprecision that the VM had optimized for this.

It's probably optimized with something like this:

operator ==(String s) {
  if (identical(this, s)) return true;
  // Normal "slow" case.
}

So we often end up in the slow case.

Powered by Google App Engine
This is Rietveld 408576698