Commit graph

73397 commits

Author SHA1 Message Date
Kevin Moore eb21b006ac Improve the changelog entry for linter
- Order items to make them more parsable
- Remove items that won't affect SDK users
- Consolidated entries

Change-Id: I855b81f22377d55aa19b12decef95a58f211fd94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150800
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2020-06-11 18:44:11 +00:00
Paul Berry 6a36dbad2e Clarify deprecation notices for package:analyzer/analyzer.dart
Change-Id: I487360347f7e8b8f9aa513ed9f638a3af912e3a2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150960
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-06-11 18:42:41 +00:00
Sam Rawlins 32559d3799 Analyzer: Do not forward factory constructors to mixin applications
Fixes https://github.com/dart-lang/sdk/issues/38306

Change-Id: I1424425ad6b04f1b611661cfca6ff5113b2cf0df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150681
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-06-11 17:40:24 +00:00
Mayank Patke 9f6510b31b [dart2js] Replace accesses to options.nullSafetyMode with
`options.useLegacySubtyping` where possible.

Change-Id: I462044e536f061cc0c67b044b986494801f58e1b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150765
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2020-06-11 17:35:41 +00:00
Mike Fairhurst 6b40b26044 [nnbd_migration] Print warning when SDK_PATH is set and things go wrong.
Also clean up sanity checking code a little bit.

Change-Id: I4274dad42687a4dc419090d656ec56168c982c29
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150661
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-06-11 17:19:51 +00:00
Lasse Reichstein Holst Nielsen 6428bab7ed Add tests for override inherited inference.
Change-Id: I636682c38e2ba97826420f6f6bbb8e54aa29e21f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148761
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2020-06-11 17:13:21 +00:00
Konstantin Shcheglov 67da8cf7f5 Fix for NPE when the assigned expression is synthetic at the end of the unit.
R=brianwilkerson@google.com

Change-Id: I6c221481fa0b8338847f6fb0d605c45c17a55fe3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150841
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-11 16:50:51 +00:00
Konstantin Shcheglov b19e9075db Non-nullify types after inference.
Change-Id: Ie50ea84d18bc44799cadc797c76d6506539de719
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150842
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-11 16:50:43 +00:00
Ryan Macnak b0484ecbde [vm] Check prefix.loadLibrary is called and returns before prefix members are used.
Restore checks against reloading a library with deferred prefixes.

No loading is actually deferred.

Bug: https://github.com/dart-lang/sdk/issues/26878
Bug: https://github.com/dart-lang/sdk/issues/41974
Change-Id: Iec2662de117453d596cca28dd9481a9751091ce9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149613
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2020-06-11 16:33:21 +00:00
Paul Berry 2a5c122d4a Migration: Fix EdgeBuilder._unimplemented if node==null
Change-Id: Id1a297f1ee5eaf4d7111ad081a0a8c49cb334303
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150801
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2020-06-11 16:14:42 +00:00
Regis Crelier 9f904ff184 [VM/runtime] Remove intermediate array copy step when rehashing types.
Change-Id: Iffe90ef347b026f87cc21c07710fbfea34f36413
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150697
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Régis Crelier <regis@google.com>
2020-06-11 15:49:22 +00:00
Martin Kustermann 1f32f6563a Revert "[infra] Update checked-in SDKs to 2.9.0-15.0.dev"
This reverts commit 045227ed9d.

Reason for revert: This seems to make a lot of windows builders fail with

"""
FileSystemException: Cannot copy file to 'C:/b/.../t_bytecode_simple_test_body.dart', path = 'C:\b\...\st_body.dart' (OS Error: The operation completed successfully.

, errno = 0)
#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File.copySync (dart:io/file_impl.dart:340:5)
#2      StandardTestSuite._makeCommands (package:test_runner/src/test_suite.dart:683:39)
#3      StandardTestSuite._enqueueStandardTest (package:test_runner/src/test_suite.dart:611:22)
#4      StandardTestSuite._testCasesFromTestFile (package:test_runner/src/test_suite.dart:590:7)
#5      StandardTestSuite.findTestCases (package:test_runner/src/test_suite.dart:485:7)
#6      TestCaseEnqueuer.enqueueTestSuites (package:test_runner/src/process_queue.dart:239:13)
#7      new ProcessQueue (package:test_runner/src/process_queue.dart:177:22)
#8      testConfigurations (package:test_runner/src/test_configurations.dart:255:3)
#9      main (file:///.../test_runner.dart:39:5)
"""

Original change's description:
> [infra] Update checked-in SDKs to 2.9.0-15.0.dev
> 
> https://github.com/dart-lang/sdk/issues/42274
> 
> Change-Id: I4ea2c533e4f47d42313a500c7c04c60c8a5c714b
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150931
> Auto-Submit: Alexander Thomas <athom@google.com>
> Commit-Queue: Alexander Thomas <athom@google.com>
> Commit-Queue: William Hesse <whesse@google.com>
> Reviewed-by: William Hesse <whesse@google.com>

TBR=whesse@google.com,athom@google.com

Change-Id: I71e885951c5d70e7dffa5d9ba7d1336d81986b72
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150938
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-06-11 15:23:15 +00:00
Danny Tuppeny 5c3f9217cb Filter LSP completions (fuzzily) by prefix to reduce payload size
Bug: https://github.com/dart-lang/sdk/issues/42152.
Bug: https://github.com/dart-lang/sdk/issues/40026.
Change-Id: I4c921ddff3224d736c4236861d0ff156f58be595
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150628
Commit-Queue: Danny Tuppeny <danny@tuppeny.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-06-11 14:11:12 +00:00
Brian Wilkerson 9e2f11251c Improve the message for default_list_constructor
Change-Id: Id2514bd9aab667939396b26f677577ff3b6695fe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150692
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-06-11 14:00:56 +00:00
Robert Nystrom 20fb8cb737 Migrate language_2/rewrite to NNBD.
Change-Id: I9a8e4fddebeb7a4e467e86256cd89204bfedf07d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150696
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2020-06-11 13:54:20 +00:00
Tess Strickland 7c9f7f4bf8 [vm/aot] Fix UB behavior due to WriteFixed usage at unaligned positions.
Change-Id: Icc4f05bbec03aee1f60c690e3bef8b5f6f159470
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150933
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2020-06-11 13:52:51 +00:00
Mayank Patke f043f9e5f6 Don't legacy-erase type literals.
Change-Id: Ic924a4ddf27801e0d09952cd0da222cfda4f8b73
Bug: https://github.com/dart-lang/sdk/issues/42262
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150821
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-06-11 13:28:49 +00:00
Alexander Thomas 045227ed9d [infra] Update checked-in SDKs to 2.9.0-15.0.dev
https://github.com/dart-lang/sdk/issues/42274

Change-Id: I4ea2c533e4f47d42313a500c7c04c60c8a5c714b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150931
Auto-Submit: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2020-06-11 13:01:50 +00:00
Vyacheslav Egorov 20d2917f84 [vm/tool] Improvements to snapshot_analysis 'compare' command.
Introduce helper classes and methods for constructing program
hierarchy from a flat list of symbols as well as methods for
diffing and bucketing the program hierarchies.

Issue https://github.com/dart-lang/sdk/issues/41249

Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-try,pkg-win-release-try,pkg-mac-release-try
Change-Id: Ieb6ad1ccd8bc7fa1181d31e78ac351369ede5f81
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150101
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2020-06-11 12:30:49 +00:00
Aske Simon Christensen e35ca30ca5 Reland "[vm] MemoryCopy instruction for copying between typed data and strings."
This is a reland of 6ecd8a10ea

Original change's description:
> [vm] MemoryCopy instruction for copying between typed data and strings.
> 
> Used for copying the bytes from the Uint8List to the _OneByteString in
> String.fromCharCodes and the pure-ASCII case of UTF-8 decoding.
> 
> Issue https://github.com/dart-lang/sdk/issues/42072
> Closes https://github.com/dart-lang/sdk/issues/41703
> 
> Change-Id: I1ae300222877d1c6e64e32c2f40b8fb187a584c0
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149500
> Commit-Queue: Aske Simon Christensen <askesc@google.com>
> Reviewed-by: Martin Kustermann <kustermann@google.com>

Change-Id: Ia231c521e5f2db168cfc6094dfc7322327dedc6d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150925
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2020-06-11 12:29:19 +00:00
Dmitry Stefantsov 363ac11c1f [cfe] Support more statements in round-trip serialization
* async-version of ForInStatement
* AssertBlock
* AssertStatement
* ReturnStatement without return expressions

Change-Id: Ic1dcff70913c37fc09e31f4608eff8a47037eaa1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150924
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
2020-06-11 10:10:08 +00:00
Tess Strickland 83d4f3af61 [vm/aot] Rework Dwarf object to be output-agnostic.
Previously, we created a separate DWARF object for each possible output.
For the most part, the information stored in each DWARF object was the
same, but the DWARF object was responsible for keeping track of abstract
origin addresses (in the non-assembly case) and for actually generating
the desired output (assembly or binary).

Instead, abstract out the output formatting into a DwarfWriteStream,
whose subclasses handle both the final output format and certain details
that differ between assembly and binary outputs. With this, the DWARF
class no longer depends on having direct access to the ELF file if being
used to generate ELF sections, and as such is output agnostic.

Now, if we have one or more outputs that contain DWARF information, we
only generate a single DWARF object that is shared across these outputs.
The only additional change required is in Dwarf::AddCode(), which now
handles being called multiple times for the same Code object.

Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-linux-release-simarm_x64-try
Change-Id: I71de887a07a673164b3ccfa7fbbab2ccef80c576
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150302
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2020-06-11 08:57:59 +00:00
Alexander Thomas b0d2b97d2c [co19] Roll co19 to b071a4729a57ee47dcc7330ab9ea3566ef58e5c2
2020-06-10 sgrekhov@unipro.ru Mixin tests fixed (references to super are allowed, superclass other than Object not)
2020-06-09 sgrekhov@unipro.ru Fixes 726. Language\Mixins\Mixin_Application tests migrated to null safety
2020-06-09 irina.arkhipets@gmail.com Fixed issue 703: Missing Issue tags added.
2020-06-09 sgrekhov@unipro.ru Subtyping tests fixed to not to fail on tryjobs
2020-06-09 sgrekhov@unipro.ru Fixes 725. Language\Mixins tests migrated to null safety
2020-06-08 sgrekhov@unipro.ru Fixed errors or issue numbers added in the tests migrated to NNBD
2020-06-05 irina.arkhipets@gmail.com Fixed issue 607: Missing Issue tags added, tests corrected.
2020-06-05 sgrekhov@unipro.ru Fixed errors in the tests migrated to NNBD
2020-06-05 sgrekhov@unipro.ru Fixed numerous errors in the tests migrated to NNBD
2020-06-05 sgrekhov@unipro.ru Fixed numerous errors in the tests migrated to NNBD
2020-06-05 irina.arkhipets@gmail.com Missing Issue tag for 42196 added.
2020-06-05 irina.arkhipets@gmail.com Fixed Issue 646: Missing Issue tags for 36959, 37050 added, test corrected.
2020-06-05 irina.arkhipets@gmail.com Missing Issue tags for 36959, 37050 are added.
2020-06-05 irina.arkhipets@gmail.com Issue 723: Language\Libraries_and_Scripts\Exports tests adopted for nnbd.
2020-06-05 irina.arkhipets@gmail.com Issue 721: Language\Interfaces tests adopted for nnbd.
2020-06-04 sgrekhov@unipro.ru 478. Expected result fixed

Change-Id: I5ffe7f6272c5906643eda81364a2cfcec48ba042
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150743
Reviewed-by: William Hesse <whesse@google.com>
2020-06-11 07:10:41 +00:00
Alexander Markov 2bd7cbb151 [vm/kernel] Add options to generate Fuchsia manifest to gen_kernel tool
This change adds options
  --manifest
  --component-name
  --data-dir
to gen_kernel tool.

After that, gen_kernel becomes a drop-in replacement for Fuchsia's
kernel compiler.

Change-Id: I8370b4224d1fc1973c8a850ea1e46defdb2cbac4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150690
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2020-06-11 05:50:55 +00:00
Alexander Thomas 6e82beea2e [infra] Remove remaining GSUtil.GSUTIL_IS_SHELL_SCRIPT reference
TBR=whesse@google.com

Change-Id: I09d8fd079acfd9aeca01d8af86394e2bb79beae8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150744
Reviewed-by: Alexander Thomas <athom@google.com>
2020-06-11 05:29:33 +00:00
Sam Rawlins 6ac9749546 Update nnbd_migration README with more details.
* Use title case on all headings.
* Link to https://dart.dev/null-safety and
  https://dart.dev/tools/pub/cmd/pub-outdated
* Remove any text which suggests to publish. Official docs warn
  strongly against using in production.
* Mention `pub outdated --mode=null-safety`.
* Mention migrating a clean code repository.
* Add more text about committing along the way.
* Make clear that the tool provides no revert capability.

Change-Id: I7914dc904a93046ce2508c51cae158ac39e889af
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150822
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
2020-06-11 03:33:25 +00:00
Keerti Parthasarathy e62b89c56d Add a byte store that can be shared for use with Cider.
Change-Id: I492aebb476aa7e681eb4d7d5bff995d12917c9b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150684
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2020-06-11 02:42:25 +00:00
Robert Nystrom 24b33dae89 Migrate language_2/operator to NNBD.
Change-Id: I90bc5ff6aae8998deb3cc28b1134c60058706f01
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150185
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Srujan Gaddam <srujzs@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2020-06-11 01:44:45 +00:00
asiva a782dd82db [VM/runtime] - detect null safety before isolate initialization
- Detect null safety when not specified before isolate
      initialization
      - for source files by having CFE parse the source file
        for @dart annotations
      - for kernel files by sniffing the kernel file for
        compilation mode
      - for appJIT files by sniffing the feature string
      - for AOT snapshots by sniffing the feature string

    - Remove workaround of returning null safety to false during
      bootstrapping

    - Add a new Dart C API call for detecting null safety

Bug: 41766
Change-Id: Ia8cf264323a2d0d58c2855ce6491456aa6f1da07
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150089
Commit-Queue: Siva Annamalai <asiva@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2020-06-11 01:22:35 +00:00
Regis Crelier c0c66ab10f Reland "[VM/nnbd] Canonicalize TypeParameter objects in the VM."
This is a reland of 6a98e2719e

Original change's description:
> [VM/nnbd] Canonicalize TypeParameter objects in the VM.
> 
> Prior to this CL, type parameters were all assumed canonical, even duplicate ones.
> 
> Per a new convention introduced in this CL, the type parameter array in generic classes and generic functions contains canonical type parameters. As these type parameters get cloned with a different nullability, they are inserted in a new hash table of canonical type parameters.
> 
> This fixes performance issue https://github.com/dart-lang/sdk/issues/41421
> 
> Change-Id: I9086158fa6b6261e9997bb50edec6d7c54abbfa1
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148223
> Commit-Queue: Régis Crelier <regis@google.com>
> Reviewed-by: Ryan Macnak <rmacnak@google.com>

Change-Id: I4a42d0f9d53c2244b1a638432ed2cd6a055fa72a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150266
Commit-Queue: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2020-06-11 00:44:05 +00:00
Samuel Rawlins 5a32ff0d7f Revert "Bump cli_util to 0.2.0; implement new methods"
This reverts commit ebcc6dc2a2.

Reason for revert: Broke golem. I think there are more implementations of Logger than I realized.

Original change's description:
> Bump cli_util to 0.2.0; implement new methods
> 
> This fixes the issue of progress indicators being shown during tests.
> 
> Change-Id: I39fd68cfeca70a63d088aceb4325b42c53766afd
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150669
> Commit-Queue: Samuel Rawlins <srawlins@google.com>
> Reviewed-by: Paul Berry <paulberry@google.com>

TBR=paulberry@google.com,jcollins@google.com,mfairhurst@google.com,srawlins@google.com

Change-Id: I52ac0f5d96a161534c28cc160c2a2b3b364ad511
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150693
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2020-06-10 23:59:05 +00:00
Konstantin Shcheglov 3902021740 Check inferred types using their string presentation.
R=brianwilkerson@google.com

Change-Id: Ie634ba1be72db6384cf5c9a8a91fd9b908518a30
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150840
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-10 23:55:23 +00:00
Nicholas Shahan ee54a343ba [ddc] Fix type parameters in tear offs
Add missing nullability on type parameters in function types of
tear offs.

Change-Id: If56ab42db57d14d0939a03518d5b944548e4065d
Fixes: https://github.com/dart-lang/sdk/issues/42246
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150680
Reviewed-by: Mark Zhou <markzipan@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-06-10 23:49:43 +00:00
Konstantin Shcheglov 84e625ae4c Update override/inheritance_field_test.dart and override/inheritance_setter_test.dart
Bug: https://github.com/dart-lang/sdk/issues/42204
Change-Id: I646cb8919e99d11829190ed30a35cb55a70ade9d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150820
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-10 22:18:06 +00:00
Sam Rawlins ebcc6dc2a2 Bump cli_util to 0.2.0; implement new methods
This fixes the issue of progress indicators being shown during tests.

Change-Id: I39fd68cfeca70a63d088aceb4325b42c53766afd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150669
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2020-06-10 22:10:06 +00:00
Alexander Thomas 1e5b0182ca [infra] Remove obsolete buildbot paths/terms
https://github.com/dart-lang/sdk/issues/42247

Change-Id: Ia0b19677c655bc768f00be77df8b0162ac9e7bea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150629
Auto-Submit: Alexander Thomas <athom@google.com>
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2020-06-10 20:59:46 +00:00
Ryan Macnak 0fab083e1c [vm, isolate] Merge heaps without evacuating new-space.
Change-Id: I03d65e866215f243f2ab6a4a1d9d41625be4d56f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148682
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-06-10 20:22:02 +00:00
Martin Kustermann cfe45b6e3e [vm] Add opt-in flag to set priority for worker threads created by the VM
The newly added --worker-thread-priority can be used by users as an
opt-in to set the thread priority / nice value.

It is the responsibility of the user to ensure that the process has the
right to change the priority to the given value. Failure to set the
priority will be fatal.

See b/154918152

Change-Id: I3b3791e88b6ddf4fa6e39e4587f7fe1ab4d2312f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150560
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2020-06-10 19:57:02 +00:00
Brian Wilkerson 01f284c661 Clean up the return type of the contributors compute method
All of the contributors now contribute through the builder so the return
value was always an empty list.

Change-Id: I9e5746a7c7e2dc256a00c6091f6bf9d46331b617
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150803
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-06-10 19:37:12 +00:00
Ryan Macnak d1b0713e8b Revert "[vm] MemoryCopy instruction for copying between typed data and strings."
This reverts commit 6ecd8a10ea.

Reason for revert: Breaks ABI

Original change's description:
> [vm] MemoryCopy instruction for copying between typed data and strings.
> 
> Used for copying the bytes from the Uint8List to the _OneByteString in
> String.fromCharCodes and the pure-ASCII case of UTF-8 decoding.
> 
> Issue https://github.com/dart-lang/sdk/issues/42072
> Closes https://github.com/dart-lang/sdk/issues/41703
> 
> Change-Id: I1ae300222877d1c6e64e32c2f40b8fb187a584c0
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149500
> Commit-Queue: Aske Simon Christensen <askesc@google.com>
> Reviewed-by: Martin Kustermann <kustermann@google.com>

TBR=kustermann@google.com,askesc@google.com

Change-Id: I5fc0b58da80dca23c91b57ec2833492e9d0885a8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150802
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-06-10 18:41:55 +00:00
Stephen Adams 96fc158e4e Revert "[dart2js] Delete unused old-rti helpers"
This reverts commit e75b824aed.

Reason for revert: Break in google3 

Original change's description:
> [dart2js] Delete unused old-rti helpers
> 
> Change-Id: I0f97dddbfcbe5f51dff1d7d68f880e85d62768a4
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150504
> Commit-Queue: Stephen Adams <sra@google.com>
> Reviewed-by: Sigmund Cherem <sigmund@google.com>

TBR=sra@google.com,sigmund@google.com,joshualitt@google.com

Change-Id: If71d84fda4ce596bb762d32454a4c635185f189f
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150780
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2020-06-10 17:46:40 +00:00
Konstantin Shcheglov f3fba2eeb5 Fix _PackageMapUriResolverTest on Windows.
Change-Id: Id53c541bf681ccd2f035bc64e733f976bef98af6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150762
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-10 17:39:47 +00:00
Jens Johansen 214cdbdc81 [test_runner] Fix RangeError when parsing static errors
Previously it tested if it was at the end of file (defined as
_currentLine >= _lines.length), if it was not it would try to read the
_next_ line (_peek(1)), meaning that if _currentLine = _lines.length - 1
it would _peek(1) and try to read _lines[lines.length] and crash with a
range error. This CL fixes it by actually checking if it can safely peek
the amount it wants to.

Change-Id: I2e66c539e823f0b39bd0da39e2b2277a9e6c9501
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150624
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-06-10 17:33:37 +00:00
Jaime Wren 5900da5418 Refactoring and follow-up on the recent change to local_reference_contributor.dart.
Change-Id: I40dccf84293d09b85879d75ed84a30e141c8dbda
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150764
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
2020-06-10 17:26:17 +00:00
Michael Thomsen 8d65076f18 Change terms to be more divisive
Based on guidance in https://developers.google.com/style/

Related to https://github.com/dart-lang/sdk/issues/42247

Change-Id: Ia4edb2cb0540781f1119c369406a7b65553e26f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150632
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
2020-06-10 17:14:37 +00:00
pq 5b51895652 linter 0.1.117
Change-Id: I2489c5ff7f2dd5c70b41fa49550e3743e9d3d529
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150601
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2020-06-10 17:10:37 +00:00
Jaime Wren 88c3d26d7f Null check fix in completion metrics
Change-Id: I0941e0ecd404fe307ab823ea76f947e34ab720da
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150763
Auto-Submit: Jaime Wren <jwren@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-06-10 16:37:26 +00:00
Konstantin Shcheglov 965ef001f6 When evaluating constants, use the TypeSystem of the library.
Change-Id: Ief2207cafef6e6b28169ab0c46239d1dea665fac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150700
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-10 16:27:47 +00:00
Konstantin Shcheglov c6ca3180df Support null shorting for FunctionExpressionInvocation.
Change-Id: I470c85574662d70517aa880e5c094d54226efa11
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150668
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-10 16:25:57 +00:00
Konstantin Shcheglov 97e291ba9f Mark any variables assigned in the body of try/catch not definitely unassigned in catch.
Bug: https://github.com/dart-lang/sdk/issues/42235
Change-Id: Iad3792bef1dc8f468d8b9e7ec729e1cbdf6c946a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150600
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-06-10 16:17:37 +00:00