Commit graph

65908 commits

Author SHA1 Message Date
Dmitry Stefantsov 51f6cab413 [cfe] Parse nnbd modifiers in kernel type substitution tests
The Kernel package has its own internal tests for substitution on
DartTypes.  This CL updates the parser for the types in the tests, so
that the nullability attributes are recognized and used.

Change-Id: Icef50259b587817407037c23a0bc3bbc0812d638
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113994
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
2019-08-22 08:09:47 +00:00
Jens Johansen 5dcec3c93e [CFE] Disallow exports internally
This CL adds a lint, but doesn't cleanup the failures we have.

Change-Id: I711af6d012e0b1f1b7dfe422dd615f32f0084119
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113993
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2019-08-22 08:09:21 +00:00
Jens Johansen 40589f80aa [CFE] Fourth batch of fixes for requiring explicit types
Change-Id: I13f62232287b84cc82da2bbb0cee4b4d337de8ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113992
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2019-08-22 07:08:27 +00:00
Alexander Markov 9fda4c1101 [vm/bytecode] Avoid using closure call instructions if code coverage may be needed
This is a workaround to https://github.com/dart-lang/sdk/issues/37944.
Closure call instructions are not tracked by code coverage, so this change
avoids generating them in bytecode if incremental kernel compiler is used -
when vm-service is enabled with command-line option and code coverage
may be needed.

Change-Id: Ifb3bc5e90a9f8ccb04073994d761bc301bc274ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114045
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-08-22 00:28:34 +00:00
Konstantin Shcheglov c62be7398c Log full requests except 'analysis.updateContent'.
R=brianwilkerson@google.com

Change-Id: Ief9694910b6eea788bb8c1c992eb50f98646fc59
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114048
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-08-22 00:08:54 +00:00
Konstantin Shcheglov 09528fc276 Check for null from DeclarationsTracker.getContext()
R=brianwilkerson@google.com

Bug: https://buganizer.corp.google.com/issues/139813994
Change-Id: Ia6ff064d0c625bda443130aab85062086f7d32ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114042
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-08-21 23:18:54 +00:00
Paul Berry 1279641cdd Migration: integrate for-each loops with flow analysis.
Change-Id: I360906d9ed4c4bb3a1475323b4ca6b44dc6f90cf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114000
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-08-21 22:18:24 +00:00
Paul Berry 51cd16ecf0 Flow analysis: support for and for-in elements in collections.
Change-Id: Ia73c68c2b8a57c62ce2b4984184cf8a712b554af
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113944
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2019-08-21 21:57:54 +00:00
Brian Wilkerson 47d2794a71 Implement methods that were missing from ExtensionElementForLink
Change-Id: Ib4031eb1dbca5f583136b0b0c83bfff40abe8d90
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113952
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-08-21 21:55:24 +00:00
Konstantin Shcheglov a17959b5a0 Log the context in which analysis work is done.
R=brianwilkerson@google.com

Change-Id: Idb8c1296917053e802442ac87e8aa9e2fae0dee7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114040
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-08-21 21:33:24 +00:00
Liam Appelbe 9198813a55 Revert "Scaffolding for dart:wasm"
This reverts commit f39a3f188e.

Reason for revert: https://golem.corp.goog/BuildInfo?target=flutter-profile&machine-type=android-armv7&revision=84750

Original change's description:
> Scaffolding for dart:wasm
> 
> This CL doesn't have any tests because it's just boilerplate. I'll
> add a test in the follow up CLs where I add actual functionality.
> 
> Bug: https://github.com/dart-lang/sdk/issues/37882
> Change-Id: I47c81f5f1be724f8226e756ba5d01880a45f1ac7
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112841
> Reviewed-by: Siva Annamalai <asiva@google.com>
> Reviewed-by: Liam Appelbe <liama@google.com>
> Commit-Queue: Liam Appelbe <liama@google.com>

TBR=asiva@google.com,liama@google.com

Change-Id: I0fd0f29d66a07fc29e840ddaec2d4161c8d599cb
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: https://github.com/dart-lang/sdk/issues/37882
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114044
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2019-08-21 21:06:10 +00:00
Paul Berry 4bf5a72ca0 Flow analysis: support functions whose bodies are expressions.
Change-Id: I01a66fb2c897e0cabbdfb4b7423cab53291b3adf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113947
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-08-21 20:41:13 +00:00
Paul Berry b569bf048e Migration: node builder support for new-style typedefs.
Change-Id: Idc0fa7523cca7a49d833b5e97a7712021fcae6f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113949
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-08-21 20:35:43 +00:00
Liam Appelbe f39a3f188e Scaffolding for dart:wasm
This CL doesn't have any tests because it's just boilerplate. I'll
add a test in the follow up CLs where I add actual functionality.

Bug: https://github.com/dart-lang/sdk/issues/37882
Change-Id: I47c81f5f1be724f8226e756ba5d01880a45f1ac7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112841
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2019-08-21 19:55:04 +00:00
Konstantin Shcheglov 3729b961bb Use SearchedFiles when searching subtypes for 'analysis.implemented'.
R=brianwilkerson@google.com

Change-Id: I7bba90bd550602588553382fe61c8c41539483ca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113951
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-08-21 18:44:13 +00:00
Martin Kustermann 5d816cbc5d [vm/concurrency] Add FLAG_enable_isolate_groups, still defaulting to true
Issue https://github.com/dart-lang/sdk/issues/36097

Change-Id: I3ab8f025eca164b450321abb1b7ef6d7052e7d20
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113998
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2019-08-21 17:44:43 +00:00
jonahwilliams 480e481708 Throw HttpException instead of String in http impl
This was noted in the flutter_tool crash reports, see https://github.com/flutter/flutter/issues/38902, since we only catch specific exception types this ended up as an uncaught exception.

I think the HttpException class seems reasonably appropriate for this class of error.

Change-Id: I88801dfe558f5edb781513b0eb82f1544b980e89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113962
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2019-08-21 17:42:25 +00:00
Konstantin Shcheglov 9aa48c2e91 Build local elements in initializers of typed constants.
R=brianwilkerson@google.com

Change-Id: I7e7c75841b50ca91132278244cb71a6f7aa3649c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113963
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-08-21 17:07:22 +00:00
Konstantin Shcheglov af2e729fca Record request / response statistics.
If following flags are specified for DAS, in IntelliJ in Registry as
"dart.server.additional.arguments":

--new-analysis-driver-log=file:/Users/scheglov/tmp/das.log
--include-protocol-to-driver-log

then abbreviated requests, and request execution statistics is
written to the file. We also write abbreviated notifications.

The goal is to be able to see what work was requested, what was
analyzed, and identify why some requests took long to get responses.


R=brianwilkerson@google.com

Change-Id: I98e99a73f10f2842c5efb350189a9675f29f45df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113800
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-08-21 16:47:21 +00:00
Sam Rawlins 7bc9515ac2 Fix CompilationUnitMember doc comment. Fixes #27170
Change-Id: I2aee1bb92e05fb780910ee319ff4e29b5a16de35
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113946
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2019-08-21 16:44:11 +00:00
Brian Wilkerson ef39492fd6 Fix support for annotations on extensions
Change-Id: I635727da4a7480f6d271ede571163bd790b3a952
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113925
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-08-21 16:25:01 +00:00
Konstantin Shcheglov 64efe44e5e Formal parameters of FunctionTypeAlias should be created in @function reference.
R=brianwilkerson@google.com

Change-Id: I9f0a4f385d714644b07313752ba0d4643673fc0b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113961
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-08-21 16:15:31 +00:00
Paul Berry 0323fb97bc Migration: support Function() syntax with type formal parameters.
Change-Id: Ib1ab632eb4546d1bd8b71493b7d72f299244fb4e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113945
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-08-21 16:06:11 +00:00
Brian Wilkerson 19533094eb Stop deleting the terminating period on diagnostic messages
We have messages that contain more than one sentence, and sometimes
include end-of-line markers. We really need to do more to improve the
output in these cases, but this is a start.

Change-Id: I4750feae0a8e6665a8243c6d15726350b26a558b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113940
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2019-08-21 15:21:49 +00:00
Paul Berry d252efaa49 Migration: node builder support for old-style typedefs
Change-Id: I39fa3415d10993c0eff4ec12ad148a9f9772bebb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113943
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-08-21 15:01:59 +00:00
Paul Berry 468800f9d7 Refine the type of FunctionTypeAlias.declaredElement.
A FunctionTypeAlias is known to declare a FunctionTypeAliasElement.
This was already reflected in the type of
FunctionTypeAliasImpl.declaredElement, it just wasn't reflected in the
public API.

Change-Id: Ia1a01f91e8fccee261fceddfc8797c3be36f7ea1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113942
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-08-21 15:01:59 +00:00
Danny Tuppeny c44c2f1b68 Update LSP readme with instructions for shipped SDKs instead of source
Change-Id: I5ea6584adec083f423098a8d0601d45d7b66e576
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113983
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Danny Tuppeny <dantup@google.com>
2019-08-21 13:41:07 +00:00
Jens Johansen f2e04caeaf [CFE] Fix CQ race condition with lint status
TBR

Change-Id: Ie99cd8a0d93c765f1c9bc90b97393359b625abdb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113995
Reviewed-by: Jens Johansen <jensj@google.com>
2019-08-21 13:39:30 +00:00
Samir Jindel bc16959fc7 Reland "[vm/ffi] Dispatch native callbacks through trampolines if we can't ensure callbacks will always be executable."
The original revision is in patchset 1.

Three bugs are fixed:

1. Fix SIMARM_X64 build: no need to generate trampolines for AOT or simulated JIT.
2. Hot-reload: Fix hot-reload: don't invalidate Code for force-optimized functions.
3. Windows: Provide shadow space to runtime routines.

Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-mac-debug-simarm_x64-try,vm-kernel-precomp-mac-release-simarm_x64-try,vm-kernel-reload-linux-debug-x64-try,vm-kernel-reload-rollback-linux-debug-x64-try,vm-kernel-win-debug-ia32-try,vm-kernel-win-debug-x64-try,vm-kernel-win-release-ia32-try,vm-kernel-win-release-x64-try
Change-Id: I326009cfacb51a84e9de4ddf9ff2d6d415460f91
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113829
Commit-Queue: Samir Jindel <sjindel@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2019-08-21 13:33:37 +00:00
Jens Johansen 48edb2362a [CFE] Update lint for explicit types to also look at fields and top level fields
Oversight that it didn't always do that.

Change-Id: Ib515ed0f77efcdfb932d5fad9c5b269eeb45a160
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113988
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2019-08-21 12:33:45 +00:00
Aske Simon Christensen 5905fe41a9 [CFE] Explicit return types and overrides in constant evaluator
Change-Id: Ibdba0689a7de58f3ab999d10d963dac43dbfc1e4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113984
Commit-Queue: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2019-08-21 12:25:32 +00:00
Jens Johansen 698c5b1a36 [CFE] Add 'double import' lint
Add a lint to discourage importing the same file more than once.
The idea being that it was probably done by mistake (e.g. automatically
by an editor).
This is done in a number of places and they are currently added to the
status file.

Change-Id: I16bc9c04c5a607f87ead1fb34922a7edb408c3da
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113985
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2019-08-21 12:20:22 +00:00
Karl Klose b625152523 [infra] Remove non-essential test expectations from kernel status files
Change-Id: Id246d9abb338873ef5082c3c70f45f5650ad1dcf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113981
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Karl Klose <karlklose@google.com>
2019-08-21 10:37:45 +00:00
Daco Harkes c37b5b2edf [vm/ffi] Status: skip test including callbacks on DBC
Fixes status file for 670d40d808.

Change-Id: I48f59fd0767d718888a13259c368f5ea5e5879e4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113982
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2019-08-21 09:18:56 +00:00
Karl Klose 095d1c2835 [infra] Clean up general status files
Change-Id: I421fca89e748474a585f052532b86ef3ddbed4ca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113681
Commit-Queue: Karl Klose <karlklose@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2019-08-21 09:18:34 +00:00
Johnni Winther 7f9f4ad774 [cfe] Delete legacy tests
+ make sdk_test test non-legacy

Change-Id: Ie9861e54d12301f454d4fccf6eccd3516e0387d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113825
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-08-21 09:01:44 +00:00
Johnni Winther 91c8cf7167 [cfe] Support per folder experimental flags in testcases
Change-Id: Ia4d795959f6b192d83c97c45870c5fc59d406f4c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113824
Reviewed-by: Jens Johansen <jensj@google.com>
2019-08-21 09:01:44 +00:00
Daco Harkes 670d40d808 [vm/ffi] regression test for 37511
I tested this test manually by reverting 48d92b3176 to confirm that it makes the test segfault.

Closes: https://github.com/dart-lang/sdk/issues/37511

Change-Id: I62cb2b83775780a2fccfd9ee4ebff793de82090a
Cq-Include-Trybots: luci.dart.try:vm-ffi-android-debug-arm-try, app-kernel-linux-debug-x64-try, vm-kernel-linux-debug-simdbc64-try,vm-kernel-linux-debug-ia32-try,vm-dartkb-linux-debug-simarm64-try,vm-kernel-win-debug-x64-try,vm-kernel-win-debug-ia32-try,vm-dartkb-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-dartkb-linux-release-x64-abi-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109703
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Samir Jindel <sjindel@google.com>
2019-08-21 08:10:34 +00:00
Michael Thomsen c651102793 Remove third_party licenses from LICENSE
Third-party licenses files are located inside the `third_party` folders.

Closes #37920
https://github.com/dart-lang/sdk/pull/37920

GitOrigin-RevId: 0baec7bcb079bf56658e29cbdab83149ec211d6b
Change-Id: I8a1e6fcb682d961f6390272e7bb5eadd5ff1dcf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113842
Reviewed-by: Michael Thomsen <mit@google.com>
2019-08-21 07:43:34 +00:00
Alexander Markov 5e5313c8d6 [vm/bytecode] Keep unreachable code for code coverage
This change adds a bytecode generation option 'keep-unreachable-code' to
avoid eliminating unreachable code from constant conditions.
This option is enabled in kernel service.

If unreachable code is eliminated, then call instructions are not generated
and ICData objects are not created. Source code report is collected
using created ICData objects and will not flag the unreachable code as
not executed.

Change-Id: Ic73e19c653505e0dfab4648ab65ef6b90370e0b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113960
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2019-08-21 02:28:44 +00:00
Alexander Markov 922c2bfbb0 [vm/bytecode] Include source info and asserts into platform with bytecode
* Include source positions, source text (if provided by front-end, which is
  controlled by a separate option) and assertions into platform with bytecode.
  Also use environment defines if provided.

* Omit bytecode for synthetic static fields '_redirecting#' injected
  by front-end, as they contain invalid AST nodes (taking tear-off of
  a constructor). This is needed to avoid emitting bytecode which cannot be
  loaded.

* Correctly merge source information such as source text and line numbers
  in bytecode generator if the script was originally created for an
  anonymous mixin application without such information.

* Always include import URIs into source information, even if other information is
  excluded (for members in anonymous mixin applications / noSuchMethod forwarders /
  forwarding stubs).

* Set native resolvers for vm/cc/PrintJSON test, as printing all objects to JSON
  involves collecting token positions, which may read bytecode from platform and
  need native resolvers to process native method entries.

Change-Id: I971e880c25439c0ec69db3a231a0085ccd5d15ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113780
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
2019-08-21 01:08:24 +00:00
Ben Konyi 457c4349d0 [ package:vm_service ] Prep for 1.1.1 release
Change-Id: I9d3cc6a12704514fd0a643f21d6e596d7dd5a2ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113900
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2019-08-21 00:49:29 +00:00
Felicitas Hetzelt 861cae4853 [vm/fuzzer] Disable stacktrace option on FFI runs
Rationale:
Until the related bug is fixed we
disable the option '--stacktrace_every=100' for tests.

Bug:
https://github.com/dart-lang/sdk/issues/37910

Change-Id: I257579f49ab15f9cae8c1480ae02824e0484c531
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113863
Commit-Queue: Felicitas Hetzelt <felih@google.com>
Reviewed-by: Aart Bik <ajcbik@google.com>
2019-08-21 00:42:44 +00:00
Konstantin Shcheglov f50a566476 Enclose local variables in default values of optional formal parameters.
R=brianwilkerson@google.com

Change-Id: I693759f24cab6a63d5a1ecbdb131324b29fc8d34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113927
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-08-21 00:41:24 +00:00
Ryan Macnak 239a6d1449 [vm, bytecode] Annotate super calls and clear lookup caches on reload.
Fixes remaining vm/cc/IsolateReload tests.

Change-Id: I98999b6e1164a015dbd61674b70c771cd6c488b6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113901
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2019-08-21 00:10:26 +00:00
pq ee38a308da thread feature set into linter debug util
Change-Id: I50e7145105bdee7227a4d5437fc154272a43ccb0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113923
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-08-20 23:09:13 +00:00
Mayank Patke afc259ea6b [dart2js] Add 'any' to DartType.
Change-Id: I430a754d0eb312b3f6509de72c91425da8291280
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113755
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
2019-08-20 22:18:43 +00:00
Paul Berry 1d9b6427ef Prepare to publish analyzer version 0.38.1.
Change-Id: I5c900310be1c66b3e8dfbd363aef3089bb07fbbe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113922
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2019-08-20 22:17:03 +00:00
Brian Wilkerson a5007cde35 Clean up an obsolete TODO comment
Change-Id: I5626c2d03d46517ee12333dd76d6d08cc8a36a5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113921
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2019-08-20 21:59:02 +00:00
Mayank Patke 293eee940b [dart2js] Revert to old Closure.toString() implementation for old RTI.
TBR=sra@google.com

Change-Id: Ie23953c6aa3c3b4e286eeb2d23889bc4357c098f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113904
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2019-08-20 21:26:10 +00:00