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

Issue 21511003: Support symbol literals. (Closed)

Created:
7 years, 4 months ago by Johnni Winther
Modified:
7 years, 2 months ago
Reviewers:
ahe, ngeoffray
CC:
reviews_dartlang.org, ngeoffray
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 10

Patch Set 2 : Updated cf. comments. #

Total comments: 4

Patch Set 3 : Updated cf. comments. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -9 lines) Patch
M sdk/lib/_internal/compiler/implementation/compile_time_constants.dart View 1 2 3 chunks +22 lines, -3 lines 2 comments Download
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 2 chunks +19 lines, -5 lines 2 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/listener.dart View 1 4 chunks +18 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/parser.dart View 1 2 chunks +22 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 1 chunk +8 lines, -0 lines 2 comments Download
M sdk/lib/_internal/compiler/implementation/tree/nodes.dart View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/tree/unparser.dart View 1 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/typechecker.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart View 1 1 chunk +4 lines, -0 lines 1 comment Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/unparser_test.dart View 2 chunks +23 lines, -0 lines 0 comments Download
A tests/compiler/dart2js_extra/private_symbol_literal_test.dart View 1 1 chunk +22 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +1 line, -0 lines 0 comments Download
A tests/language/symbol_literal_test.dart View 1 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Johnni Winther
7 years, 4 months ago (2013-08-01 09:24:13 UTC) #1
ahe
The changes are good, but I'm concerned about lack of negative tests and how you ...
7 years, 4 months ago (2013-08-06 12:20:55 UTC) #2
Johnni Winther
PTAL https://codereview.chromium.org/21511003/diff/1/sdk/lib/_internal/compiler/implementation/scanner/listener.dart File sdk/lib/_internal/compiler/implementation/scanner/listener.dart (right): https://codereview.chromium.org/21511003/diff/1/sdk/lib/_internal/compiler/implementation/scanner/listener.dart#newcode1344 sdk/lib/_internal/compiler/implementation/scanner/listener.dart:1344: if (identifierCount > 0) { On 2013/08/06 12:20:55, ...
7 years, 3 months ago (2013-09-03 12:27:49 UTC) #3
Johnni Winther
PTAL
7 years, 3 months ago (2013-09-03 12:40:35 UTC) #4
ahe
LGTM! https://codereview.chromium.org/21511003/diff/8001/sdk/lib/_internal/compiler/implementation/tree/nodes.dart File sdk/lib/_internal/compiler/implementation/tree/nodes.dart (right): https://codereview.chromium.org/21511003/diff/8001/sdk/lib/_internal/compiler/implementation/tree/nodes.dart#newcode969 sdk/lib/_internal/compiler/implementation/tree/nodes.dart:969: String get nameString => '${identifiers}'; What is this ...
7 years, 3 months ago (2013-09-03 17:53:34 UTC) #5
Johnni Winther
Committed patchset #3 manually as r27095 (presubmit successful).
7 years, 3 months ago (2013-09-04 06:34:23 UTC) #6
ngeoffray
https://codereview.chromium.org/21511003/diff/15001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/21511003/diff/15001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode481 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:481: return [constantSystem.createString( add <Constant> (since you went into the ...
7 years, 3 months ago (2013-09-04 07:14:17 UTC) #7
Johnni Winther
7 years, 3 months ago (2013-09-10 09:09:07 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/21511003/diff/8001/sdk/lib/_internal/compiler...
File sdk/lib/_internal/compiler/implementation/tree/nodes.dart (right):

https://codereview.chromium.org/21511003/diff/8001/sdk/lib/_internal/compiler...
sdk/lib/_internal/compiler/implementation/tree/nodes.dart:969: String get
nameString => '${identifiers}';
On 2013/09/03 17:53:34, ahe wrote:
> What is this for? Looks like a method that should be named "slowToString".

Renamed to slowNameString. It doesn't include # so I wouldn't call it
slowToString.

https://codereview.chromium.org/21511003/diff/8001/sdk/lib/_internal/compiler...
sdk/lib/_internal/compiler/implementation/tree/nodes.dart:972: 
On 2013/09/03 17:53:34, ahe wrote:
> Extra line.

Done.

https://codereview.chromium.org/21511003/diff/15001/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
(right):

https://codereview.chromium.org/21511003/diff/15001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:481:
return [constantSystem.createString(
On 2013/09/04 07:14:17, ngeoffray wrote:
> add <Constant> (since you went into the trouble of typing the return type with
> it.

Done.

https://codereview.chromium.org/21511003/diff/15001/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right):

https://codereview.chromium.org/21511003/diff/15001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/resolution/members.dart:2491:
visitLiteralSymbol(LiteralSymbol node) {
On 2013/09/04 07:14:17, ngeoffray wrote:
> You should report that to the backend!!! :-) You could just use the scheme
with
> world.registerInstantiatedClass, that also registers it to the backend, and
the
> backend recognizes literal types.

Done.

Powered by Google App Engine
This is Rietveld 408576698