Commit graph

79708 commits

Author SHA1 Message Date
Clement Skau
67f097a161 [tools] Update all iteritems -> items
This migrates old python2 dict.iteritems() to python3 dict.items().
iteritems was removed in python3 meaning these script will otherwise not
run.
Note that this remains backwards compatible since dict.items() also
existed in python2, though the implementation was more memory intensive
for large dicts (which these likely aren't).

This is similar to https://dart-review.googlesource.com/c/sdk/+/200184

Change-Id: I4fe5c90d21de97d0ecceb27fa6efa7d7deb14098
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200864
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2021-05-20 11:36:52 +00:00
Jens Johansen
d8f5e0ad86 [CFE] Update direct-from-parser-ast helper and creator
Make both helper and creator nnbd.

Fixes https://github.com/dart-lang/sdk/issues/45984

Change-Id: Ia7f5feda7c1d3b3a8d0400a34fd32f1407f283b8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200186
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2021-05-20 11:22:52 +00:00
Martin Kustermann
e674aa456f [vm/compiler] Make deopt env mandatory for FGC metadata emitting methods.
Slightly related to https://github.com/dart-lang/sdk/issues/45213

TEST=Existing test suite.

Change-Id: I63572d4fda838984ebb6010ef39c2cf3bd2b2958
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200643
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2021-05-20 11:20:52 +00:00
Alexander Thomas
8a305dd067 [co19] Roll co19 to 26019f5b2efb294eacddfef6ce443083979feff5
2021-05-20 sgrekhov@unipro.ru 1086. @compile-errors replaced by static errors in multitests
2021-05-18 sgrekhov@unipro.ru 1086. @compile-errors replaced by static errors
2021-05-16 irina.arkhipets@gmail.com Issue 1087: Tests for Named Constructors Tear-offs added
2021-05-13 sgrekhov@unipro.ru 1086. @compile-errors replaced by static errors
2021-05-12 sgrekhov@unipro.ru 1086. @compile-errors replaced by static errors (LanguageFeatures/Super-mixins)
2021-05-12 sgrekhov@unipro.ru 1086. compilation_txx tests moved from LibTest/mirrors back to Language/Metadata. They don't use mirrors any longer
2021-05-11 sgrekhov@unipro.ru Fix Process.kill() expecting exit code on Windows
2021-05-11 sgrekhov@unipro.ru 1082. Removed excessive copyrights from Subtyping generated tests
2021-05-11 sgrekhov@unipro.ru 1088. Missing copyrights added
2021-05-11 sgrekhov@unipro.ru 1088. Header comment fixed
2021-05-11 sgrekhov@unipro.ru 1088. Generated Subtyping tests fixed
2021-05-11 sgrekhov@unipro.ru 1082. Header comments changed to documentation-style ones
2021-05-11 irina.arkhipets@gmail.com Issue 1086: Get rid of @compile-error tags in Language/Classes/Getters tests.
2021-05-10 irina.arkhipets@gmail.com Issue 1086: Get rid of @compile-error tags in Language/Classes/Constructors, Language/Classes/Constructors/GenerativeConstructors tests.
2021-05-10 irina.arkhipets@gmail.com Issue 1086: Return incorrect merge changes back.
2021-05-07 irina.arkhipets@gmail.com Issue 1086: Get rid of @compile-error tags in Language/Classes/Constructors/Factories tests.
2021-05-07 irina.arkhipets@gmail.com Merge remote-tracking branch 'remotes/origin/master'
2021-05-07 sgrekhov@unipro.ru 1088. Fix static errors tests with specified line number
2021-05-06 sgrekhov@unipro.ru 1082. Copyright changed to use single-line comments
2021-05-06 irina.arkhipets@gmail.com Issue 1086: Get rid of @compile-error tags in Language/Classes/Abstract_instance_Members, Language/Classes/Class_Member_conflicts, Language/Classes/Constructors/Constunt_Constructors tests.
2021-05-06 sgrekhov@unipro.ru 1083. Timeout reduced, diagnostic improved
2021-05-05 sgrekhov@unipro.ru 1083. Error expectations fixed
2021-05-04 irina.arkhipets@gmail.com Issue 1085: Test corrected: typedef declaration should be imported from the opted-out library here.

Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-mac-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try
Change-Id: I78402828a80ee1803537e9ba6d78bf15165c7df6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200862
Reviewed-by: William Hesse <whesse@google.com>
2021-05-20 10:54:15 +00:00
Ryan Macnak
660e63136c [infra] Update to a clang with libc++.a for Mac ARM64.
Bug: https://github.com/dart-lang/sdk/issues/42773
Change-Id: I24e3e842ffc7b3ac28e3236b1b4ef393762f9c8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193823
Reviewed-by: Alexander Thomas <athom@google.com>
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2021-05-20 10:42:06 +00:00
Tess Strickland
269828ed34 [build] Use an absolute path for the snapshot.
When constructing the command line for creating the kernel service
snapshot, the variable `abs_output` actually contains a relative
path, which means that copy/pasting the generated command line fails
if not within the root build directory. This CL fixes that.

Change-Id: I0d9fcafac489a6bd4771de1d6db1a2aa3623dcf8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200861
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2021-05-20 09:43:30 +00:00
Alexander Thomas
554c34ce27 [co19] Roll co19_2 to 1c2e425f461bfae7de6db7014fc44a58fc72b4a8
2021-05-11 sgrekhov@unipro.ru Fixes 1089. Fix flaky Process.kill tests
2021-05-06 sgrekhov@unipro.ru 1082. Generator for dynamic generated tests fixed
2021-05-06 sgrekhov@unipro.ru 1082. Update copyright and comments in Subtyping generated tests
2021-05-05 sgrekhov@unipro.ru 1082. Language version added to all co19_2 tests
2021-05-05 sgrekhov@unipro.ru 1082. Missing Copyrights added and documentation fixed to use single-line comments
2021-05-05 sgrekhov@unipro.ru 1082. Copyright and documentation  changed to use single-line comments

Change-Id: I47b4af1cde69ea8f1aa9164c8df045f1120550f4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200860
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2021-05-20 09:23:45 +00:00
Alexander Thomas
1cabd7d941 [dartdev] Apply updates from official image examples
Official image docs: https://hub.docker.com/_/dart

Change-Id: I9629c33db812039dad67a082e3a6c6793bad272c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200462
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
2021-05-20 09:17:00 +00:00
Tess Strickland
e6968f6d64 [vm/compiler] Cache entry point in closure in bare instructions mode.
This avoids the extra redirection through the closure function, which
does not need to be loaded otherwise during closure calls in this mode,
and thus removes another runtime dependency on the closure function in
bare instructions mode.

In non-bare mode, CODE_REG is populated with the code object for the
function, so caching wouldn't change the number of loads there.

This does not increase the size of closure objects, as there was
already a free word in them due to object alignment.

TEST=Existing tests.

Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-linux-debug-simarm64c-try,vm-kernel-precomp-linux-debug-simarm_x64-try,vm-kernel-precomp-linux-debug-x64-try,vm-kernel-precomp-linux-debug-x64c-try,vm-kernel-precomp-linux-product-x64-try,vm-kernel-precomp-linux-release-x64-try,vm-kernel-precomp-linux-release-simarm64-try,vm-kernel-precomp-linux-release-simarm-try,vm-kernel-linux-debug-ia32-try,vm-kernel-linux-debug-x64-try,vm-kernel-linux-product-x64-try,vm-kernel-linux-release-simarm64-try,vm-kernel-linux-release-simarm-try,vm-kernel-linux-release-x64-try,vm-kernel-linux-debug-x64c-try
Change-Id: Ida6e0d277919259a8c0e8dcbfaa101379fd22ff1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195920
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Tess Strickland <sstrickl@google.com>
2021-05-20 09:05:40 +00:00
Clement Skau
c3ba9ac204 [lint] Fix il_arm.cc.
TEST=CQ
Change-Id: I94c3ac70e7595ec6191dbba9b3502cefe57a04d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200821
Reviewed-by: Clement Skau <cskau@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
2021-05-20 07:35:50 +00:00
Stephen Adams
7817468526 Redo "[dart2js/js_ast] Escape strings in the printer"
Fix analyzer diagnostics in js_ast.

- remove unused import
- bump SDK requirements to allow Set literal
- remove unused compareTo method

TBR=fishythefish@google.com

Change-Id: Iabf8d9aeea1d6ceeda1bf85ff7e80914c67c9d63
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200780
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-05-20 05:55:37 +00:00
Alexander Markov
b9a0c0dfba Add --delete-tostring-package-uri option to kernel compilers
This change adds toString transformation to gen_kernel and
frontend_server tools in Dart SDK.

The implementation and tests are derived from
pkg/frontend_server/lib/src/to_string_transformer.dart and
https://github.com/flutter/engine/tree/master/flutter_frontend_server/test.

In addition to _KeepToString in dart:ui, toString transformation
now supports @pragma('flutter:keep-to-string') to exclude
certain toString methods from the transformation without depending
on dart:ui.

pkg/frontend_server/lib/src/to_string_transformer.dart is not
cleaned up in this change yet as it is still used by Flutter
engine. Cleanup will be done after Flutter engine is cleaned up,
after it is switched to the implementation of toString transformer
added in this change.

This is also a step towards a unified kernel compiler
(https://github.com/dart-lang/sdk/issues/39126).

TEST=pkg/vm/test/transformations/to_string_transformer_test.dart

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

Change-Id: Icbfd3fa193d54f1fc6b2d7fa0bace82b3704f91f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200525
Reviewed-by: Dan Field <dnfield@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-05-20 00:50:07 +00:00
Nicholas Shahan
37902c8c6d [ddc] Add the prefix '__t$' to the names of types
This is a temporary fix to give debug tools a recognizable string so
they can hide the type variables from the current scope.

The prefix is only applied when the type appears outside of the
top level type table.

This will require a change in dwds to filter variables with names that
begin with this string.

Change-Id: I2942f462280195d81a7de2b710e6b958770d152a
Issue: https://github.com/dart-lang/sdk/issues/45649
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199581
Reviewed-by: Anna Gringauze <annagrin@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2021-05-19 23:52:12 +00:00
Stephen Adams
8564caf29a Revert "[dart2js/js_ast] Escape strings in the printer"
Revert while I fix the cbuild errors.

This reverts commit dc92f126e2.

TBR=fishythefish@google.com

Change-Id: I4e3afa19d62bdeecc344bf1a413a2fd3e3a7aca2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200760
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-05-19 23:51:22 +00:00
Liam Appelbe
677122a516 Make v8_snapshot_profile_writer_test slightly more lenient
Currently the test is just barely failing:
https://dart-ci.appspot.com/log/vm-kernel-precomp-linux-product-x64/dartkp-linux-product-x64/10800/vm/dart_2/v8_snapshot_profile_writer_test

Change-Id: Ifdbfcd946ffb6693203599dd36cea238a68e29b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200700
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2021-05-19 22:42:42 +00:00
Sam Rawlins
cf00cad458 analysis_server: Check for prefer_relative_imports when fixing with new imports
If the `prefer_relative_imports` lint is enabled, then suggest relative
import URIs before absolute ones.

Also bring the relevant code in line with Effective Dart:
* DO capitalize acronyms and abbreviations longer than two letters like words. ("Uri" vs "URI")
* AVOID lines longer than 80 characters. (in doc comments)
* DO separate the first sentence of a doc comment into its own paragraph.
* PREFER starting function or method comments with third-person verbs.

Fixes https://github.com/dart-lang/sdk/issues/32916

Change-Id: I2e235cc84bd93e5593a96456eb9b0c615811e268
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200660
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-05-19 22:07:42 +00:00
Stephen Adams
dc92f126e2 [dart2js/js_ast] Escape strings in the printer
The old way was for the JavaScript string literals to be pre-escaped.
This was cumbersome since each place that creates a JavaScript string
literal needs to make a decision about whether escaping is needed and
the kind of escaping (UTF8 or ASCII).

This change moves the responsibility for escaping into the js_ast printer.
The escaped text exists only while printing, which reduces the heap in a
large modular compile link scenario by 220MB, since the unescaped string
is in memory anyway.

There were three kinds of escaping - ASCII, UTF8, and 'legacy', if not
specified. This has been reduced to ASCII (default) and UTF8, chosen by
a printer option.


Change-Id: Ic57d8fb70a213d3518244f1a152cd33e54103259
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200400
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Joshua Litt <joshualitt@google.com>
2021-05-19 21:32:52 +00:00
Alexander Aprelev
626b48090a [vm/ios/timeline] Enable cpu time reporting on ios.
This was disabled previously due to inconsistent cpu time reading reported by the ios.
It seems to be working correctly now.

TEST=verified flutter application cpu timeline numbers in observatory on physical ios device

Change-Id: Id97a550bbbc96a32b5c2ccf59ca9805ea8cb9ec4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200703
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2021-05-19 20:52:32 +00:00
asiva
6f2eeae1a4 [sdk] - Fix for issue 46050 (Allow spaces in environment constants)
TEST=Manual command line test

Change-Id: I0e6e70093df32b4878b32b91ab101af5ffb8d1a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200661
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Siva Annamalai <asiva@google.com>
2021-05-19 19:09:02 +00:00
pq
1bfa8610d1 add @useResult
See: https://github.com/dart-lang/linter/issues/1888

Change-Id: Idd529c86236a4c2692104dc36cb0a7f0d5dd35aa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200301
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2021-05-19 18:04:32 +00:00
Alexander Markov
b07305d2c3 [kernel] Visit/transform Typedef fields
Previously, certain fields of Typedef kernel AST nodes
were omitted from visitChildren(), transformChildren() and
transformOrRemoveChildren() and were not properly visited.

Also, the following related problems are fixed in this CL:
* parents of VariableDeclaration nodes in Typedef were not properly set;
* verifier didn't account for VariableDeclaration nodes in Typedefs.

TEST=existing tests

Change-Id: I4f9cb694ad9cacc9c20fe66e8a49f73f547ca245
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96964
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-05-19 17:47:02 +00:00
Alexander Markov
f6f2f5044c [kernel] Visit functionType/resultType fields in new invocation nodes
New invocation nodes have explicit functionType/resultType fields
which should be also visited by various visitors and transformers.

Without visiting those fields not all types are processed by
certain transformation (e.g. tree shaker) which causes crashes
during AOT compilation if new invocation nodes are enabled.

TEST=runtime/tests/vm/dart/regress_45966_test.dart (with new
invocation nodes).

Fixes https://github.com/dart-lang/sdk/issues/45966

Change-Id: I61d79650984a353d842b58da082a021ab37ab777
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199365
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-05-19 17:41:42 +00:00
Ben Konyi
db2ff738e6 [ CLI ] Fix dart create not outputting getting started message using
getInstallInstructions

Fixes https://github.com/dart-lang/sdk/issues/45859

Change-Id: I983b678136ca79a01c53aecbd533a13d908b5d9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200287
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-05-19 16:44:02 +00:00
Danny Tuppeny
cc67085501 [analyzer] Add support for LSP textDocument/selectionRanges
This is used to support "expand selection" functionality in editors.

Fixes https://github.com/Dart-Code/Dart-Code/issues/3332.

Change-Id: I27929b152ef618fb8b57c43e6c6f6e21fe0966dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200427
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-05-19 16:34:47 +00:00
Konstantin Shcheglov
a65aa7e0b3 Issue 46064. Support for metadata in aliased GenericFunctionType type / formal parameters.
Bug: https://github.com/dart-lang/sdk/issues/46064
Change-Id: Ibfd8be2df3bc999706fccbaf69554a4d956cc4e0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200564
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-19 16:31:42 +00:00
Devon Carew
b8f4b252ef move pkg/telemetry to using package:lints
Change-Id: I75130cc8d5964ef0f95a672858da8bbce8ffd78c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200520
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2021-05-19 16:26:42 +00:00
Konstantin Shcheglov
37a24ac3fa Build GenericFunctionTypeElement during linking.
Change-Id: Ib0b35a224908364368a32986dc11c784139e80a2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200580
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-19 16:14:42 +00:00
Konstantin Shcheglov
f45ff0fb71 Issue 46031. Support for multiple directories as analyzer cli inputs.
Bug: https://github.com/dart-lang/sdk/issues/46031
Change-Id: I1f09a7460a46bb78dbae2ea750b303d17eaee9c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200482
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-19 15:53:27 +00:00
Konstantin Shcheglov
529f15dbdd Issue 46057. Report an error for using private constructors of generic classes.
Bug: https://github.com/dart-lang/sdk/issues/46057
Change-Id: I6f729bb7b54657545a28495efbdb4e6e5e60e572
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200530
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-19 15:45:32 +00:00
Konstantin Shcheglov
e9b1d45382 Issue 46062. Report TYPE_ALIAS_CANNOT_REFERENCE_ITSELF on the name of the alias.
Bug: https://github.com/dart-lang/sdk/issues/46062
Change-Id: Ib5dfd6fe4008bf6f1f352f5682b85866355cd756
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200527
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-05-19 15:45:21 +00:00
Dmitry Stefantsov
1e3441c049 [cfe] Show errors on generic types in bounds if the feature is off
Closes #45834.

Bug: https://github.com/dart-lang/sdk/issues/45834
Change-Id: I4229379f05be9d77ae2d5a71cf8754a647d49036
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198409
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-05-19 14:30:01 +00:00
Lasse Reichstein Holst Nielsen
28c784d87b Fix gn helper script to create *valid* strings for settings containing backslashes.
The current script stores some environment variable values as GN declarations.
It replaces `"` inside the value with `\"` because it creates a `"`-delimited
string, but it doesn't replace `\` with `\\` as it rightly should to preserve
the meaning of the original string.
That affects **Windows paths**. If your path ends in `\`, the created "string literal"
will end (or rather, not end) with `\"` and not be valid.
Similarly if it contains `\"` originally, it will become `\\"` and end the string
early.

It's easy to have a path ending in something like `C:\something\something\`,
and you can't compile Dart if you have that.

Change-Id: Iaa3cdf0c8113fe2f09e7eb3ac7435bf770d8b478
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200641
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2021-05-19 12:35:16 +00:00
Aske Simon Christensen
99679b51d8 [cfe] New invocation nodes for property access in collection transformer
Change-Id: Ie70706e8b00129d60910a96f8a9704067cd0752f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200425
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
2021-05-19 11:09:16 +00:00
Irina Arkhipets
7c9abd9faa [co19] Constructor Tear Offs tests skipped as not implemented
Change-Id: I27b2ae9b091dbc3649ecf1a6dea8da19f4de5f84
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200431
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2021-05-19 08:19:47 +00:00
Robert Nystrom
606feda047 Delete unused files in test folders.
These files are not tests nor are they used by any tests.

This change was split out from patch 198141 which had to be reverted.

Change-Id: I26ca5931bf9e300e694d69ac7558536c965349ee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200562
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2021-05-19 08:05:05 +00:00
Robert Nystrom
58c692dfaf Fix name of async_star/pause_test2.dart.
Change-Id: I6e3e975a1181628c17ff972397c536b35ded1b2a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200563
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2021-05-19 08:04:35 +00:00
Stephen Adams
5a9bfa1195 [dart2js] Remove metadata collection that was used for reflection
Change-Id: If4953135a84583a12fcf1c4b1f0d03cd1ae51f14
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200321
Reviewed-by: Joshua Litt <joshualitt@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-05-19 03:57:35 +00:00
Alexander Aprelev
95aab5b6e0 [vm/ffi] Use getter for sizeOf instead of static final field.
Static final fields don't get optimized well under jit lightweight isolate configuration: whether "a static final field was initialized"-check can not be optimized out with lightweight isolates.


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

TEST=FfiStruct.FieldLoadStore performance benchmark

Change-Id: Ieb739dd9855ff7774877d7984a918644ec36e1e2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200320
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2021-05-19 03:10:26 +00:00
Stephen Adams
cb23be0b5f [rti] Specialized is List<dynamic> test
Change-Id: I7ded143b8316a5b3f78f8fe358cf7341f42d8ddd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200288
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-05-19 01:12:43 +00:00
Robert Nystrom
d26821e725 "dartfmt" -> "dart format" in issue template.
Change-Id: Ic0b2fdb90b4e5fce54951905df37678b7b8c23dd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200560
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2021-05-19 00:39:43 +00:00
Nate Bosch
1b0c55321c Update to the latest package:async
Change-Id: Ifd5ed7848601ec97ce0d57b77b7ffe0421378d4e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199370
Auto-Submit: Nate Bosch <nbosch@google.com>
Reviewed-by: Gary Roumanis <grouma@google.com>
2021-05-18 23:50:24 +00:00
Stephen Adams
bccd291371 [dart2js] Remove old emitter version of native class information
Change-Id: Ic5b74d8a756596a4681896917bd1e8b2ca97f480
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200381
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-05-18 23:40:23 +00:00
Ryan Macnak
b42260dc34 [vm] Fix CheckForPointers to not ignore ranges of size 1.
TEST=ci
Change-Id: Id25b4ef224cd7c6ecf142b31311f51378366457d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200529
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-05-18 23:28:13 +00:00
Devon Carew
6815d1922a Move off of a use of 'dartfmt'.
Bug: https://github.com/dart-lang/sdk/issues/46046
Change-Id: Idcced5b7c25c9d5414b073f6ecb2abcc7ba62e68
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200300
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2021-05-18 23:09:53 +00:00
Devon Carew
16d173f7d2 [analyzer_cli] switch pkg/analyzer_cli to using package:lints
Change-Id: Ibc9c6edb6f745a6b177ceca133af5c868734b3f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200481
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-05-18 21:45:23 +00:00
Ben Konyi
d7ccc3ca6a Revert "Fix orphaned files in tests/language/ and tests/language_2/."
This reverts commit 1989b7f376.

Reason for revert: Bots are sad, red, and purple

Original change's description:
> Fix orphaned files in tests/language/ and tests/language_2/.
>
> Some of these should be tests but were missing "_test". Others seemed
> to simply be dead code. Some should have been referenced but there were
> mistakes in the imports in other files.
>
> Change-Id: If6f1d9e52a4babbf9883ddd437fc3091179f2ef2
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198141
> Auto-Submit: Bob Nystrom <rnystrom@google.com>
> Commit-Queue: Bob Nystrom <rnystrom@google.com>
> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>

TBR=lrn@google.com,leafp@google.com,rnystrom@google.com

Change-Id: I8d63af684023e99849addf9d1c3f87d6bcfbe89d
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200531
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-05-18 21:28:01 +00:00
Ben Konyi
dd18a07c75 Revert "[vm/dart2js] Fix language/string/overflow_test.dart"
This reverts commit 6ad3aaf57c.

Reason for revert: Causing timeouts on bots (e.g., https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8846893706998473952/+/u/test_results/new_test_failures__logs_)

Original change's description:
> [vm/dart2js] Fix language/string/overflow_test.dart
>
> Changes the test to concatenate strings indefinitely. This way the test
> makes no assumptions about the amount of available memory, and the
> concatenation result always stays alive.
>
> Closes: https://github.com/dart-lang/sdk/issues/46055
>
> Change-Id: I1a0da68b2ab5cfc00cfe834f0666f6f797a69ec4
> Fixed: 46055
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200460
> Commit-Queue: Daco Harkes <dacoharkes@google.com>
> Reviewed-by: Martin Kustermann <kustermann@google.com>

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

Change-Id: I2108723b5f2c746c858cf5d3f9fded09118ce6c5
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200532
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-05-18 21:24:44 +00:00
Ryan Macnak
8aa6e3fbb5 [vm, compiler] Account for compressed Smis in MemoryCopyInstr.
Cf. 8db0a975c1

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/46056
Change-Id: I2e3f14c1ba9d20d79d4985c24fd344d9f645bf7c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200522
Reviewed-by: Liam Appelbe <liama@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-05-18 20:56:23 +00:00
Brian Wilkerson
06638483e1 Improve the highlight range for conflicting_generic_interfaces
Change-Id: I4ec19c1ceba747f5f23f7c95462de323fe76ecf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200240
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-05-18 20:42:33 +00:00
Sam Rawlins
a0f7d56ca5 analyzer: Disable the unnecessary_import check.
Change-Id: Ib50bd79c453c40b18598b6b6aaafe1a134d4f11a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200521
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2021-05-18 19:38:33 +00:00