Commit Graph

6631 Commits

Author SHA1 Message Date
Jens Johansen d854c77e58 [kernel] Only serialize non-external libaries and sources from those.
Previously the VM couldn't handle external libraries, but that was
fixed in 2f49198520.

Part of the CL was reverted though because the compilatin was changed
to using an outline instead of the platform which doesn't work.
What does work though, is not including the external libraries in the
output.

This CL makes the following changes:

* Don't include external libraries in the output (by not setting all
  libraries to be non-external).

* Only writes the sources actually used to the binary (i.e. whatever
  libraries left out because they were external will not contribute
  source code either).

* Cleanup of now unused code.


Timings (only run once though):


Without this CL (but with the CL it's based on):

$ time python tools/test.py -m release -cdartk language -j6
Test configuration: dartk_vm_release_x64
[05:43 | 100% | + 3504 | -    0]

real    5m43.597s
user    33m48.152s
sys     9m34.140s


Only the "utils/kernel-service/kernel-service.dart" part of this CL:

$ time python tools/test.py -m release -cdartk language -j6
Test configuration: dartk_vm_release_x64
[04:55 | 100% | + 3504 | -    0]

real    4m55.684s
user    29m54.360s
sys     8m7.408s


Entire CL:

$ time python tools/test.py -m release -cdartk language -j6
Test configuration: dartk_vm_release_x64
[04:20 | 100% | + 3504 | -    0]

real    4m20.416s
user    27m17.320s
sys     6m53.472s

Change-Id: Ie9c5bfa958e558a5007784e821a0b58d417bae55
Reviewed-on: https://dart-review.googlesource.com/3161
Reviewed-by: Samir Jindel <sjindel@google.com>
2017-09-06 11:56:24 +00:00
Alexander Thomas 9278d252e7 Re-enable Mac try builders
Skip tests failing on CQ but not on buildbot
Replace some timeouts with skips to speed up the tests

Bug:
Change-Id: I101e922bd18e522d0efd69cdf8329e2ca8f9829e
Reviewed-on: https://dart-review.googlesource.com/2920
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2017-09-06 09:46:14 +00:00
Terry Lucas 352f9fd859 Fixed bad indent not flushing emitted files.
Removed Dartium code emission.

TBR: alanknight@google.com,vsm@google.com
Change-Id: Ib027f542b238c90311f6838e67b4b8d27815374c
Reviewed-on: https://dart-review.googlesource.com/3280
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Terry Lucas <terry@google.com>
2017-09-05 14:43:08 +00:00
Alexander Thomas c3fdf433a2 Remove flaky mac try bots
Bug:
Change-Id: I12c222ec85dcc1f6ba2f4b61acfcf7bdb04533d2
Reviewed-on: https://dart-review.googlesource.com/3003
Reviewed-by: Alexander Thomas <athom@google.com>
2017-09-04 16:57:12 +00:00
Alexander Thomas e01f51e100 Remove slow precomp builder from CQ
Bug:
Change-Id: I4da113c739dd511514319af498206b5b5690a9b1
Reviewed-on: https://dart-review.googlesource.com/2980
Reviewed-by: William Hesse <whesse@google.com>
2017-09-04 15:33:31 +00:00
Alexander Thomas 9670b42c7f Remove failing dart2js Windows builder from CQ
Bug:
Change-Id: I162122e3d2c42fb7dee713ce63db1f375a6bc783
Reviewed-on: https://dart-review.googlesource.com/2961
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2017-09-04 14:46:27 +00:00
Alexander Thomas c2143ad258 Remove failing windows builder from commit queue
BUG=
R=whesse@google.com

Review-Url: https://codereview.chromium.org/3008093002 .
2017-09-04 14:17:37 +02:00
Morten Krogh-Jespersen 70e3e8aac1 Added json result of test output to output debug directory.
R=whesse@google.com

Review-Url: https://codereview.chromium.org/3005013002 .
2017-09-04 10:13:27 +02:00
Zachary Anderson d1b542f8cd Reland: [infra] Roll clang toolchain forward
Build spuriously worked after initial roll due to stale files hanging
around longer than they should have. This CL relands and updates
(hopefully) all the necessary paths.

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/3010023002 .
2017-09-01 11:15:40 -07:00
Terry Lucas 0585e74b63 Fixed analyzer test to use dart2js not dartium
R=paulberry@google.com

Committed: https://github.com/dart-lang/sdk/commit/704de3bb3e27313c0eb6eb5ebc03173a5396dd1e
Review-Url: https://codereview.chromium.org/3004153002 .
2017-09-01 09:03:16 -07:00
William Hesse 002917b79c Fix error in commit bae6ab5a7a
"Split the dart_sdk bot script into two runs ..." used sys.argv[2]
instead of sys.argv[1]

BUG=
TBR=terry@google.com

Review-Url: https://codereview.chromium.org/3012713002 .
2017-09-01 17:21:03 +02:00
Janice Collins 51cc9689b3 Remove corelib and corelib_strong and migrate last two remaining tests.
This includes a migration of linked_hash_map_from_iterable_test and
stacktrace_current_test, which were migrated without changes.

BUG=
R=rnystrom@google.com, whesse@google.com

Review-Url: https://codereview.chromium.org/3004073002 .
2017-09-01 08:11:15 -07:00
William Hesse bae6ab5a7a Split the dart_sdk bot script into two runs, one with only apidocs.
BUG=
R=terry@google.com, vegorov@google.com

Review-Url: https://codereview.chromium.org/3004233002 .
2017-09-01 16:50:00 +02:00
William Hesse bf6ea50b95 Revert "[infra] Roll clang toolchain forward"
This reverts commit a60fb341f5.
The toolchain.stamp files are missing on buildbots, causing failures.
This occurred on the second run after the commit, indicating that
perhaps the files are no longer created, or something.

BUG=
R=mkroghj@google.com
CC=zra@google.com

Review-Url: https://codereview.chromium.org/3009983002 .
2017-09-01 14:42:35 +02:00
Morten Krogh-Jespersen 9f9aafc337 Updated sanitizeCategory to better account for category names.
R=whesse@google.com

Review-Url: https://codereview.chromium.org/3011813002 .
2017-09-01 13:37:00 +02:00
Zach Anderson a60fb341f5 [infra] Roll clang toolchain forward
This is to match the version used by Flutter.

R=asiva@google.com, rmacnak@google.com

Review-Url: https://codereview.chromium.org/3005903002 .
2017-08-31 21:49:02 -07:00
William Hesse a8cab7a205 Revert "Removed Dartium SDK libs"
This reverts commit 4a58918382.
That commit seems to have broken docgen on the html libraries.

BUG=
TBR=terry@google.com

Review-Url: https://codereview.chromium.org/3004173002 .
2017-09-01 00:47:57 +02:00
Terry Lucas 4a58918382 Removed Dartium SDK libs
First stage remove the libraries that are no longer part of 1.25 and beyond.

R=alanknight@google.com, sigmund@google.com

Committed: https://github.com/dart-lang/sdk/commit/a18908461adc431af2ee0114ed5ea9ef781bfb67
Committed: https://github.com/dart-lang/sdk/commit/d96561af083777ac9529c75ae05b6e89f8f06a6c
Review-Url: https://codereview.chromium.org/3008563002 .
2017-08-31 07:17:23 -07:00
Terry Lucas f1269525a8 Revert: Removed Dartium SDK libs
Review-Url: https://codereview.chromium.org/3005913003 .
2017-08-30 20:47:07 -07:00
Terry Lucas d96561af08 Removed Dartium SDK libs
First stage remove the libraries that are no longer part of 1.25 and beyond.

R=alanknight@google.com, sigmund@google.com

Committed: https://github.com/dart-lang/sdk/commit/a18908461adc431af2ee0114ed5ea9ef781bfb67
Review-Url: https://codereview.chromium.org/3008563002 .
2017-08-30 20:07:15 -07:00
Bob Nystrom 574022c0e2 Add "-1" and "-2" to run subsets of the configurations.
R=jmesserly@google.com

Review-Url: https://codereview.chromium.org/3011593003 .
2017-08-30 14:53:29 -07:00
Ben Konyi a7a97e41ed Migrated test block 218 to Dart 2.0.
Fairly simple block, with changes made to some mirrors tests to make
them strong-mode clean. Modified test script to also accept
*_app_jit.status files.

BUG=
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2999373002 .
2017-08-30 07:29:11 -07:00
William Hesse 3ac0950efa Add more builders to commit queue
BUG=
R=athom@google.com

Review-Url: https://codereview.chromium.org/3004043002 .
2017-08-30 14:47:38 +02:00
Morten Krogh-Jespersen dfd5038ecb Added ability to find builder-groups
Added calls to CBE, cleaned up the remaining screen-scraping and added ability to find builder-groups and builders in groups

R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/3005723002 .
2017-08-30 09:26:44 +02:00
Alexander Thomas b7ef001fec Include web_components in the isolate file.
Update tests to use web_components from the isolated location.

BUG=
R=whesse@google.com

Review-Url: https://codereview.chromium.org/3004803002 .
2017-08-29 17:12:56 +02:00
Terry Lucas 05ca90aa8c Removed Dartium test exceptions
R=alanknight@google.com

Committed: https://github.com/dart-lang/sdk/commit/84f079f24c75aec51a53c17f1ebe0027b2adbb0c
Review-Url: https://codereview.chromium.org/2983033002 .
2017-08-29 07:15:06 -07:00
Terry Lucas a18908461a Removed Dartium SDK libs
First stage remove the libraries that are no longer part of 1.25 and beyond.

R=alanknight@google.com

Review-Url: https://codereview.chromium.org/3008563002 .
2017-08-29 06:38:53 -07:00
Alexander Thomas 1277e0e791 Add browser package to isolate
BUG=
R=whesse@google.com

Review-Url: https://codereview.chromium.org/3005773002 .
2017-08-29 14:46:49 +02:00
Peter von der Ahé a5bcf58b06 Move tools to tool folder.
R=sigmund@google.com

Review-Url: https://codereview.chromium.org/3003743002 .
2017-08-29 14:30:51 +02:00
Bob Nystrom 58b96b7e60 Don't print "Necessary status file updates:" if there are none.
Also cleaned up the surrounding code to be more idiomatic.

R=jcollins@google.com

Review-Url: https://codereview.chromium.org/3007583002 .
2017-08-28 16:31:23 -07:00
Bob Nystrom 46320c5208 Migrate block 115.
Interesting changes:

- A static getter colliding with an inherited non-static setter is a
  compile error, not a type warning.

- Trying to call a setter on what is only a getter is a compile error
  with no runtime behavior.

- Add support to test.dart for negative tests in DDC.

BUG=
R=jcollins@google.com

Review-Url: https://codereview.chromium.org/3005643002 .
2017-08-28 16:17:28 -07:00
Morten Krogh-Jespersen fe94ff5ec0 Additional tools for gardening.
- multitest will generate a specific case of a multitest file
- luci_api is the start of a project, to make an api to ease the life     of the gardener. At this point, it can answer, given a commit, which     builds on bots does that commit belong to.

R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/3005443002 .
2017-08-28 12:37:12 +02:00
Bob Nystrom 0cbd1ea1ea Don't migrate status entries under a "[ $strong ]" header.
R=jcollins@google.com

Review-Url: https://codereview.chromium.org/3009653002 .
2017-08-25 16:50:27 -07:00
Vyacheslav Egorov 7d5231796e [VM, Precompiler] Support obfuscation of the symbolic information in precompiler
Obfuscation is controlled by obfuscate flag in Dart_IsolateFlags.

Obfuscation of identifiers is performed during script tokenization - when TokenStream is generated from the source. All kIDENT and kINTERPOL_VAR tokens are renamed consistently using a persistent obfuscation map stored in ObjectStore::obfuscation_map.

Some identifiers (pseudo-keywords, arithmetic operators, builtin recognized methods and entry-points) are not renamed to keep name based lookups from breaking. All other identifiers are renamed.

Constant instances of Symbol-s (both created via literal syntax #ident and using constant constructor const Symbol("ident")) are renamed consistently with corresponding identifiers.

Script urls and Library urls and names are also obfuscated.

Obfuscation map can be dumped as a JSON array at the end of precompilation using Dart_GetObfuscationMap API.

BUG=https://github.com/dart-lang/sdk/issues/30524
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/3003583002 .
2017-08-25 09:48:23 +02:00
Kevin Millikin 52629b82cf Revert changes to patch_sdk
Revert the changes to patch_sdk that were made when issue #30111 was
fixed.  There is still a failure in the front_end hot reload
end-to-end tests.

BUG=
R=asiva@google.com

Review-Url: https://codereview.chromium.org/3000313002 .
2017-08-22 17:38:27 +02:00
Alexander Thomas bace5b330d Add Mac support for isolates
Remove commands to allow recipies to specify them

Reduce duplication with includes

Rename to more generic names (dart2js*.isolate wasn't just used for dartj2s)

BUG=
R=whesse@google.com

Review-Url: https://codereview.chromium.org/3001383002 .
2017-08-22 17:15:14 +02:00
Kevin Millikin 2f49198520 Allow the VM to read Kernel files with external libraries
The meaning of a Kernel file with an external library is that the
library is one that is already known to be loaded in the VM.

Fixes issue #30111.

BUG=https://github.com/dart-lang/sdk/issues/30111
R=jensj@google.com

Review-Url: https://codereview.chromium.org/2995423002 .
2017-08-22 16:05:19 +02:00
William Hesse 5550a6e0ea Make all trybot builders run
BUG=
R=athom@google.com

Review-Url: https://codereview.chromium.org/3003053002 .
2017-08-21 18:56:16 +02:00
commit-bot@chromium.org 21aa04589e Merge "Add a dart2js_tests isolate with no default command, for xvfb use." 2017-08-21 16:04:29 +00:00
William Hesse 242c215579 Return CQ to committing to the gerrit master dart.googlesource. 2017-08-21 17:31:13 +02:00
William Hesse 575d0b015a Add a dart2js_tests isolate with no default command, for xvfb use.
Bug:
Change-Id: Ia3a07e7e4f04314dd9aa9643103c3cf31e8e53ea
2017-08-21 17:20:27 +02:00
Erik Ernst 670fdcbac5 Adjusted compare-failures to report logdog URLs: Use a regular one!
R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2999353002 .
2017-08-21 16:04:16 +02:00
William Hesse 2149487c0d Add commit queue settings to Dart
These will be used on Gerrit reviews, to trigger try bots and the
commit queue.  The commit queue is currently set up to commit to
GitHub. This will be changed when the mirroring direction changes.

BUG=737149
R=athom@google.com

Review-Url: https://codereview.chromium.org/3003523002 .
2017-08-21 15:36:13 +02:00
Erik Ernst 6e22b589bf Adjusted treatment of timeout with absolute build number.
With `dart bin/bot.dart compare-failures ..`, skipping a relative build
number (like -1) used to be supported (and reported with --verbose).
This CL uses the same treatment for absolute build numbers: The output
includes information about earlier builds anyway, so it makes sense to
skip in the same manner here.

R=johnniwinther@google.com

Review-Url: https://codereview.chromium.org/2997273002 .
2017-08-21 15:09:51 +02:00
William Hesse 7907d5dcdd Change debian package build rules to drop GYP
BUG=
R=sortie@google.com

Review-Url: https://codereview.chromium.org/2995203002 .
2017-08-18 14:27:48 +02:00
Bob Nystrom f9da770441 Fix message about status entries that need manual splitting.
It described the entry as being in the destination file when it's
actually still in the source file.

R=mkroghj@google.com

Review-Url: https://codereview.chromium.org/2997093002 .
2017-08-17 13:05:39 -07:00
Zachary Anderson 81ba8cbaec [Fuchsia] Better error message from SDK update script
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2996093002 .
2017-08-16 11:02:08 -07:00
Johnni Winther f1b3a59da3 Use package:testing for tools/gardening
R=ahe@google.com

Review-Url: https://codereview.chromium.org/2999043003 .
2017-08-16 15:55:52 +02:00
Johnni Winther a708c1943f Include build revision in BuildResult
R=floitsch@google.com

Review-Url: https://codereview.chromium.org/2997043002 .
2017-08-16 15:41:23 +02:00
Johnni Winther 8f4d7828df Fix buildbot_data_test
+ clean up BuildUri state

R=floitsch@google.com

Review-Url: https://codereview.chromium.org/3002743002 .
2017-08-16 15:31:20 +02:00