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

Issue 2879153005: Add support to dart2js for option --enable-asserts. (Closed)

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

Description

Patch Set 1 #

Total comments: 3

Patch Set 2 : Review response: Renamed option to --enable-asserts #

Patch Set 3 : Adjust tests to detect checked mode using a dynamic type check, not an assertion #

Patch Set 4 : Fixed typo in status file syntax for enable_asserts #

Patch Set 5 : Adjusted the status of two tests and the logic of one test, to make them work with --enable-asserts #

Total comments: 4

Patch Set 6 : Formatting #

Total comments: 6

Patch Set 7 : Rebased (e.g., test_options.dart was changed extensively) #

Patch Set 8 : Ported to current master (was delayed in May) #

Patch Set 9 : Added !$checked to section predicate in co19 status file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6008 lines, -8434 lines) Patch
M pkg/compiler/lib/src/commandline_options.dart View 1 6 8 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/dart2js.dart View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/options.dart View 1 6 8 1 chunk +2 lines, -1 line 0 comments Download
M pkg/expect/lib/expect.dart View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
M tests/corelib/int_parse_radix_test.dart View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -4 lines 0 comments Download
M tests/corelib/iterable_generate_test.dart View 1 2 3 4 5 6 8 3 chunks +3 lines, -5 lines 0 comments Download
M tests/corelib/list_removeat_test.dart View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -5 lines 0 comments Download
M tests/corelib/splay_tree_from_iterable_test.dart View 1 2 3 4 5 6 8 1 chunk +1 line, -3 lines 0 comments Download
M tests/language/function_type/function_type0_test.dart View 1 2 3 4 5 6 7 8 9 chunks +34 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type10_test.dart View 1 2 3 4 5 6 7 8 24 chunks +79 lines, -102 lines 0 comments Download
M tests/language/function_type/function_type11_test.dart View 1 2 3 4 5 6 7 8 24 chunks +81 lines, -105 lines 0 comments Download
M tests/language/function_type/function_type12_test.dart View 1 2 3 4 5 6 7 8 9 chunks +32 lines, -62 lines 0 comments Download
M tests/language/function_type/function_type13_test.dart View 1 2 3 4 5 6 7 8 9 chunks +34 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type14_test.dart View 1 2 3 4 5 6 7 8 23 chunks +78 lines, -98 lines 0 comments Download
M tests/language/function_type/function_type15_test.dart View 1 2 3 4 5 6 7 8 25 chunks +81 lines, -104 lines 0 comments Download
M tests/language/function_type/function_type16_test.dart View 1 2 3 4 5 6 7 8 7 chunks +30 lines, -60 lines 0 comments Download
M tests/language/function_type/function_type17_test.dart View 1 2 3 4 5 6 7 8 9 chunks +36 lines, -64 lines 0 comments Download
M tests/language/function_type/function_type18_test.dart View 1 2 3 4 5 6 7 8 23 chunks +79 lines, -102 lines 0 comments Download
M tests/language/function_type/function_type19_test.dart View 1 2 3 4 5 6 7 8 26 chunks +90 lines, -112 lines 0 comments Download
M tests/language/function_type/function_type1_test.dart View 1 2 3 4 5 6 7 8 10 chunks +37 lines, -65 lines 0 comments Download
M tests/language/function_type/function_type20_test.dart View 1 2 3 4 5 6 7 8 8 chunks +31 lines, -61 lines 0 comments Download
M tests/language/function_type/function_type21_test.dart View 1 2 3 4 5 6 7 8 10 chunks +39 lines, -66 lines 0 comments Download
M tests/language/function_type/function_type22_test.dart View 1 2 3 4 5 6 7 8 25 chunks +86 lines, -109 lines 0 comments Download
M tests/language/function_type/function_type23_test.dart View 1 2 3 4 5 6 7 8 27 chunks +94 lines, -118 lines 0 comments Download
M tests/language/function_type/function_type24_test.dart View 1 2 3 4 5 6 7 8 9 chunks +33 lines, -62 lines 0 comments Download
M tests/language/function_type/function_type25_test.dart View 1 2 3 4 5 6 7 8 12 chunks +41 lines, -68 lines 0 comments Download
M tests/language/function_type/function_type26_test.dart View 1 2 3 4 5 6 7 8 29 chunks +92 lines, -113 lines 0 comments Download
M tests/language/function_type/function_type27_test.dart View 1 2 3 4 5 6 7 8 28 chunks +89 lines, -114 lines 0 comments Download
M tests/language/function_type/function_type28_test.dart View 1 2 3 4 5 6 7 8 9 chunks +32 lines, -62 lines 0 comments Download
M tests/language/function_type/function_type29_test.dart View 1 2 3 4 5 6 7 8 13 chunks +44 lines, -70 lines 0 comments Download
M tests/language/function_type/function_type2_test.dart View 1 2 3 4 5 6 7 8 25 chunks +85 lines, -106 lines 0 comments Download
M tests/language/function_type/function_type30_test.dart View 1 2 3 4 5 6 7 8 25 chunks +87 lines, -110 lines 0 comments Download
M tests/language/function_type/function_type31_test.dart View 1 2 3 4 5 6 7 8 28 chunks +90 lines, -117 lines 0 comments Download
M tests/language/function_type/function_type32_test.dart View 1 2 3 4 5 6 7 8 7 chunks +32 lines, -61 lines 0 comments Download
M tests/language/function_type/function_type33_test.dart View 1 2 3 4 5 6 7 8 9 chunks +38 lines, -64 lines 0 comments Download
M tests/language/function_type/function_type34_test.dart View 1 2 3 4 5 6 7 8 21 chunks +79 lines, -102 lines 0 comments Download
M tests/language/function_type/function_type35_test.dart View 1 2 3 4 5 6 7 8 25 chunks +87 lines, -111 lines 0 comments Download
M tests/language/function_type/function_type36_test.dart View 1 2 3 4 5 6 7 8 7 chunks +32 lines, -61 lines 0 comments Download
M tests/language/function_type/function_type37_test.dart View 1 2 3 4 5 6 7 8 9 chunks +40 lines, -66 lines 0 comments Download
M tests/language/function_type/function_type38_test.dart View 1 2 3 4 5 6 7 8 24 chunks +84 lines, -107 lines 0 comments Download
M tests/language/function_type/function_type39_test.dart View 1 2 3 4 5 6 7 8 28 chunks +98 lines, -118 lines 0 comments Download
M tests/language/function_type/function_type3_test.dart View 1 2 3 4 5 6 7 8 29 chunks +96 lines, -119 lines 0 comments Download
M tests/language/function_type/function_type40_test.dart View 1 2 3 4 5 6 7 8 8 chunks +33 lines, -62 lines 0 comments Download
M tests/language/function_type/function_type41_test.dart View 1 2 3 4 5 6 7 8 10 chunks +40 lines, -66 lines 0 comments Download
M tests/language/function_type/function_type42_test.dart View 1 2 3 4 5 6 7 8 26 chunks +84 lines, -107 lines 0 comments Download
M tests/language/function_type/function_type43_test.dart View 1 2 3 4 5 6 7 8 29 chunks +93 lines, -117 lines 0 comments Download
M tests/language/function_type/function_type44_test.dart View 1 2 3 4 5 6 7 8 10 chunks +35 lines, -64 lines 0 comments Download
M tests/language/function_type/function_type45_test.dart View 1 2 3 4 5 6 7 8 11 chunks +40 lines, -67 lines 0 comments Download
M tests/language/function_type/function_type46_test.dart View 1 2 3 4 5 6 7 8 26 chunks +83 lines, -104 lines 0 comments Download
M tests/language/function_type/function_type47_test.dart View 1 2 3 4 5 6 7 8 27 chunks +85 lines, -110 lines 0 comments Download
M tests/language/function_type/function_type48_test.dart View 1 2 3 4 5 6 7 8 9 chunks +34 lines, -62 lines 0 comments Download
M tests/language/function_type/function_type49_test.dart View 1 2 3 4 5 6 7 8 12 chunks +43 lines, -68 lines 0 comments Download
M tests/language/function_type/function_type4_test.dart View 1 2 3 4 5 6 7 8 10 chunks +35 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type50_test.dart View 1 2 3 4 5 6 7 8 26 chunks +87 lines, -108 lines 0 comments Download
M tests/language/function_type/function_type51_test.dart View 1 2 3 4 5 6 7 8 29 chunks +93 lines, -113 lines 0 comments Download
M tests/language/function_type/function_type52_test.dart View 1 2 3 4 5 6 7 8 10 chunks +36 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type53_test.dart View 1 2 3 4 5 6 7 8 10 chunks +38 lines, -62 lines 0 comments Download
M tests/language/function_type/function_type54_test.dart View 1 2 3 4 5 6 7 8 22 chunks +75 lines, -96 lines 0 comments Download
M tests/language/function_type/function_type55_test.dart View 1 2 3 4 5 6 7 8 26 chunks +87 lines, -106 lines 0 comments Download
M tests/language/function_type/function_type56_test.dart View 1 2 3 4 5 6 7 8 7 chunks +31 lines, -59 lines 0 comments Download
M tests/language/function_type/function_type57_test.dart View 1 2 3 4 5 6 7 8 9 chunks +37 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type58_test.dart View 1 2 3 4 5 6 7 8 21 chunks +74 lines, -97 lines 0 comments Download
M tests/language/function_type/function_type59_test.dart View 1 2 3 4 5 6 7 8 24 chunks +83 lines, -105 lines 0 comments Download
M tests/language/function_type/function_type5_test.dart View 1 2 3 4 5 6 7 8 11 chunks +40 lines, -67 lines 0 comments Download
M tests/language/function_type/function_type60_test.dart View 1 2 3 4 5 6 7 8 11 chunks +35 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type61_test.dart View 1 2 3 4 5 6 7 8 11 chunks +38 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type62_test.dart View 1 2 3 4 5 6 7 8 25 chunks +78 lines, -100 lines 0 comments Download
M tests/language/function_type/function_type63_test.dart View 1 2 3 4 5 6 7 8 25 chunks +79 lines, -104 lines 0 comments Download
M tests/language/function_type/function_type64_test.dart View 1 2 3 4 5 6 7 8 11 chunks +35 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type65_test.dart View 1 2 3 4 5 6 7 8 12 chunks +39 lines, -65 lines 0 comments Download
M tests/language/function_type/function_type66_test.dart View 1 2 3 4 5 6 7 8 25 chunks +75 lines, -98 lines 0 comments Download
M tests/language/function_type/function_type67_test.dart View 1 2 3 4 5 6 7 8 27 chunks +85 lines, -104 lines 0 comments Download
M tests/language/function_type/function_type68_test.dart View 1 2 3 4 5 6 7 8 10 chunks +34 lines, -61 lines 0 comments Download
M tests/language/function_type/function_type69_test.dart View 1 2 3 4 5 6 7 8 11 chunks +37 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type6_test.dart View 1 2 3 4 5 6 7 8 24 chunks +80 lines, -105 lines 0 comments Download
M tests/language/function_type/function_type70_test.dart View 1 2 3 4 5 6 7 8 23 chunks +73 lines, -93 lines 0 comments Download
M tests/language/function_type/function_type71_test.dart View 1 2 3 4 5 6 7 8 29 chunks +90 lines, -107 lines 0 comments Download
M tests/language/function_type/function_type72_test.dart View 1 2 3 4 5 6 7 8 12 chunks +38 lines, -65 lines 0 comments Download
M tests/language/function_type/function_type73_test.dart View 1 2 3 4 5 6 7 8 12 chunks +38 lines, -64 lines 0 comments Download
M tests/language/function_type/function_type74_test.dart View 1 2 3 4 5 6 7 8 25 chunks +81 lines, -100 lines 0 comments Download
M tests/language/function_type/function_type75_test.dart View 1 2 3 4 5 6 7 8 31 chunks +95 lines, -115 lines 0 comments Download
M tests/language/function_type/function_type76_test.dart View 1 2 3 4 5 6 7 8 10 chunks +34 lines, -61 lines 0 comments Download
M tests/language/function_type/function_type77_test.dart View 1 2 3 4 5 6 7 8 11 chunks +37 lines, -64 lines 0 comments Download
M tests/language/function_type/function_type78_test.dart View 1 2 3 4 5 6 7 8 26 chunks +82 lines, -103 lines 0 comments Download
M tests/language/function_type/function_type79_test.dart View 1 2 3 4 5 6 7 8 27 chunks +85 lines, -105 lines 0 comments Download
M tests/language/function_type/function_type7_test.dart View 1 2 3 4 5 6 7 8 26 chunks +87 lines, -109 lines 0 comments Download
M tests/language/function_type/function_type80_test.dart View 1 2 3 4 5 6 7 8 12 chunks +38 lines, -64 lines 0 comments Download
M tests/language/function_type/function_type81_test.dart View 1 2 3 4 5 6 7 8 12 chunks +38 lines, -64 lines 0 comments Download
M tests/language/function_type/function_type82_test.dart View 1 2 3 4 5 6 7 8 24 chunks +72 lines, -93 lines 0 comments Download
M tests/language/function_type/function_type83_test.dart View 1 2 3 4 5 6 7 8 26 chunks +79 lines, -99 lines 0 comments Download
M tests/language/function_type/function_type84_test.dart View 1 2 3 4 5 6 7 8 9 chunks +34 lines, -61 lines 0 comments Download
M tests/language/function_type/function_type85_test.dart View 1 2 3 4 5 6 7 8 10 chunks +36 lines, -63 lines 0 comments Download
M tests/language/function_type/function_type86_test.dart View 1 2 3 4 5 6 7 8 20 chunks +66 lines, -92 lines 0 comments Download
M tests/language/function_type/function_type87_test.dart View 1 2 3 4 5 6 7 8 23 chunks +77 lines, -99 lines 0 comments Download
M tests/language/function_type/function_type88_test.dart View 1 2 3 4 5 6 7 8 10 chunks +34 lines, -62 lines 0 comments Download
M tests/language/function_type/function_type89_test.dart View 1 2 3 4 5 6 7 8 11 chunks +37 lines, -64 lines 0 comments Download
M tests/language/function_type/function_type8_test.dart View 1 2 3 4 5 6 7 8 8 chunks +33 lines, -61 lines 0 comments Download
M tests/language/function_type/function_type90_test.dart View 1 2 3 4 5 6 7 8 22 chunks +71 lines, -94 lines 0 comments Download
M tests/language/function_type/function_type91_test.dart View 1 2 3 4 5 6 7 8 24 chunks +80 lines, -101 lines 0 comments Download
M tests/language/function_type/function_type92_test.dart View 1 2 3 4 5 6 7 8 8 chunks +32 lines, -59 lines 0 comments Download
M tests/language/function_type/function_type93_test.dart View 1 2 3 4 5 6 7 8 9 chunks +35 lines, -62 lines 0 comments Download
M tests/language/function_type/function_type94_test.dart View 1 2 3 4 5 6 7 8 20 chunks +67 lines, -88 lines 0 comments Download
M tests/language/function_type/function_type95_test.dart View 1 2 3 4 5 6 7 8 24 chunks +79 lines, -99 lines 0 comments Download
M tests/language/function_type/function_type96_test.dart View 1 2 3 4 5 6 7 8 9 chunks +33 lines, -60 lines 0 comments Download
M tests/language/function_type/function_type97_test.dart View 1 2 3 4 5 6 7 8 8 chunks +32 lines, -60 lines 0 comments Download
M tests/language/function_type/function_type98_test.dart View 1 2 3 4 5 6 7 8 23 chunks +76 lines, -94 lines 0 comments Download
M tests/language/function_type/function_type99_test.dart View 1 2 3 4 5 6 7 8 25 chunks +83 lines, -101 lines 0 comments Download
M tests/language/function_type/function_type9_test.dart View 1 2 3 4 5 6 7 8 11 chunks +42 lines, -68 lines 0 comments Download
M tests/language/function_type/test_generator.dart View 1 2 3 4 5 6 8 2 chunks +1 line, -4 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download
M tests/language/null_bottom_test.dart View 1 2 3 4 5 6 8 2 chunks +1 line, -7 lines 0 comments Download
M tests/language/type_error_test.dart View 1 2 3 4 5 6 8 3 chunks +3 lines, -7 lines 0 comments Download
M tools/testing/dart/configuration.dart View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M tools/testing/dart/environment.dart View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M tools/testing/dart/options.dart View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M tools/testing/dart/test_configurations.dart View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
eernst
Feature requested in SDK issue 29601, may or may not be landed. We have not ...
3 years, 7 months ago (2017-05-15 17:24:56 UTC) #2
eernst
Sigmund, do you think it is a good or a bad idea to add this ...
3 years, 7 months ago (2017-05-15 17:50:58 UTC) #4
sra1
DBC. I have some misgivings about the CL. Mainly, if we support the flag, we ...
3 years, 7 months ago (2017-05-15 20:18:43 UTC) #6
Johnni Winther
lgtm https://codereview.chromium.org/2879153005/diff/1/pkg/compiler/lib/src/commandline_options.dart File pkg/compiler/lib/src/commandline_options.dart (right): https://codereview.chromium.org/2879153005/diff/1/pkg/compiler/lib/src/commandline_options.dart#newcode23 pkg/compiler/lib/src/commandline_options.dart:23: static const String enableAssert = '--enable-assert'; On 2017/05/15 ...
3 years, 7 months ago (2017-05-16 07:38:49 UTC) #7
floitsch
On 2017/05/16 07:38:49, Johnni Winther wrote: > lgtm > > https://codereview.chromium.org/2879153005/diff/1/pkg/compiler/lib/src/commandline_options.dart > File pkg/compiler/lib/src/commandline_options.dart (right): ...
3 years, 7 months ago (2017-05-16 08:53:23 UTC) #8
Siggi Cherem (dart-lang)
lgtm +1 to Stephen's comments. I'm in favor of it, I prefer the name with ...
3 years, 7 months ago (2017-05-16 21:50:55 UTC) #10
eernst
It sounds like we'll be doing this, so I took a few more steps. This ...
3 years, 7 months ago (2017-05-19 07:18:55 UTC) #11
eernst
PTAL, in particular Stephen who's the most skeptical person so far: Are you happy with ...
3 years, 7 months ago (2017-05-19 09:51:20 UTC) #12
sra1
I'm ok with going ahead. I think the suggested package:expect cleanup could be done in ...
3 years, 7 months ago (2017-05-19 16:51:35 UTC) #13
eernst
Added typeAssertionsEnabled, assertStatementsEnabled, checkedModeEnabled to expect.dart and used them in all tests affected by this ...
3 years, 7 months ago (2017-05-23 17:09:55 UTC) #14
sra1
LGTM https://codereview.chromium.org/2879153005/diff/100001/tests/co19/co19-dart2js.status File tests/co19/co19-dart2js.status (right): https://codereview.chromium.org/2879153005/diff/100001/tests/co19/co19-dart2js.status#newcode377 tests/co19/co19-dart2js.status:377: [ $compiler == dart2js && $enable_asserts ] So ...
3 years, 7 months ago (2017-05-24 01:30:46 UTC) #15
eernst
Taking Johnni's advice, it's more important to avoid rocking the boat right now than it ...
3 years, 7 months ago (2017-05-24 10:18:57 UTC) #16
eernst
This CL was delayed in May (in order to avoid problems with the upcoming release). ...
3 years, 5 months ago (2017-07-06 16:15:23 UTC) #17
Siggi Cherem (dart-lang)
lgtm It would be nice if we could address Stephen's comment on the .status file.
3 years, 5 months ago (2017-07-06 17:27:56 UTC) #18
eernst
On 2017/07/06 17:27:56, Siggi Cherem (dart-lang) wrote: > lgtm > > It would be nice ...
3 years, 5 months ago (2017-07-07 08:43:42 UTC) #19
eernst
Review response. https://codereview.chromium.org/2879153005/diff/100001/tests/co19/co19-dart2js.status File tests/co19/co19-dart2js.status (right): https://codereview.chromium.org/2879153005/diff/100001/tests/co19/co19-dart2js.status#newcode377 tests/co19/co19-dart2js.status:377: [ $compiler == dart2js && $enable_asserts ] ...
3 years, 5 months ago (2017-07-07 08:50:30 UTC) #20
eernst
3 years, 5 months ago (2017-07-07 08:59:40 UTC) #22
Message was sent while issue was closed.
Committed patchset #9 (id:140001) manually as
3b05eb95530b1684a3fbcc69bda1784db393b966 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698