Commit graph

81546 commits

Author SHA1 Message Date
Ryan Macnak 192d909101 [vm] Fix crashes when passing bad paths to --write_retained_reasons_to or --trace_precompiler_to.
TEST=ci
Change-Id: I42465be8cd8a05835d1cc1e5fb23a1fe2d075614
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212263
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-09-02 19:47:45 +00:00
Martin Kustermann 26ef8f6947 [vm] Allow sending closures between isolates of the same isolate group
Closures can be shared if they have no state they capture (i.e. a null
context). Otherwise we copy them by also transitively copying the
parent context chain.

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

TEST=Added tests to vm/dart{,_2}/isolates/fast_object_copy{,2}_test

Change-Id: Ie641b97806edd0c21f0a8d5c514f8e850823e165
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/209110
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2021-09-02 19:45:55 +00:00
Ryan Macnak 714e7e6f9e [vm] Make OOM during interpreted regex non-fatal.
TEST=manually adjusting ulimit
Change-Id: I1c1a9ba583275017cfbd92cd850a8bc33920aac9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211461
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2021-09-02 19:22:16 +00:00
Martin Kustermann eab69f12f8 [vm/concurrency] Fix isolate failure shutdown crash
This particular test was not run in both modes (--enable-isolate-groups
and --no-enable-isolate-groups). So enabling the flag made this test
fail.

It fails because it shutdown the isolate before destroying the
[IsolateSpawnState] - which in return destroys persistant handles which
needs the isolate to be still alive.

TEST=Fixes vm/dart{,_2}/spawn_shutdown_test

Change-Id: Ib06e1149c4066fa993e899bbd3bfdba8a2533b48
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212292
Auto-Submit: Martin Kustermann <kustermann@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2021-09-02 18:47:25 +00:00
Ahmed Ashour 55380c3ed4 Better message for extract_method
Fixes #47084

Change-Id: I7d50f92af8e13d0ad0a2602af4ff8e055f5b04bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212284
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-02 18:35:15 +00:00
Joshua Litt 5ddfa3ffd4 [dart2js] Remove deferred_load hack for main output unit.
Change-Id: I5065063b943006df8dd6655098a691934651151b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208280
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2021-09-02 18:13:15 +00:00
Danny Tuppeny 3aa464af26 [analysis_server] Support renaming files when classes are renamed via LSP
Fixes https://github.com/Dart-Code/Dart-Code/issues/3354.

Change-Id: I2a11a54e0a2c35d525ee08e0849e35c421f6e195
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212291
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-02 18:09:38 +00:00
Konstantin Shcheglov ddc7523958 Issue 45267. Support for --packages in analysis server.
Bug: https://github.com/dart-lang/sdk/issues/45267
Change-Id: Iac7dd7502b6936bab91279ac5db7cdafaa90c580
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212271
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2021-09-02 17:33:15 +00:00
Danny Tuppeny 7ccf06ad63 [analysis_server] Disable spawning pub commands during integration tests
Change-Id: Ie23331a7e136d24dc7e982046b10a7c843ec7349
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212049
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-02 16:55:05 +00:00
Johnni Winther 5952a48119 [cfe] Add language version to pre constructor tearoff tests
Change-Id: I5c340277f30c6290365087b7d5498fed9803fc65
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212288
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-02 15:16:13 +00:00
Vyacheslav Egorov bda70c8489 [vm] Remove support for dart-ext: imports
Per breaking change #45451 we are removing support for dart-ext:
style native extensions from the Dart VM.

This CL removes the associated VM code, tests and samples. It also ports
a single test which used dart-ext: import to use FFI instead.

TEST=ci

Bug: https://github.com/dart-lang/sdk/issues/45451
Change-Id: Iae984bce32baf29a950b5de1323939006a217b94
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212050
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2021-09-02 14:14:35 +00:00
Dmitry Stefantsov 6050b7e06f [cfe] Remove kernel-semantics.tex
Closes #47066.

Bug: https://github.com/dart-lang/sdk/issues/47066
Change-Id: Ia8d3397f33f049776587a4a650f4d249c9eaecb5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212285
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-09-02 13:54:15 +00:00
Martin Kustermann 57de39d07a [vm/concurrency] Enable isolate groups by-default in all modes
Various VM embedders have already explicitly opted into it
AOT mode for a long time.

Now we turn it on by default, also because we'd like to collect
feedback from the field on this - in good time before the next
stable branch will be released.

All of our isolate related tests have already

    // VMOptions=--enable-isolate-groups ...
    // VMOptions=--no-enable-isolate-groups ...

So they will continue to exercise the tests in both modes.

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

TEST=Existing test suite.

Change-Id: I1d031e8a5f2173b48eb32c53b08daccda75dc51d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208649
Reviewed-by: Slava Egorov <vegorov@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2021-09-02 13:45:50 +00:00
Johnni Winther 8c9a469084 [cfe] Only create instantiation+invocation in implicit creation context
Closes #47069
Closes #47071
Closes #47075
Closes #47079

Change-Id: Icb7a45560d736f0fe50525e0c735450a0a3d9ff0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212281
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-02 13:31:16 +00:00
Johnni Winther a6cc772b67 [cfe] Add always_declare_return_types lint
Change-Id: I206a7a8132b5ea79dc019acf5c2e0cd800307bcf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212161
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-02 08:07:23 +00:00
Kevin Moore b9c4b68f23 dart2js_info: drop pre-migrate CI status in readme
Change-Id: Iff6760863c1902c4e6432ff2ef6343cfd15da40e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212021
Auto-Submit: Kevin Moore <kevmoo@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-09-02 02:28:24 +00:00
Konstantin Shcheglov c88fbeec63 Prepare to publish analyzer 2.2.0 and _fe_analyzer_shared 25.0.0
Change-Id: Ice3a628fe70d88901d9db9de64fd9dd9deaf4ebd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212264
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-02 02:15:31 +00:00
Erik Ernst 87ccae9e3f Add tests about covariant parameters and inherited methods
Change-Id: Ibf2e4256605c1c479c6b244c44c1c424b0a2e6ca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208504
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2021-09-01 23:47:47 +00:00
Ben Konyi 3ff52042ea [ package:dds ] Silently handle exceptions raised within RPC request
handlers

Fixes https://github.com/flutter/flutter/issues/84113

Change-Id: I416308845c5c7f9a1bb547b6429f1e9d49393583
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212268
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2021-09-01 23:16:07 +00:00
Ben Konyi 492d061332 [ package:dds ] Add missing RPCs and responses to DDS protocol
Change-Id: I884c62e2be4159bc588ffa1bba3d8695b0cef3f2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208300
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-09-01 22:31:37 +00:00
Brian Wilkerson 26bb5a23c5 Fix assist to convert an expression function body to a block
Converting an expression function body to a block should not include
return if the function has a return type of void.

Change-Id: I456e0b01ac83d6d42502eab18642ae66ca42111f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212038
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-01 22:19:07 +00:00
Konstantin Shcheglov 78fd1fb758 Format analysis_server/ and analyzer_plugin/.
R=brianwilkerson@google.com

Change-Id: Ib3140b9a7e1dbefd7106cc471574d210b359e7bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212221
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-01 21:08:56 +00:00
Ben Konyi e96a0c6bea [ Observatory ] Ignore unsafe_html lint in Observatory source
TEST=N/A

Change-Id: I62107603c15517b48f5b6965b3ad5af559517849
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212140
Reviewed-by: Gary Roumanis <grouma@google.com>
2021-09-01 20:47:33 +00:00
Konstantin Shcheglov e8bac93db0 Format analyzer/.
R=brianwilkerson@google.com

Change-Id: Iaf24626fd7e44084175d2c7f7f4c8ffad27de604
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212220
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-09-01 20:46:19 +00:00
Joshua Litt 663eab5565 [dart2js] Initial support for program split constraints.
Change-Id: I7e227e05d98a27a5d38386777f94ee0f4905dcde
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206322
Commit-Queue: Joshua Litt <joshualitt@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2021-09-01 19:50:56 +00:00
Nate Bosch e4bdbe27cd Update to the latest package:async
Change-Id: Ibb405e2ee766035c2bd26ab5453d9c43d309380a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212035
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Gary Roumanis <grouma@google.com>
Reviewed-by: Gary Roumanis <grouma@google.com>
2021-09-01 17:39:37 +00:00
Nate Bosch 490c52f5d6 Update to the latest package:sse
Change-Id: I6c501490560010e6903cad361d028e04c9fe0e09
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212034
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Gary Roumanis <grouma@google.com>
Reviewed-by: Gary Roumanis <grouma@google.com>
2021-09-01 17:39:06 +00:00
Tamir Duberstein 38bc52cd0e Remove fuchsia.net.NameLookup
This protocol is replaced with fuchsia.net.name.Lookup.

Change-Id: Ib87ba5c4ca243c044d1ef43f401387bad7126b79
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212100
Auto-Submit: Tamir Duberstein <tamird@google.com>
Reviewed-by: Chase Latta <chaselatta@google.com>
Commit-Queue: Chase Latta <chaselatta@google.com>
2021-09-01 17:28:07 +00:00
Alexander Markov 307bc3ef2c [vm] Faster double.toInt() in AOT mode
double.toInt() micro-benchmark on AOT/x64:
Before: BenchToInt(RunTime): 438.67258771929824 us.
After:  BenchToInt(RunTime): 118.8603434955726 us.

double.floor() micro-benchmark on AOT/x64:
Before: BenchFloor(RunTime): 537.2132688691916 us.
After:  BenchFloor(RunTime): 321.2052352657781 us.

TEST=ci
Issue https://github.com/dart-lang/sdk/issues/46876
Issue https://github.com/dart-lang/sdk/issues/46650

Change-Id: Id37c827bceb7f374ae5b91b36871ccf0d9e92441
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211620
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-09-01 16:57:59 +00:00
Johnni Winther 4ff04f641b [kernel] Add always_declare_return_types lint
Change-Id: Icdcc648f42393b28daf648f752e3b4d61f51aa10
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212043
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-09-01 16:50:27 +00:00
Alexander Markov 4bd4de0eb9 [vm/aot] Do not omit build ID if it starts with zero byte
Elf::GenerateBuildId() doesn't have a code to ensure that generated
build ID doesn't start with zero byte, so valid build ID may start with
zero.

In precompiled runtime Image::build_id() should never see "non-final"
build ID and it should not skip build ID if it starts with zero byte.

TEST=ci

Change-Id: I5b993ae3b9ae75eaedc4e84b652b489befca34e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212024
Reviewed-by: Tess Strickland <sstrickl@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-09-01 16:49:57 +00:00
Brian Wilkerson 50eccda770 Add fix-all and bulk-fix notes to the docs for writing quick fixes
Change-Id: I65109d85d28932cb341d5c9668b0173f8126b6a1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211920
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2021-09-01 16:31:20 +00:00
Johnni Winther 3eac19026b [cfe] Add annotate_overrides lint
Change-Id: I90a6d5c7d64ed23acd94b9a8dda58d53da4fe8df
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212041
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-09-01 16:24:16 +00:00
Devon Carew 4a219ea74f update the breaking change policy
Change-Id: I5cfd5156bfca7324de65aeb6806e2436ecc54af0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212027
Reviewed-by: Michael Thomsen <mit@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2021-09-01 15:55:23 +00:00
Lasse R.H. Nielsen 8fd075ef6f Clean up pkg/dartdev.
Various smaller tweaks, mainly around RegExps.

Change-Id: I7a68a563b31213a2942d622b65396b0c7de43318
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210124
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2021-09-01 15:49:26 +00:00
Danny Tuppeny 681243f881 [analysis_server] Support HACK, FIXME, UNDONE types for TODO comments
Fixes https://github.com/Dart-Code/Dart-Code/issues/2364.

Change-Id: I0c66e6443e9a1b0bb3795b6db29de81e43e52b61
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212000
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2021-09-01 15:47:19 +00:00
Johnni Winther fe4224d725 [cfe] Handle nested type variables in RTI need computation
+ add test for dartbug.com/47054

Change-Id: Ibe3f17e5df26f6c41db49525153606cd24139404
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211908
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2021-09-01 15:18:56 +00:00
Johnni Winther 93c531f1a0 [cfe] Move force* flags from TargetFlags to TestTargetFlags
TEST=existing

Change-Id: I3db6f5bdd72ca6303766b6524df19e66b1ba1cc7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212001
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-09-01 13:29:26 +00:00
Johnni Winther 097a511d9f [kernel] Add annotate_overrides lint
Change-Id: I1fffd60eeb14ecd6d5ba30cd584a75ddd4a8acfc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212005
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2021-09-01 11:45:17 +00:00
Johnni Winther d6d5cb8a13 [cfe] Migrate tests (part 1 of ?)
Change-Id: Idce9122f5e6c797d409cf861ba6b24e6b62e8fe7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212006
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-01 11:42:06 +00:00
Jens Johansen 1231e3dad4 [parser] Better error message for >>> when not enabled in some cases (part 2)
https://github.com/dart-lang/sdk/issues/46886

Change-Id: I6195ad921f5c4b9622c735cb919c2d88f957f374
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211820
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2021-09-01 11:12:28 +00:00
Alexander Thomas 588180725b [infra] Workaround dart format hang on Windows
https://github.com/dart-lang/sdk/issues/46947

Change-Id: Ia632fbc73627504f96ef06fa99fff1f343ef6698
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212047
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-09-01 11:09:57 +00:00
Johnni Winther c13b0bbe97 [cfe] Use target constructor uri as file offset for typedef tear off lowering
Previously the tear off lowering procedure used the typedef uri and
offset, but the parameters and body used the target constructor offsets.
This meant that file offset were looked up in the wrong file.

Change-Id: Ie754d09a1475d1b67231676f7d4f24bff7056ff4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212004
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2021-09-01 10:24:07 +00:00
Sam Rawlins ff2e3c2df0 analyzer: Allow explicit type instantiation of function-typed expressions
This allows local variables and other expressions, as long as the
static type is a generic function type, to be explicitly type
instantiated.

* Expressions with a non-generic function type cannot be type
  instantiated.
* Expressions with a type of `Function` cannot be type instantiated.
* Expressions with other non-function types cannot be type instantiated.

This results in doubling-up of errors in a few situations. I think these
are generally rare occurrences, and tricky to prevent double reporting,
so I've left them for now.

Bug: https://github.com/dart-lang/sdk/issues/46020,
Change-Id: Iad212fd95773f39f3202480b3fa71f6a28c7698f
https://github.com/dart-lang/language/issues/1812
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211941
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-09-01 00:03:56 +00:00
Ryan Macnak baa1ebb377 [vm, compiler] Fix incorrect register save in breakpoint stub.
Bug introduced in 1e24fe7d69.

Symbolize stub frames.

TEST=ci
Bug: https://github.com/dart-lang/sdk/issues/47039
Change-Id: Ida3535a01923085cd48a2801ed9b868bfef7418b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212026
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-08-31 23:56:36 +00:00
Alexander Markov 4e660ab787 [gardening] Mark vm/dart_2/regress_45898_test as Slow on dartkp-tsan-*
TEST=ci
Fixes https://github.com/dart-lang/sdk/issues/47062

Change-Id: Ia0a33a10ddc00d80a90ee645325d52f43c3638cc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212028
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2021-08-31 23:44:56 +00:00
Ryan Macnak 5ac413a05f [dartfuzz] Avoid more compile-time errors.
Avoid `throw null`.
Avoid `map[key] += value`.

Split printing globals into separate statements to make reducing failures easier.

TEST=dartfuzz
Change-Id: I8e2172827439a16c42546df23c7669decff53fa9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208481
Reviewed-by: Ben Konyi <bkonyi@google.com>
2021-08-31 23:11:26 +00:00
Alexander Aprelev 8d792c35f4 [vm/enable_isolate_groups] Fix mark_main_isolate_as_system_isolate_test so it works as expected with '--enable-isolate-groups' option.
`--mark-main-isolate-as-system-isolate` option affects all isolates in the main isolate group. The test had to be adjusted so it verifies that isolates in new isolate groups remain non-system in presence of this option.

This is follow-up to https://dart-review.googlesource.com/c/sdk/+/207203

TEST=mark_main_isolate_as_system_isolate_test

Change-Id: I74d94accab2094311a1067ca3853fd4e19d9c67f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212030
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2021-08-31 23:05:56 +00:00
Stephen Adams d660f12460 [dart2js] Modernize some List/Map/Set allocations
As a followup to 'dart format', replace Map and Set constructor calls
with literals and remove inferred type arguments.

Change-Id: Ie337bccb12848c51b3a2ab2202ebed7726f35d86
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211682
Reviewed-by: Mayank Patke <fishythefish@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2021-08-31 22:38:56 +00:00
Janice Collins e4bb4a16d8 Move to unreleased version of dartdoc to avoid crashes on constructor tearoffs.
The version is intended to match up with https://github.com/dart-lang/dartdoc/pull/2768.

Change-Id: Ibe32cda1b6743bc17faf559486cca6f057977408
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/211960
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Janice Collins <jcollins@google.com>
2021-08-31 20:35:30 +00:00