Commit graph

4180 commits

Author SHA1 Message Date
Adam Barth
0ea1c155ae Fix the Fuchsia build
Python scripts need to be marked executable to run in the Fuchsia build.

TBR=zra@google.com
2016-10-27 09:59:58 -07:00
Vyacheslav Egorov
eb8c24e133 Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork."
R=zra@google.com
BUG=

Review URL: https://codereview.chromium.org/2451623006 .
2016-10-27 10:09:22 +02:00
Zachary Anderson
c1313a5ec7 Format GN files and add a presubmit check that GN is properly formatted
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2451613005 .
2016-10-26 08:50:54 -07:00
Vyacheslav Egorov
12968edb9c Revert "Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork.""
This reverts commit 4e7a31262e.

Windows bots are broken now.

R=zra@google.com
BUG=

Review URL: https://codereview.chromium.org/2451893004 .
2016-10-26 17:07:18 +02:00
Zachary Anderson
1ed9dc3ac0 GN: Fix arm cross build to match gyp build
R=vegorov@google.com

Review URL: https://codereview.chromium.org/2456463003 .
2016-10-26 07:58:42 -07:00
Vyacheslav Egorov
4e7a31262e Reland "Merge more Kernel infrastructure from kernel_sdk SDK fork."
This relands commit 2fed1c3905 with fixes to ensure that analyzer summaries are correctly created and XARM build does not try to use target binaries on the host.

R=zra@google.com
BUG=

Review URL: https://codereview.chromium.org/2453773002 .
2016-10-26 16:48:28 +02:00
Vyacheslav Egorov
cf7ff42e60 Revert "Merge more Kernel infrastructure from kernel_sdk SDK fork."
This reverts commit 2fed1c3905.

SDK builds are failing

TBR=zra@google.com

Review URL: https://codereview.chromium.org/2455593002 .
2016-10-26 13:06:27 +02:00
Vyacheslav Egorov
2fed1c3905 Merge more Kernel infrastructure from kernel_sdk SDK fork.
- bring patched SDK generation scripts and VM patch tweaks that allow VM patch files to be parsed by analyzer front-end;
  Patched SDK is an SDK with all VM patches spliced into it. Kernel compiler is based on the analyzer front-end which does
  not have any patch files support/model so for it to produce Kernel files that match VM we need to generate a such patched SDKs.

- bring test script modifications that allow to test Kernel pipeline

BUG=
R=asiva@google.com, kmillikin@google.com, whesse@google.com, zra@google.com

Review URL: https://codereview.chromium.org/2434123003 .
2016-10-26 13:02:54 +02:00
Ryan Macnak
e109c9bb0e Change build.py to invoke gn with '--check' to match the build bot's script and Flutter's usage.
R=zra@google.com

Review URL: https://codereview.chromium.org/2449503002 .
2016-10-25 09:43:37 -07:00
Zachary Anderson
c39525802e GN: Fix build
GN is unhappy when a rule that consumes a file generated by
another rule doesn't depend directly on that rule.

This change also quiets output from invoking Dart to follow the
rule of GN builds that a successful build generates no output.

Review URL: https://codereview.chromium.org/2446473002 .
2016-10-22 00:05:39 -07:00
William Hesse
edc7ca7517 Don't run pkg tests on GN builders
BUG=
R=sortie@google.com

Review URL: https://codereview.chromium.org/2442703002 .
2016-10-21 12:53:35 +02:00
Siva Annamalai
af4d246ef1 Cleanup options for use of application snapshots
- unified kAppAfterRun and kAppJITAfterRun to kAppJIT
 - adjusted the test configuration to make dart2app and dart2appjit to mean
   the same
 - delete GenerateFullSnapshot function as it is not used anymore

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2429023002 .
2016-10-19 17:42:01 -07:00
Florian Schneider
b85f900cb7 test.dart: Push all required files to Android device when running AOT tests
Some tests have resources in sub-directories (e.g. certificates/)

Remove status file lines for tests that are now passing.

Fixes #26376,#26377.

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2434123002 .
2016-10-19 16:50:23 -07:00
Stephen Adams
c9c3c203c1 Minor tweaks to dart:html for better dart2js codegen
- Allow 'document' to be reused (GVN-ed).
- Allow inlining of 'new Comment'.
- 'new Text' and 'new Comment' have no effects.

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

Review URL: https://codereview.chromium.org/2422293002 .
2016-10-17 13:35:17 -07:00
Zachary Anderson
c1b1151f54 GN: Fix builder test script
Review URL: https://codereview.chromium.org/2423783002 .
2016-10-16 15:18:54 -07:00
Ryan Macnak
572eb0ce7a Apparently co19 tests have their own separate annotation parsing.
Review URL: https://codereview.chromium.org/2419613007 .
2016-10-14 16:43:20 -07:00
Ryan Macnak
656964107b Update AOT Android harness for single-file app snapshots.
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2419183002 .
2016-10-14 16:23:19 -07:00
Ryan Macnak
fe04737a77 Add test directive to include other files used by a test in its compiled output directory.
Fixes #27591

R=fschneider@google.com

Review URL: https://codereview.chromium.org/2423593002 .
2016-10-14 16:11:25 -07:00
Vijay Menon
72e3d13db2 Add ddc resources to the sdk build
This installs DDC's dart_sdk.js, etc., under:
  dart-sdk/lib/_internal/dev_compiler/

Fixes #27001

R=jakemac@google.com

Review URL: https://codereview.chromium.org/2416783005 .
2016-10-14 12:34:03 -07:00
Ryan Macnak
3d00ecdc8f Reapply "Use a single file for app snapshots."
- Don't read script to check for an app snapshot if it is a pipe. Fixes loading source from a pipe.
 - Fix windows and fushsia builds.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2416973003 .
2016-10-14 09:57:54 -07:00
Ryan Macnak
6839a23240 Revert "Use a single file for app snapshots."
This reverts commit 4f8b16df3b.

Review URL: https://codereview.chromium.org/2410303008 .
2016-10-13 15:29:23 -07:00
Ryan Macnak
4f8b16df3b Use a single file for app snapshots.
For blobs, put all four pieces into a single file with a header describing their offsets.
For dynamic libraries, move the vm isolate and isolate pieces into the dynamic library as additional read-only sections.

Automatically detect if the script argument is an app snapshot and initialize the VM appropriately, similar to automatic detection of script snapshots.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2405393002 .
2016-10-13 14:33:56 -07:00
Terry Lucas
21a554b280 Updated to latest WebKit changes and removed usage of obsolete environment variable
TBR=whesse@google.com

Review URL: https://codereview.chromium.org/2413253002 .
2016-10-13 06:33:04 -07:00
Zach Anderson
86060cb0fb GN: Fix gn_build.py for Windows
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2407413003 .
2016-10-12 10:08:23 -07:00
Zachary Anderson
3066d28c0d GN: Add commands to bot scripts
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2412163002 .
2016-10-12 09:42:37 -07:00
Terry Lucas
6d946b88f3 Update to WebKit fix
TBR=asiva@google.com

Review URL: https://codereview.chromium.org/2412153002 .
2016-10-12 09:19:10 -07:00
William Hesse
41b82b99e6 Add buildbot scripts for GN builders and dartdevc testers
BUG=https://github.com/dart-lang/sdk/issues/27406
R=rnystrom@google.com, zra@google.com

Review URL: https://codereview.chromium.org/2412553002 .
2016-10-12 14:31:43 +02:00
Zachary Anderson
81ad8d5655 GN: Disable clang for simulators hosted on ia32
Also silence a warning in tcmalloc.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2405513002 .
2016-10-07 09:55:58 -07:00
Harry Terkelsen
8d746645e3 Include ClosureInfo in dump info.
Uses the 0.5.0 version of dart2js_info

R=sigmund@google.com

Review URL: https://codereview.chromium.org/2398133002 .
2016-10-06 13:48:52 -07:00
Zachary Anderson
f688cef70d GN: Use gcc for ia32 Linux
Clang doesn't compile tcmalloc's ia32 inline assembly correctly.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2390783007 .
2016-10-06 11:28:38 -07:00
Zachary Anderson
c5575aeedc Roll buildtools and clang for GN build.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2399893002 .
2016-10-06 09:51:15 -07:00
Zach Anderson
bb1ba21bf7 Have GN generate ide files
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2394063002 .
2016-10-05 15:36:46 -07:00
Zachary Anderson
c67bd01d76 Select GN build with an environment variable
Setting DART_USE_GN to anything will cause 'gclient runhooks' and
build.py to use GN.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2400493002 .
2016-10-05 14:07:22 -07:00
Zachary Anderson
4ab6c33d9a Enable GN ASAN builds for Linux
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2392403002 .
2016-10-05 13:43:29 -07:00
Zach Anderson
5d01fb8458 Fix GN build.py for Windows
Review URL: https://codereview.chromium.org/2386103007 .
2016-10-05 09:44:59 -07:00
Zachary Anderson
ff7ad2a4e1 Run GN from build.py if the output directory doesn't exist
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2397623003 .
2016-10-05 09:16:17 -07:00
Johnni Winther
1b2e857f19 Roll kernel to latest
+ fix default constructor encoding
+ match fall-through error handling
+ handle typedef tests
+ speed up visitor_test by reusing the Compiler object

R=het@google.com

Review URL: https://codereview.chromium.org/2392863002 .
2016-10-05 10:36:37 +02:00
Zachary Anderson
eabd4ed9fb Improvements to tools/gn.py
This change enables gn.py to take comma separated lists of modes,
architectures, and os's similar to build.py. It also accepts 'all'
for each of these just like build.py. GN is invoked in parallel to
save time.

This change also adds an option --gn to build.py to invoke ninja
instead of the usual build system.

Will investigate invoking tools/gn.py automagically from build.py in
a future change.

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2392603005 .
2016-10-04 19:49:14 -07:00
Bob Nystrom
8b6ceefca8 Tweak how the pkg files timestamps are created.
The acute problem this solves is that hacking on DDC generates a large
number of files into its gen/ directory. It's enough files that once you
have done that, the SDK no longer builds successfully because it chokes
on them all.

To fix that, instead of using list_files.py, I made a little
list_dart_files.py that is explicitly for Dart files and knows to
exclude gen/ and tests. This also avoids needing the sort of hairy
regexes to match different sets of files.

As far as I can tell, this works, but GYP is pretty mysterious to me,
so let me know if I got something wrong or there is a better way to do
it.

R=whesse@google.com

Review URL: https://codereview.chromium.org/2391863002 .
2016-10-04 16:56:12 -07:00
Zach Anderson
9a6797e6ba GN build on windows
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2385643004 .
2016-10-04 09:19:07 -07:00
Siva Annamalai
e9bd78fa8e Fix build break, set initial value for msan variable.
R=zra@google.com

Review URL: https://codereview.chromium.org/2388813003 .
2016-10-03 12:45:45 -07:00
Harry Terkelsen
90b54ed78b roll dart2js_info to 0.3.0
R=sigmund@google.com

Review URL: https://codereview.chromium.org/2379573010 .
2016-09-30 16:02:55 -07:00
William Hesse
8c4db65326 Start working on version 1.21
BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2385633002 .
2016-09-30 11:49:21 +02:00
Zach Anderson
eb451292f9 Enable GN build on Mac.
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2382653003 .
2016-09-29 14:09:40 -07:00
Zachary Anderson
7c784cea9f Linux create_sdk GN build for host
This CL enables GN builds of all targets from dart.gyp
on Linux for the host (i.e. ia32, x64).

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2379803002 .
2016-09-29 13:23:00 -07:00
John McCutchan
1937854112 Only collect 1 stack trace when a test timeouts on mac
BUG=
R=zra@google.com

Review URL: https://codereview.chromium.org/2383553002 .
2016-09-29 08:30:48 -07:00
William Hesse
2ca7ae5e0e Update webkit in Dartium to fix build problem
BUG=https://github.com/dart-lang/sdk/issues/27442
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2381923002 .
2016-09-29 14:15:20 +02:00
John McCutchan
e434d3daab Attempt to print the stack traces of hung test processes on MacOS.
/usr/bin/sample is a standard tool installed on all MacOS machines.

BUG=
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2371383005 .
2016-09-28 13:39:54 -07:00
Zachary Anderson
27784381b2 Add tcmalloc to GN build
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2367723004 .
2016-09-23 15:24:54 -07:00
John McCutchan
74ee4ea047 Fix handling of co19 syntax error tests using the @compile-error tag and reload bots
BUG=
R=fschneider@google.com

Review URL: https://codereview.chromium.org/2369633002 .
2016-09-23 14:26:22 -07:00