Commit Graph

6631 Commits

Author SHA1 Message Date
Robert Nystrom fd501c74a5 Track files that do not need to be migrated in the NNBD progress script.
Change-Id: I77014aad502ae6e44a9d0c20c288efb822bd1068
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128984
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
2019-12-20 21:25:35 +00:00
Régis Crelier b92fefdfe9 [VM/nnbd] Pass nnbd mode from compiler via generated code or bytecode to runtime functions performing type checks or type reification.
This continues the work started in https://dart-review.googlesource.com/c/sdk/+/124105
The nnbd mode is now part of the type arguments instantiation cache,
since the resulting vector depends on the mode.

Change-Id: I803c07fa9473024557db8585e87286f16681169a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128307
Commit-Queue: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Liam Appelbe <liama@google.com>
2019-12-20 03:26:29 +00:00
Nicholas Shahan 87c3b24e7b Add more test suites to DDC NNBD strong/weak configs
Change-Id: I6d95286de986d28dcf54858724fb8394bff5583c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/129002
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-12-19 23:45:43 +00:00
Jonas Termansen 90526d4aaf [benchmark] Switch dart2js and dartdevc targets to linux-x64.
Change-Id: If0f6c839ddd0032640f023855f5163368802a794
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128700
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2019-12-19 13:19:36 +00:00
Sigmund Cherem 221e1d953a Add ddc nnbd legacy tests
Change-Id: Iab7f427fdc9090285995d67fcad8e8f11aff6559
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128961
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2019-12-18 23:38:01 +00:00
Alexander Thomas 1e9ee57d14 [infra] Add initial VM NNBD builders to the test matrix.json
Change-Id: Idc5d0f38d69b91cb024d5346f5b1a70460459488
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128724
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-12-18 09:34:25 +00:00
Nicholas Shahan 2aa6e73ae7 [dartdevc] Cleanup all temporary nnbd modular tests
All of these tests are now running under the regular test infrastructure.
The only reason they were created as modular tests was because we wanted more
control over the SDK sources used.

Change-Id: I2ad5aa616ff8bccd10cfac2d49bfaa39ab50c192
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128801
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2019-12-18 00:43:44 +00:00
Robert Nystrom 5973e04ebd Tweak the NNBD test migration progress script output a bit.
Change-Id: Ia722ea4b90702063166c99a1acf48a34d5c46da3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128480
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
2019-12-17 22:14:34 +00:00
Jonas Termansen 6c00cd1d28 [infra] Prepare for the story of approve_results to end.
Change-Id: Ide82c48bebe158934ee1f25724341f72c519d3f7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128663
Reviewed-by: Alexander Thomas <athom@google.com>
2019-12-17 14:03:02 +00:00
Alexander Thomas a1b895a900 [infra] Disable builds of macOS 32bit SDKs
These are currently broken because our xcode version no longer supports
i386 builds.

See https://github.com/dart-lang/sdk/issues/39810 for the corresponding
breaking change request.

Change-Id: Iaf9c20d090e7d9914a4c395e4aa17c13a1d336fe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128583
Reviewed-by: William Hesse <whesse@google.com>
2019-12-17 13:32:48 +00:00
Alexander Thomas 51859cb205 [infra] Move simarm_x64 from macOS to Linux
Newer versions of xcode no longer support the i386 architecture which
caused this builder to fail on macOS.

Change-Id: I02c457b7fe198c0438a5058288dc9116ff598ff8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128580
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-17 11:20:30 +00:00
William Hesse 1f89b3e74f [infra] Fix typo in get_builder_status script
Change-Id: Ifef049d531c1de83dad2b4d1a10635bee35ead68
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128545
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-16 18:01:02 +00:00
William Hesse 68f6e14730 [infra] Build status script now queries Firestore, using access token
Change-Id: I417a65cd8dd0046e78b9c4dac1079e086e3547b9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128408
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-12-16 11:18:27 +00:00
Alexander Thomas 9e0a5026d5 [infra] Remove AST builders from the test matrix
These builders were already removed from the Luci config:
https://dart-review.googlesource.com/c/sdk/+/127645

Change-Id: I59a96d7ea0a042d41e265648753bc594833550fe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128064
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-12-16 09:23:59 +00:00
Srujan Gaddam a865b9c379 Change Future lists to use dynamic
Bug: https://github.com/dart-lang/sdk/issues/39627

Lists in a future should be typed with dynamic since they come from JS
interop.

Change-Id: I93d4da16eb27c3af23820a170cfad7cc5c3b4472
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128368
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2019-12-14 00:23:54 +00:00
Robert Nystrom f95ef086a9 Small script to track NNBD test migration progress and estimate.
Change-Id: I14ad73f79c689d3154bd7260ee247fe478439e43
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128283
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
2019-12-13 22:35:42 +00:00
Srujan Gaddam b84d6ba0f8 Change type MediaDeviceInfo to dynamic in Future
Bug: https://github.com/dart-lang/sdk/issues/39627

Lists in a future should be typed with dynamic since they come from JS
interop.

Results from running tools/dom/scripts/go.sh

Change-Id: I4ed37d6f5fa570beef71652dcad17c3bcf7560ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128300
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Srujan Gaddam <srujzs@google.com>
2019-12-13 22:17:11 +00:00
Robert Nystrom a8c68e094a Turn the Dart 2.0 migration tool into an NNBD migration tool.
It's pretty bare bones right now, but it helps automate some of the
steps.

Change-Id: I64280751870f1cb0d34ac464879c9c0edfc75d1f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/128280
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2019-12-13 00:01:11 +00:00
William Hesse ca2983a7cd [infra] Add script to read builder status from Firestore
This will be used by the new approval workflow to mark a builder
as succeeded or failed (green or red) on the build console, depending
on approvals.

Change-Id: I47bddb1f964d5f5b7c06923660f86f6eb7a5e247
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125667
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-12 16:03:59 +00:00
Ryan Macnak 3678a3bd42 [build] Use separate out directories for each sanitizer.
Bug: https://github.com/dart-lang/sdk/issues/39611
Change-Id: Ie0aeaff758234220c2f0267b462d14f4c076bdf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127821
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2019-12-11 18:12:47 +00:00
Alexander Thomas 1d9cd1d83f [infra] Update checked-in SDKs to 2.8.0-dev.0.0
Also change the script to use gsutil.py, which is usually in the path
because it's in depot tools.

Closes #39672

Change-Id: If434b4ebc4c0cb6054f6eb6d15f85a221a9ab1e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127894
Commit-Queue: Alexander Thomas <athom@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-11 13:23:59 +00:00
Alexander Thomas 057e4dc697 [co19] Run co19 nnbd tests on analyzer-nnbd
Change-Id: Id61e001f3a288f82a1123ac3817352d1af46a845
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126560
Reviewed-by: Paul Berry <paulberry@google.com>
2019-12-11 10:20:17 +00:00
William Hesse 37b6b86b90 [infra] Change the name of the num_chunks attribute sent to pubsub.
The results were sent to pubsub with a num_messages attribute, but
the receiver was expecting it to be called num_chunks.

Change-Id: I924386137006367773bcace91578e3dfedd3763c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127881
Reviewed-by: Alexander Thomas <athom@google.com>
2019-12-10 13:23:02 +00:00
Nicholas Shahan 2015c55277 [dartdevc] Remove ability to run analyzer based DDC
This is the first step in deleting legacy DDC!
* Default all invocations of DDC to run the kernel version.
* Disable all tests that run analyzer DDC.
* Detect the most likely case when invoked with an analyzer
  summary and print instruction to update build_web_compilers
  dependency.

I will follow up with deletions, and a rename of the test configurations/
builders to reclaim the names (ddc vs ddk, dartdevc vs dartdevk).

Issue #38777

Change-Id: I1477f0274b6b7f345a5e19d2b3f93797c454a09e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127067
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Mark Zhou <markzipan@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2019-12-09 22:11:22 +00:00
Régis Crelier 8894b88467 [VM/nnbd] Implement syntactic type equality.
Legacy types are considered equal to their non-nullable variant.
Type hash is modified to be consistent with the new definition.

Change-Id: If90f7f13cf77e519d5b90b57d9dbf4988f71be13
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126283
Commit-Queue: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-12-09 18:18:59 +00:00
Alexander Thomas cb94390c63 [infra] Improve efficiency of cloning the Flutter repositories
Sometimes the flutter-analyze builder is flaky because cloning Flutter
exhausts the "short term ls-remote rate limit". "--single-branch"
reduces how many remotes need to be fetched.

Also in this CL:
* Use dart.googlesource.com.
* Apply the same changes to the flutter-frontend builder.

Error example:
https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8894556948308224672/+/steps/analyze_flutter/0/stdout

Change-Id: I50df781a652602c7dd1b40b938c558b04bd3f86f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127642
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-09 17:50:04 +00:00
William Hesse dd7499dd22 Revert "[infra] Try to handle failing to restore the crash resource limit instead."
This reverts commit 225682f868.
The reverted commit is reviewed at
https://dart-review.googlesource.com/c/sdk/+/127164

An added check for None from this change is kept, and not reverted.

Revert "[infra] Temporarily disable exception for invalid core pattern"

This reverts commit 1a41670ed0.
The reverted commit is reviewed at
https://dart-review.googlesource.com/c/sdk/+/127163

These commits were temporary workarounds for a change in swarming
that changed the core_pattern for linux core dumps.
That change is reverted, and the workarounds should be removed.
See issue https://bugs.chromium.org/p/chromium/issues/detail?id=1030546

Closes: https://github.com/dart-lang/sdk/issues/39662
Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1030546
Change-Id: Idf41549f02df7918e9fb0704b0f4dd7cad6ddcf3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127461
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-09 08:45:23 +00:00
Sigmund Cherem 16bc1806ea (html) remove type parameter from callback argument
This was a case missed when fixing #33891, and fixes #36798

Change-Id: I96e177a7d8020635e191d829afdec45f888658a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127500
Reviewed-by: Alan Knight <alanknight@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2019-12-06 19:02:02 +00:00
Jonas Termansen ae14121ce7 [benchmark] Test addition of the whole d8 directory to builds.
Change-Id: I152c86b3e0e48944940291b8f2c0c5a20f9a4c1b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127142
Reviewed-by: Stephen Adams <sra@google.com>
2019-12-05 12:29:31 +00:00
Jonas Termansen 225682f868 [infra] Try to handle failing to restore the crash resource limit instead.
Bug: #39662
Change-Id: Ib7401e050f7cc778ef3c020f2dbf5a7c46addde3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127164
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Karl Klose <karlklose@google.com>
2019-12-05 10:30:03 +00:00
Karl Klose 1a41670ed0 [infra] Temporarily disable exception for invalid core pattern
Bug: #39662
Change-Id: I68654fcbc819e0f63f57b4f68c8934969aca6858
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127163
Reviewed-by: Jonas Termansen <sortie@google.com>
2019-12-05 09:46:09 +00:00
Karl Klose 7c3b2b75c8 [infra] Fix deflaking in test.dart
Change-Id: I6f04d41097defa889fe62566f675ec834a3f0a52
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126642
Auto-Submit: Karl Klose <karlklose@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Karl Klose <karlklose@google.com>
2019-12-04 08:39:09 +00:00
Alexander Thomas 1392d61c9b [infra] Modify 2.7.0 make_version hack so that it also works on other branches
The logic only worked on the 'be' branch but if Flutter uses a dev branch hash
they would get a dev release version rather than the hardcoded 2.7.0 version.

Change-Id: I6be3b3a115a10dfb6e2a6d1407d27f96c6d88396
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126823
Reviewed-by: Siva Annamalai <asiva@google.com>
2019-12-02 18:56:41 +00:00
Alexander Thomas 46a5f35da7 [infra] Bump VERSION to 2.8.0
Change-Id: I7a984bdaccab42ab908624e88e066e6e9fb3840a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126840
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2019-12-02 13:58:47 +00:00
William Hesse 05406716bd [infra] Add count of test result messages sent to Pub/Sub
Cut message size in half, to help address timeouts when processing messages.

Bug: https://github.com/dart-lang/dart_ci/issues/46
Change-Id: I3eb7470c7ae31297ed7ecf4879206a5c26b48b22
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126651
Reviewed-by: Alexander Thomas <athom@google.com>
2019-12-02 09:48:15 +00:00
Jonas Termansen 47ce35faf8 [benchmark] Exclude large front end tests and fix tensorflow exclusion.
This change updates tools/bots/try_benchmarks.sh to exclude the front_end
testcases directory, which contains very large binary files (186 MB) that
are not needed to run benchmarks. It also fixes the exclusion pattern for
the very large tensorflow language models (116 MB) that moved to another
directory.

While here, also synchronize back the removal of the profile tarball step
which was removed 3 months ago.

Change-Id: I76260eaf8db95d59be3b57eaecc86548c9d21b9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126723
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-11-29 13:17:53 +00:00
Erik Ernst 521b168441 [co19] Add tests/co19_2/co19_2-co19.status to test_matrix.json
Change-Id: Ib6f63726dea188114131aae0b406c77c59c8f767
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125966
Commit-Queue: Erik Ernst <eernst@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-11-21 14:50:55 +00:00
Paul Berry b431b2fb0d Point analyzer NNBD bot to language rather than language_2
Change-Id: I0672163cb355b06dbd970d744955816b6d43ee0f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125766
Commit-Queue: Paul Berry <paulberry@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2019-11-20 21:50:15 +00:00
Martin Kustermann 635aaa8adf [vm/dart2native] Bundle product-mode vm_platform.dill with the dart-sdk and let dart2native use it
Currently we bundle only one platform file, which dart2native uses as
well as other tools. Since the platform file has annotations already
evaluated, our AOT compiler ends up including service related
functionality in the AOT snapshot.

This CL bundles the product-mode vm_platform.dill as well, which will
reduce dart2native-created apps slightly.

Change-Id: I223811b30704cde1739739d97a8ea2d34a681292
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125665
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
2019-11-20 16:50:09 +00:00
Paul Berry 5eb0d5979a Add new bot configuration for analyzer NNBD
Change-Id: Iadc5d79cf5fb1bbf0d5c8f459770995751616cc0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125540
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2019-11-19 00:33:23 +00:00
Samir Jindel 6a8aae0095 [vm] Enable Dart VM to run in QEMU user-mode emulation for ARM.
Normally we consult /proc to determine the host architecture. However, this
reports the actual host architecture, not the QEMU-simulated one.

Also, GDB cannot debug position-independent executables in QEMU, so we disable
PIE when compiling for execution in QEMU.

Pass '--use-qemu' to 'gn.py' to build for QEMU.

Change-Id: Ib125127ceb0582b66754cfc0da22e09d224ee1e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125267
Commit-Queue: Samir Jindel <sjindel@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-11-18 16:58:53 +00:00
Karl Klose 696069c9a2 [infra] test.dart: Download build results while running the tests
Change-Id: Ieb92069e08d9a1df8e0692b27086616b4d71e66e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124329
Commit-Queue: Karl Klose <karlklose@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2019-11-18 10:07:03 +00:00
Liam Appelbe 329d0913ca [vm] Late modifier for non-final local variables.
I also added a test for top level late variables (they already worked).

Bug: https://github.com/dart-lang/sdk/issues/38841
Change-Id: I6720e6476a067c7f8b21a34b87b23ab14fc866a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125224
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
2019-11-15 23:03:16 +00:00
Erik Ernst d290f1cec2 Add nonfunction-type-aliases experimental flag
Change-Id: I203af5227ecfee8c9e6b0f4985f68e38a18553c0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125203
Commit-Queue: Erik Ernst <eernst@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-11-15 17:04:15 +00:00
Sigmund Cherem d2c63991ae Improve NNBD testing support
The goal of this change is to make it possible to start iterating on nnbd tests
for DDC. This keeps the current philosophy of keeping NNBD and non-NNBD build
configurations separate, except that NNBD builds are allowed to consume library
sources from the non-nnbd sdk.

This change addresses the first set of errors that are encountered when trying
to build a fully NNBD configuration:
  * CFE has issues with type promotion, for that reason we remove
    `--enable-experiment=non-nullable` in vm build rules, and we use a smaller
    training data when creating the dartdevc app-jit snapshot.
  * We'd hit compile-time errors with nnbd libraries with inconsistent
  patchfiles. To avoid that, the libarries.json points to the non-nnbd SDK
  sources for most dart:* libraries.

Change-Id: Ie6226b3bd8a92b4a1632dd84a5db2f04238fd4f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125080
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2019-11-14 18:28:20 +00:00
Liam Appelbe 782b048625 Bump the ABI version
Change-Id: I1d691f3814ab7b3161802242e6ce09d26f97bc9a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124840
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2019-11-11 23:05:49 +00:00
Wink Saville bbdb7860f6 [build]: Build on Arch Linux with python 2.7-3.8
This change allow builds to succeed on Arch Linux with python 2.7, 3.7.4
and 3.8. Otherwise it fails with python 3.7.4 and 3.8.

- bin_to_assembly.py

  Using ord(byte) here is an error on python 3.x use a conditional
  expression instead.

- create_archive.py

  Using ord(byte) here is an error on python 3.x use a conditional
  expression instead.

  Use `as inst` syntax which is required by 3.x

- create_string_literal.py
- gen_library_src_paths.py

  Use `as inst` syntax which is required by 3.x

- make_version.py

  print >> sys.stderr syntax is not supported by 3.x use file=sys.stderr
  and add `from __future__ import print_function`

  vmhash.update requires a string use encode('utf-8')

  versopm+cc+text.replace requires a str so use `decode`.

Test: No added tests as there are no behavioral changes.
Change-Id: Id9b0a3187d06ad2b2dce3cf2244144393caddc9a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124211
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-11-10 21:09:58 +00:00
Karl Klose ec0d042955 [infra] Support multiple named configurations in test infrastructure
This change allows to run test.dart and pkg/test_runner with multiple arguments
for the -n option to run tests for multiple configurations with one invocation.

Change-Id: If62e0bfc364460fa415c7f700f7e449b0de56987
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122395
Commit-Queue: Karl Klose <karlklose@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2019-11-08 08:06:36 +00:00
Alan Knight 752bbce46f Copy dart:html files to sdk_nnbd automatically and opt out
Change-Id: I78ab534da123afb12a31681b47ba1f2fb9567992
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124202
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Alan Knight <alanknight@google.com>
2019-11-06 23:59:33 +00:00
Liam Appelbe 1f8ef384d9 [vm] First pieces of late modifier implementation.
This implements the logic for initializing, getting, and setting
non-final instance fields that have initializers. It doesn't address
statics, finals, local variables, or the no-initializer case, and is
only implemented for bytecode.

Bug: https://github.com/dart-lang/sdk/issues/38841
Change-Id: I3b9e2772abdc04e3bfede56d2fcf06738f234cbb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122489
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-11-05 19:48:03 +00:00