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

Issue 2989073002: [fasta] Issue error for large integer literals (Closed)

Created:
3 years, 4 months ago by alexmarkov
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org, dart-uxr+reviews_google.com, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[fasta] Issue error for large integer literals This CL adds error reporting for large integer literals into the new kernel front-end. It is a part of preparation for limiting integers to 64 bits in Dart. The new error is reported only if int.parse() fails to parse integer literal, which could happen in the --limit-ints-to-64-bits mode. R=ahe@google.com, scheglov@google.com, sigmund@google.com Issue: https://github.com/dart-lang/sdk/issues/30103 Committed: https://github.com/dart-lang/sdk/commit/f40ce90eaa43e5728150410673b3695059c2cedf

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address review comments #

Patch Set 3 : More detailed error message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -2 lines) Patch
M pkg/front_end/lib/src/fasta/fasta_codes_generated.dart View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 1 chunk +8 lines, -2 lines 0 comments Download
M pkg/front_end/messages.yaml View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
alexmarkov
3 years, 4 months ago (2017-07-28 19:38:08 UTC) #2
scheglov
LGTM
3 years, 4 months ago (2017-07-28 19:40:30 UTC) #3
Siggi Cherem (dart-lang)
Hi Alex, thanks for initiating this change! Let me follow up with Peter and Florian ...
3 years, 4 months ago (2017-07-28 19:51:42 UTC) #4
ahe
I'm strongly against adding more language options to our basic tool chains. Either we commit ...
3 years, 4 months ago (2017-08-01 11:34:13 UTC) #6
alexmarkov
Hi Peter, Thank you for the thorough review! https://codereview.chromium.org/2989073002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2989073002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode1279 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:1279: } ...
3 years, 4 months ago (2017-08-01 20:14:45 UTC) #7
ahe
lgtm https://codereview.chromium.org/2989073002/diff/1/pkg/front_end/messages.yaml File pkg/front_end/messages.yaml (right): https://codereview.chromium.org/2989073002/diff/1/pkg/front_end/messages.yaml#newcode901 pkg/front_end/messages.yaml:901: template: "Integer literal #lexeme is out of range" ...
3 years, 4 months ago (2017-08-03 17:10:16 UTC) #8
alexmarkov
@Siggi, would it be okay if I land this CL? https://codereview.chromium.org/2989073002/diff/1/pkg/front_end/messages.yaml File pkg/front_end/messages.yaml (right): https://codereview.chromium.org/2989073002/diff/1/pkg/front_end/messages.yaml#newcode901 ...
3 years, 4 months ago (2017-08-14 17:56:36 UTC) #9
Siggi Cherem (dart-lang)
lgtm, yes thank you
3 years, 4 months ago (2017-08-14 18:01:26 UTC) #10
alexmarkov
3 years, 4 months ago (2017-08-14 18:08:47 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
f40ce90eaa43e5728150410673b3695059c2cedf (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698