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

Issue 963593002: Disable formatting and add new-lines to make tests faster. (Closed)

Created:
5 years, 10 months ago by Siggi Cherem (dart-lang)
Modified:
5 years, 10 months ago
Reviewers:
Leaf, vsm, Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Disable formatting and add new-lines to make tests faster. R=vsm@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/7c9f957ccb2e5d4828898d88ec1c769502190334

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+14464 lines, -16217 lines) Patch
M lib/src/codegen/dart_codegen.dart View 1 2 1 chunk +19 lines, -0 lines 3 comments Download
M test/codegen_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/dart_codegen/expect/_internal/_internal View 1 2 1 chunk +9 lines, -35 lines 0 comments Download
M test/dart_codegen/expect/_internal/iterable.dart View 1 2 1 chunk +936 lines, -936 lines 1 comment Download
M test/dart_codegen/expect/_internal/list.dart View 1 2 1 chunk +147 lines, -166 lines 0 comments Download
M test/dart_codegen/expect/_internal/lists.dart View 1 2 1 chunk +54 lines, -49 lines 0 comments Download
M test/dart_codegen/expect/_internal/print.dart View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M test/dart_codegen/expect/_internal/sort.dart View 1 2 1 chunk +204 lines, -189 lines 0 comments Download
M test/dart_codegen/expect/_internal/symbol.dart View 1 2 1 chunk +23 lines, -31 lines 0 comments Download
M test/dart_codegen/expect/async/async View 1 2 1 chunk +14 lines, -17 lines 0 comments Download
M test/dart_codegen/expect/async/async_error.dart View 1 2 1 chunk +23 lines, -29 lines 0 comments Download
M test/dart_codegen/expect/async/broadcast_stream_controller.dart View 1 2 1 chunk +364 lines, -404 lines 0 comments Download
M test/dart_codegen/expect/async/deferred_load.dart View 1 2 1 chunk +10 lines, -12 lines 0 comments Download
M test/dart_codegen/expect/async/future.dart View 1 2 1 chunk +187 lines, -183 lines 0 comments Download
M test/dart_codegen/expect/async/future_impl.dart View 1 2 1 chunk +454 lines, -522 lines 0 comments Download
M test/dart_codegen/expect/async/schedule_microtask.dart View 1 2 1 chunk +58 lines, -62 lines 0 comments Download
M test/dart_codegen/expect/async/stream.dart View 1 2 1 chunk +732 lines, -766 lines 0 comments Download
M test/dart_codegen/expect/async/stream_controller.dart View 1 2 1 chunk +377 lines, -448 lines 0 comments Download
M test/dart_codegen/expect/async/stream_impl.dart View 1 2 1 chunk +656 lines, -761 lines 0 comments Download
M test/dart_codegen/expect/async/stream_pipe.dart View 1 2 1 chunk +245 lines, -290 lines 0 comments Download
M test/dart_codegen/expect/async/stream_transformers.dart View 1 2 1 chunk +150 lines, -173 lines 0 comments Download
M test/dart_codegen/expect/async/timer.dart View 1 2 1 chunk +26 lines, -38 lines 0 comments Download
M test/dart_codegen/expect/async/zone.dart View 1 2 1 chunk +669 lines, -850 lines 0 comments Download
M test/dart_codegen/expect/collection/collection View 1 2 1 chunk +1297 lines, -1536 lines 0 comments Download
M test/dart_codegen/expect/collection/collections.dart View 1 2 1 chunk +4 lines, -6 lines 0 comments Download
M test/dart_codegen/expect/collection/hash_map.dart View 1 2 1 chunk +43 lines, -45 lines 0 comments Download
M test/dart_codegen/expect/collection/hash_set.dart View 1 2 1 chunk +42 lines, -49 lines 0 comments Download
M test/dart_codegen/expect/collection/iterable.dart View 1 2 1 chunk +430 lines, -461 lines 0 comments Download
M test/dart_codegen/expect/collection/iterator.dart View 1 2 1 chunk +20 lines, -24 lines 0 comments Download
M test/dart_codegen/expect/collection/linked_hash_map.dart View 1 2 1 chunk +39 lines, -39 lines 0 comments Download
M test/dart_codegen/expect/collection/linked_hash_set.dart View 1 2 1 chunk +29 lines, -29 lines 0 comments Download
M test/dart_codegen/expect/collection/linked_list.dart View 1 2 1 chunk +117 lines, -146 lines 0 comments Download
M test/dart_codegen/expect/collection/list.dart View 1 2 1 chunk +423 lines, -393 lines 0 comments Download
M test/dart_codegen/expect/collection/maps.dart View 1 2 1 chunk +182 lines, -206 lines 0 comments Download
M test/dart_codegen/expect/collection/queue.dart View 1 2 1 chunk +507 lines, -528 lines 0 comments Download
M test/dart_codegen/expect/collection/set.dart View 1 2 1 chunk +196 lines, -202 lines 0 comments Download
M test/dart_codegen/expect/collection/splay_tree.dart View 1 2 1 chunk +533 lines, -654 lines 0 comments Download
M test/dart_codegen/expect/convert/ascii.dart View 1 2 1 chunk +180 lines, -170 lines 0 comments Download
M test/dart_codegen/expect/convert/byte_conversion.dart View 1 2 1 chunk +47 lines, -55 lines 0 comments Download
M test/dart_codegen/expect/convert/chunked_conversion.dart View 1 2 1 chunk +26 lines, -34 lines 0 comments Download
M test/dart_codegen/expect/convert/codec.dart View 1 2 1 chunk +26 lines, -30 lines 0 comments Download
M test/dart_codegen/expect/convert/convert View 1 2 1 chunk +211 lines, -225 lines 0 comments Download
M test/dart_codegen/expect/convert/converter.dart View 1 2 1 chunk +15 lines, -22 lines 0 comments Download
M test/dart_codegen/expect/convert/encoding.dart View 1 2 1 chunk +19 lines, -46 lines 0 comments Download
M test/dart_codegen/expect/convert/html_escape.dart View 1 2 1 chunk +66 lines, -80 lines 0 comments Download
M test/dart_codegen/expect/convert/json.dart View 1 2 1 chunk +584 lines, -625 lines 0 comments Download
M test/dart_codegen/expect/convert/latin1.dart View 1 2 1 chunk +87 lines, -84 lines 0 comments Download
M test/dart_codegen/expect/convert/line_splitter.dart View 1 2 1 chunk +58 lines, -58 lines 0 comments Download
M test/dart_codegen/expect/convert/string_conversion.dart View 1 2 1 chunk +169 lines, -198 lines 0 comments Download
M test/dart_codegen/expect/convert/utf.dart View 1 2 1 chunk +318 lines, -336 lines 0 comments Download
M test/dart_codegen/expect/core/annotations.dart View 1 2 1 chunk +8 lines, -12 lines 0 comments Download
M test/dart_codegen/expect/core/bool.dart View 1 2 1 chunk +6 lines, -7 lines 0 comments Download
M test/dart_codegen/expect/core/comparable.dart View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M test/dart_codegen/expect/core/core View 1 2 1 chunk +46 lines, -50 lines 0 comments Download
M test/dart_codegen/expect/core/date_time.dart View 1 2 1 chunk +190 lines, -222 lines 0 comments Download
M test/dart_codegen/expect/core/double.dart View 1 2 1 chunk +26 lines, -30 lines 0 comments Download
M test/dart_codegen/expect/core/duration.dart View 1 2 1 chunk +67 lines, -85 lines 0 comments Download
M test/dart_codegen/expect/core/errors.dart View 1 2 1 chunk +196 lines, -247 lines 0 comments Download
M test/dart_codegen/expect/core/exceptions.dart View 1 2 1 chunk +97 lines, -102 lines 0 comments Download
M test/dart_codegen/expect/core/expando.dart View 1 2 1 chunk +12 lines, -17 lines 0 comments Download
M test/dart_codegen/expect/core/function.dart View 1 2 1 chunk +4 lines, -8 lines 0 comments Download
M test/dart_codegen/expect/core/identical.dart View 1 2 1 chunk +4 lines, -9 lines 0 comments Download
M test/dart_codegen/expect/core/int.dart View 1 2 1 chunk +32 lines, -33 lines 0 comments Download
M test/dart_codegen/expect/core/invocation.dart View 1 2 1 chunk +7 lines, -9 lines 0 comments Download
M test/dart_codegen/expect/core/iterable.dart View 1 2 1 chunk +81 lines, -84 lines 0 comments Download
M test/dart_codegen/expect/core/iterator.dart View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M test/dart_codegen/expect/core/list.dart View 1 2 1 chunk +75 lines, -69 lines 0 comments Download
M test/dart_codegen/expect/core/map.dart View 1 2 1 chunk +21 lines, -23 lines 0 comments Download
M test/dart_codegen/expect/core/null.dart View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M test/dart_codegen/expect/core/num.dart View 1 2 1 chunk +53 lines, -55 lines 0 comments Download
M test/dart_codegen/expect/core/object.dart View 1 2 1 chunk +7 lines, -16 lines 0 comments Download
M test/dart_codegen/expect/core/pattern.dart View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M test/dart_codegen/expect/core/print.dart View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M test/dart_codegen/expect/core/regexp.dart View 1 2 1 chunk +18 lines, -24 lines 0 comments Download
M test/dart_codegen/expect/core/set.dart View 1 2 1 chunk +19 lines, -21 lines 0 comments Download
M test/dart_codegen/expect/core/sink.dart View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M test/dart_codegen/expect/core/stacktrace.dart View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M test/dart_codegen/expect/core/stopwatch.dart View 1 2 1 chunk +40 lines, -50 lines 0 comments Download
M test/dart_codegen/expect/core/string.dart View 1 2 1 chunk +146 lines, -166 lines 0 comments Download
M test/dart_codegen/expect/core/string_buffer.dart View 1 2 1 chunk +25 lines, -31 lines 0 comments Download
M test/dart_codegen/expect/core/string_sink.dart View 1 2 1 chunk +4 lines, -6 lines 0 comments Download
M test/dart_codegen/expect/core/symbol.dart View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M test/dart_codegen/expect/core/type.dart View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M test/dart_codegen/expect/core/uri.dart View 1 2 1 chunk +1215 lines, -1375 lines 0 comments Download
M test/dart_codegen/expect/math/jenkins_smi_hash.dart View 1 2 1 chunk +10 lines, -26 lines 0 comments Download
M test/dart_codegen/expect/math/math View 1 2 1 chunk +144 lines, -180 lines 0 comments Download
M test/dart_codegen/expect/math/point.dart View 1 2 1 chunk +23 lines, -29 lines 0 comments Download
M test/dart_codegen/expect/math/random.dart View 1 2 1 chunk +4 lines, -7 lines 0 comments Download
M test/dart_codegen/expect/math/rectangle.dart View 1 2 1 chunk +74 lines, -122 lines 0 comments Download
M test/dart_codegen/expect/typed_data/typed_data View 1 2 1 chunk +759 lines, -818 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Siggi Cherem (dart-lang)
this makes all_tests.dart run in 10s on my machine. https://codereview.chromium.org/963593002/diff/20001/lib/src/codegen/dart_codegen.dart File lib/src/codegen/dart_codegen.dart (right): https://codereview.chromium.org/963593002/diff/20001/lib/src/codegen/dart_codegen.dart#newcode78 lib/src/codegen/dart_codegen.dart:78: ...
5 years, 10 months ago (2015-02-26 21:03:49 UTC) #2
vsm
lgtm Somehow, it seems appropriate to have reviewed this CL while waiting for tests to ...
5 years, 10 months ago (2015-02-26 21:09:27 UTC) #4
Siggi Cherem (dart-lang)
Committed patchset #3 (id:20001) manually as 7c9f957ccb2e5d4828898d88ec1c769502190334 (presubmit successful).
5 years, 10 months ago (2015-02-26 21:14:01 UTC) #5
Leaf
https://codereview.chromium.org/963593002/diff/20001/lib/src/codegen/dart_codegen.dart File lib/src/codegen/dart_codegen.dart (right): https://codereview.chromium.org/963593002/diff/20001/lib/src/codegen/dart_codegen.dart#newcode78 lib/src/codegen/dart_codegen.dart:78: if (x == '{') { On 2015/02/26 21:03:49, Siggi ...
5 years, 10 months ago (2015-02-26 21:42:14 UTC) #6
Siggi Cherem (dart-lang)
On 2015/02/26 21:42:14, leafp wrote: > https://codereview.chromium.org/963593002/diff/20001/lib/src/codegen/dart_codegen.dart > File lib/src/codegen/dart_codegen.dart (right): > > https://codereview.chromium.org/963593002/diff/20001/lib/src/codegen/dart_codegen.dart#newcode78 > ...
5 years, 10 months ago (2015-02-26 21:59:57 UTC) #7
Leaf
On 2015/02/26 21:59:57, Siggi Cherem (dart-lang) wrote: > On 2015/02/26 21:42:14, leafp wrote: > > ...
5 years, 10 months ago (2015-02-26 22:06:37 UTC) #8
Siggi Cherem (dart-lang)
On 2015/02/26 22:06:37, leafp wrote: > On 2015/02/26 21:59:57, Siggi Cherem (dart-lang) wrote: > > ...
5 years, 10 months ago (2015-02-26 22:26:11 UTC) #9
Jennifer Messerly
5 years, 10 months ago (2015-02-26 23:49:50 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/963593002/diff/20001/lib/src/codegen/dart_cod...
File lib/src/codegen/dart_codegen.dart (right):

https://codereview.chromium.org/963593002/diff/20001/lib/src/codegen/dart_cod...
lib/src/codegen/dart_codegen.dart:78: if (x == '{') {
On 2015/02/26 21:42:14, leafp wrote:
> On 2015/02/26 21:03:49, Siggi Cherem (dart-lang) wrote:
> > turns out that the ToStringVIsitor class calls print with individual symbols
> (;,
> > {, and }), so this is sufficient for the purpose of testing the output of
the
> > core libraries.
> 
> Won't this break things?  For example, printing a string interpolation seems
to
> call print with a single '}' to terminate the interpolation, but we don't want
> to add a new line in the middle of the string, right?

yeah, +1 on changing the visitor ... IMO it shouldn't be very hard, I found
analyzer's printer code to be very straightforward. I mean worst case, you could
copy+paste it and add newlines at strategic locations. But maybe I've been
working with js_ast's Printer too much lately. :)

Powered by Google App Engine
This is Rietveld 408576698