Commit graph

98441 commits

Author SHA1 Message Date
Ryan Macnak bd5df6da60 [build] Enable building riscv64 with clang.
Change-Id: Ie09d92a4e23484b7c6d2963bb0d327e443a68e46
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338641
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-11-30 18:09:49 +00:00
Ryan Macnak d229aa0edd [vm, ffi] Extend stack slots to word size for RISC-V.
Clang relies on this, gcc does not.

TEST=ci
Change-Id: Iee14790367f6807abd222f69990640d44e6f1f77
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339081
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-11-30 16:42:28 +00:00
Johnni Winther ad625dfb5d [cfe] Use lazy-and instead of conditional expression for null-check pattern
In response to https://github.com/dart-lang/sdk/issues/54115

Closes #54114

Change-Id: I6d1d29c19173e703a467f43ec09a7de383b4a80b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338881
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2023-11-30 15:54:41 +00:00
David Morgan 74b851667f [CFE] Really fix macros_test.dart for Windows.
R=jensj@google.com

Change-Id: Ied86939d8f6f312b156639305eaab65053d8e90d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338661
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Morgan :) <davidmorgan@google.com>
Auto-Submit: Morgan :) <davidmorgan@google.com>
2023-11-30 13:28:28 +00:00
Aravind 9e2d98a67f doc(runtime): Small Correction on Runtime Doc (2nd attempt)
Closes https://github.com/dart-lang/sdk/pull/54185

GitOrigin-RevId: 905d5fbd959a74c28525aec5ab8efd5b2638a5f3
Change-Id: Ice732d67ca0cd32ac76b4cd27d4830771501c084
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338940
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-11-30 13:25:34 +00:00
Chloe Stefantsova 8caf3980fe [cfe] Avoid false positives in typedef self-dependency reporting
Closes https://github.com/dart-lang/sdk/issues/54186

Change-Id: I15a3cdfffc5d2ad032a8d4280fc2f011ccc6696b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339000
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2023-11-30 10:23:09 +00:00
Vyacheslav Egorov 7c4002abe9 [vm] Check for null in typed data stores
Fixes https://github.com/dart-lang/sdk/issues/54195

TEST=standalone/typed_data

Change-Id: I87c890eba381a46b0b33066485bba3fbc3bf1004
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339180
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-11-30 10:15:19 +00:00
David Morgan 54760c0382 [CFE] Remove enableMacros and forceEnableMacros global bools.
R=johnniwinther@google.com

Change-Id: Ic3f70209809176feff91e501c1d600df9f95d54f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338680
Auto-Submit: Morgan :) <davidmorgan@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2023-11-30 10:02:30 +00:00
Vyacheslav Egorov c260bec877 [vm] Make Dart_DetectNullSafety work for AOT snapshots
R=kustermann@google.com
TEST=manually using internal test

Change-Id: Ic6b2d259b6d1480ac4d5ba543dafe005c1829d3e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339140
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-11-30 09:21:04 +00:00
David Morgan 26107a319a [CFE] Refactor macros setup.
Add `dispose` method to `ProcessedOptions` that does macro executor cleanup; add `dispose` method to MultiMacroExecutor for it to call.

R=asiva@google.com, jakemac@google.com

Change-Id: I90d9af133e84655ec14870400988fdee9adb219e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338440
Reviewed-by: Siva Annamalai <asiva@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Morgan :) <davidmorgan@google.com>
Reviewed-by: Jake Macdonald <jakemac@google.com>
2023-11-30 08:08:11 +00:00
Ilya Yanok 32e46f7189 Revert "[infra] "Bad" commit to test the branch alignment process"
This reverts commit 0b10bfcde9.

Reason for revert: testing the branch alignment process

Original change's description:
> [infra] "Bad" commit to test the branch alignment process
>
> This is an empty commit that is labled "Bad" to test the branch
> alignment process when there are roll blockers, it will be reverted on
> the beta branch.
>
> Change-Id: Id12a64e0c1d0f900f95f3bb1a477c13e141e65c2
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338920
> Commit-Queue: Alexander Thomas <athom@google.com>
> Reviewed-by: Ilya Yanok <yanok@google.com>
> Reviewed-by: William Hesse <whesse@google.com>

Change-Id: I45b99d2b122cc40baa9b0cda44ae2199ab4dba96
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339120
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
2023-11-30 08:03:43 +00:00
Brian Wilkerson 0915f6e053 Remove the tests related to the deprecated completion protocol
I left the mixin structure because Danny and I plan to use the same
structure to start adding LSP-specific test coverage.

Change-Id: I2eefc05c01eadb67f2c95fcaed3e5a963df7d69b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339100
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2023-11-30 05:27:39 +00:00
Konstantin Shcheglov b22025d5c3 Macro. Fix for 'add constructor', 'augment constructor' sequence.
Change-Id: If9a5a07cefc7dcd782db636ada2dfa02d7b26e4f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339044
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2023-11-30 01:56:14 +00:00
Kenzie Schmoll 075b9265f5 Update DevTools rev to 27795d615e1878ccf5f55c4b90d611e2628a8618
Change-Id: I7a2ca1c45df5713686ac74bc654d146c370ab7ff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338948
Reviewed-by: Elliott Brooks <elliottbrooks@google.com>
Commit-Queue: Kenzie Davisson <kenzieschmoll@google.com>
2023-11-30 00:44:57 +00:00
Keerti Parthasarathy 93bd1f7f7a Reland pubspec fix support in dart fix
Change-Id: I3e0a9d36367d17cd02a4d2cac17590c918eed5dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338946
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2023-11-30 00:13:23 +00:00
Sam Rawlins 9de396953f analyzer: Track fixes in YAML files
This may seem to be a silly change, adding these lists only for the
error fix status file, but I claim this is a very pragmatic solution:

* It is important and beneficial to correctly track error fix
  statuses; I was recently confused about these fix statuses because
  the text in the fix status file was a lie.
* When fixes are added for more errors, you cannot forget to update
  the codesWithFixes list because the fix won't apply (and no test
  asserting the fix works would pass).
* Overhauling these FixGenerators to use maps like the others is maybe
  a good change in the long run, but at this point might be
  over-engineering; we only have fixes for 2-3 codes for each file
  type.

Change-Id: Iaa902acf2401f97ff722e222910f5d6fcd00a5ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338800
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
2023-11-29 23:19:54 +00:00
Danny Tuppeny 7f9099e75a [analysis_server] Fix static type on hovers for non-synthetic getters/setters
Fixes https://github.com/Dart-Code/Dart-Code/issues/4863

Change-Id: Ie4272b77e81fcee282e22002a8cc3f58611af969
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338821
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2023-11-29 23:18:09 +00:00
pq 6864496d2b Update EditFormatIfEnabledResult to anticipate multiple options in a contextRoot
I'm not crazy about the re-constitution of `File`s (see the TODO) but I'm not sure this is a yak we want to shave now (especially since this handler is not yet in use).

Larger context: https://github.com/dart-lang/sdk/issues/53876

Change-Id: I4b9814842525ed4440aa39a7d14baa75f526f72a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339043
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2023-11-29 22:16:38 +00:00
Ryan Macnak e8fb1ac89d [vm, compiler] Hoist RebaseIfImprovesAddressing up to ParallelMoveResolver.
Allows FFI to reuse FlowGraphCompiler::EmitMove in contexts where the delta between SP and FP isn't accurately described by StackSize.

TEST=dart2js codesize unchanged
Change-Id: Idf0643af3debfc77564672d6d16491990b87611c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339040
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2023-11-29 22:05:39 +00:00
Mayank Patke 4bf7972e86 [web-fixit] Make generic/mixin language tests minification-agnostic
Change-Id: I3b485346ae4c08a3e09ed907a944d98431c4989d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338945
Commit-Queue: Mayank Patke <fishythefish@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2023-11-29 21:40:21 +00:00
Stephen Adams f67fe44495 [web-fixit] Avoid a few tests in production mode
Fixes:
language/control_flow_collections/await_for_test
Change-Id: I701c5455af4c5910c3cbaec06d1c75d35e87c597
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338648
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2023-11-29 21:28:58 +00:00
Stephen Adams 5a2ef55808 [web-fixit] Don't test covariance checks in production mode
Exit early for dart2jsProductionMode.
Remove multitest markers.

Change-Id: I9ccf1b3495823b8de3965f1c0b177ce4643c84f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338587
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Kallen Tu <kallentu@google.com>
2023-11-29 21:19:49 +00:00
Parker Lougheed c8b18439d4 [analyzer] Resolve constructor comment references in initializer scope
The analyzer currently resolves constructor comment references in the
formal parameter scope which doesn't include field or super
formal parameters, so super parameters referenced in comments
weren't resolved.

To fix this, this CL instead resolves constructor comment references
in the initializer scope which includes all parameters.

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

Bug: https://github.com/dart-lang/sdk/issues/51578
Change-Id: Idb80957b54ee9d57c36d37142188e7c833ce77f7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338741
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Parker Lougheed <parlough@gmail.com>
2023-11-29 20:20:33 +00:00
Alexander Markov 422b66a7e8 [vm/compiler] Relax flow graph checker for environment uses
Conditional constant propagation doesn't update environments and may
also replace redefinition instructions with constants
without updating environment uses of their original definitions.

This causes discrepancy between arguments of a call and its environment.
It is harmless and corresponding check in the flow graph checker can be
relaxed.

TEST=runtime/tests/vm/dart/regress_54128_test.dart
Fixes https://github.com/dart-lang/sdk/issues/54128

Change-Id: I6e68e0525b7f110400435ac071934dd9a02eebd4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338941
Auto-Submit: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-11-29 20:07:37 +00:00
Nate Biggs 1a12bf063a [dart2js] Fix language/closure/minify_closure_variable_collision_test
Was failing to compile because `array` was a List<A> so indexSet on line 32 was invalid.

Change-Id: I555a2c341e0d9dec5e85d92ecc855d073f134694
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339060
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Kallen Tu <kallentu@google.com>
2023-11-29 19:51:42 +00:00
Keerti Parthasarathy a7e402df46 Add more test cases to test pubspec fixes for missing dependencies.
- Use YamlNode to access spans and offsets instead of casting.
- Add logic to merge conflicting edits when removing multiple entries
from dev_dependencies.

Change-Id: I1f20b5a4691c37e9f56293acbaf870a489380b9e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338592
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Keerti Parthasarathy <keertip@google.com>
2023-11-29 19:34:49 +00:00
Parker Lougheed 2c8721550a [analyzer] Add dependency override for linter in analyzer
This allows me to use IntelliJ's built in testing support when working on the analyzer.

Change-Id: Ie7c072b06d0eeaf2be10433604519714fe79a01e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339020
Auto-Submit: Parker Lougheed <parlough@gmail.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2023-11-29 19:33:01 +00:00
Robert Nystrom 9d91257506 Roll a new dart_style into the SDK.
This tells the formatter to parse files at language version 3.3 so that
extension types can be parsed correctly.

Change-Id: I0f937802c38c5542407a33192ad71fcbe7ceec89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339041
Auto-Submit: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2023-11-29 19:26:47 +00:00
Brian Wilkerson f2a10a9326 Fix the timeout on the bots
Change-Id: I4e4c70c68f8a19584362dbad353303c6b414f3d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338645
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2023-11-29 19:24:58 +00:00
Daco Harkes 019efc9c65 [analyzer] Add dart:typed_data to mock sdk
Split off https://dart-review.googlesource.com/c/sdk/+/338620 which
starts testing FFI analyzer logic that uses Typed Data objects.

Change-Id: I65f98a0f0074b9eaedf7dd6fb0dee57532d41d71
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338960
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2023-11-29 18:03:52 +00:00
Daco Harkes 068cab8ef4 [analyzer/ffi] Allow Pointer<Opaque>n in asFunction
TEST=pkg/analyzer/test/src/diagnostics/non_native_function_type_argument_to_pointer_test.dart

Closes: https://github.com/dart-lang/sdk/issues/53946
Change-Id: If08c82411e27fd7d248feca821b38b184be365b3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/337723
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
Auto-Submit: Daco Harkes <dacoharkes@google.com>
2023-11-29 17:56:39 +00:00
Ben Konyi a8ca53ad56 [ Service ] Delete kill_paused_test and kill_running_test
These tests are flaky and don't add much useful test coverage to the
Observatory service test suite. Equivalent, non-flaky versions of these
tests are under the pkg/vm_service test suite.

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

TEST=Removing tests

Change-Id: Iadb5f296387bff687cb06fbdfb3379eba05b9afa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338981
Commit-Queue: Ben Konyi <bkonyi@google.com>
Auto-Submit: Ben Konyi <bkonyi@google.com>
Reviewed-by: Derek Xu <derekx@google.com>
2023-11-29 17:55:49 +00:00
Nate Biggs 40f580ec1c Remove unnecessary print in corelib/uri_base_test.dart.
Change-Id: Ibbcc36c72d40fd466f735ec098eaf1365cf5fb96
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338980
Auto-Submit: Nate Biggs <natebiggs@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2023-11-29 17:37:28 +00:00
Ryan Macnak 4bb3b97996 [vm] Avoid UBSAN warning near memmove.
TEST=ubsan
Bug: https://github.com/dart-lang/sdk/issues/54170
Change-Id: I04baffc9f947834e172394e77d803eb17ce93a7a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338644
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-11-29 17:01:49 +00:00
Ryan Macnak 9efab8cc7b [infra] Upload libc etc along with coredumps.
The locally available libraries will usually be a different versions than the libraries on the bots.

Change-Id: Ic1f954346e2ca7b5563b2a9f20f4c466d1f4f16a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338425
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2023-11-29 17:00:52 +00:00
Alexander Thomas 0b10bfcde9 [infra] "Bad" commit to test the branch alignment process
This is an empty commit that is labled "Bad" to test the branch
alignment process when there are roll blockers, it will be reverted on
the beta branch.

Change-Id: Id12a64e0c1d0f900f95f3bb1a477c13e141e65c2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338920
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Ilya Yanok <yanok@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2023-11-29 16:00:37 +00:00
Vyacheslav Egorov 3ea1820141 [vm] Fix protobuf_aware_treeshaker helper
It was ignoring NNBD mode for the loaded component and
transforming sound NNDB code in the unsound mode.

TEST=manually tested that it fixes internal problem
R=kustermann@google.com

Change-Id: I17986d2e12bf19c12e28032dc042932ffd40470d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338900
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-11-29 14:23:06 +00:00
Paul Berry e0b129d3b0 Ignore TODO in pkg/kernel.
This change prevents `TODO` comments in pkg/kernel from showing up in
Visual Studio Code's "problems" view, which makes it much easier to
see errors, warnings, and lints in that view.

With this change, Visual Studio Code now treats `TODO` comments the
same in `pkg/kernel` as they are treated in `pkg/_fe_analyzer_shared`,
`pkg/front_end`, and `pkg/analyzer`.

Change-Id: Ifeff026b9cf5ef13c8b1a4382a82441175165374
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338589
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2023-11-29 13:54:08 +00:00
Jens Johansen bf9767ec5a [CFE] Fix nested ifs that doesn't make sense
E.g.

```
  final bool foo = (1+1==2) ? true : false;
  if (foo) {
    if (foo) {
      print("always true");
    }
    if (!foo) {
      print("always false");
    }
  }
```

Inside the first if we know `foo` to be true, so there's no reason to do
more if's on it.

Change-Id: I87d0827c47ce0e7277d951c0ec28f19dff09767a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338780
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2023-11-29 12:33:18 +00:00
Chloe Stefantsova ff363b5f15 [cfe] Avoid false positives on extension type depending on itself
Closes https://github.com/dart-lang/sdk/issues/54169
Part of https://github.com/dart-lang/sdk/issues/49731

Change-Id: Ia4a8a2237785b0876461473f98af89b82ccc10eb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338601
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Chloe Stefantsova <cstefantsova@google.com>
2023-11-29 10:05:57 +00:00
Vyacheslav Egorov 08d7e0aab2 [vm] Disable waitFor for 3.3 release
Revert "[vm] Enable waitFor for 3.2 release"

This reverts commit f8086ed78c.

R=kustermann@google.com
TEST=covered by existing tests

Bug: https://github.com/dart-lang/sdk/issues/52121
Change-Id: Ic5c7ad9af8ff142564ce237f868dd39354dfd615
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338761
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Slava Egorov <vegorov@google.com>
2023-11-29 09:29:11 +00:00
Vyacheslav Egorov 6249b7ed34 [vm/compiler] Clean up typed data stores
Implementation of stores and their inlinings had some
stuff left over their since Dart 1:

* No need to insert null-checks (in sound null-safety mode).
* Since Dart 2 there is no need to insert (speculative)
cid checks. Inputs are guaranteed to be a value of a
supported implementation type. Inserting narrow speculative
checks for Smis is actually leads to worse code in JIT.
* There is no need to convert incomming integer values to
smaller representation - the store will take care of it. This was
left over from Dart 1 times when incomming integer could be _Bigint.

TEST=existing tests

Cq-Include-Trybots: luci.dart.try:vm-aot-linux-release-simarm_x64-try,vm-aot-linux-release-arm64-try,vm-aot-linux-release-x64-try,vm-aot-mac-product-arm64-try,vm-aot-linux-product-x64-try,vm-aot-linux-debug-x64c-try,vm-aot-linux-debug-x64-try,vm-aot-linux-debug-simarm_x64-try,vm-aot-linux-debug-simriscv64-try,vm-aot-android-release-arm_x64-try,vm-aot-android-release-arm64c-try
Change-Id: I72cdaaecc524f1dccc63825df4f7b71241ab47a0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338600
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2023-11-29 09:26:14 +00:00
Ian Hickson 86231e2d70 Remove the widget cache experiment.
Bug: https://github.com/flutter/flutter/issues/132157
Change-Id: Ie87ba74b8ed99477cc5032824286adb07f1157d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/319871
Reviewed-by: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2023-11-29 08:47:59 +00:00
Jens Johansen 963068bd4e [CFE] Add offset tests for spreads
Change-Id: Ie0e39ce66820539fe4ae72fdde20b3ccbe46f1b6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338561
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2023-11-29 08:38:03 +00:00
Ömer Sinan Ağacan f67b219f0f [dart2wasm] Return JS string in StackTrace.current
Avoid copying JS string to Dart.

The test co19/LibTest/convert/Latin1Codec_A01_t01 throws a lot of
exceptions. Before this patch it runs in d8 in 4.1s, after it runs in
1.5s.

Change-Id: I1b9bf06876d63e92c93a03cdbf14587e369978ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338400
Commit-Queue: Ömer Ağacan <omersa@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2023-11-29 08:32:08 +00:00
Nate Biggs f773c42087 [dart2js] Add 'org-dartlang-d8-preamble' as possible Uri.base scheme in corelib/uri_base_test
Change-Id: Ibf9b43297c15b80d56d8dbc78b9d69c44eb76793
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338701
Commit-Queue: Nate Biggs <natebiggs@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
2023-11-29 03:29:31 +00:00
Ryan Macnak 739d987c91 [vm, compiler] Add MSAN support for ARM64.
TEST=local
Bug: https://github.com/dart-lang/sdk/issues/52399
Change-Id: I6af1954c70208534e87b6b87dd5cf62aaf595bd3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329582
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
2023-11-28 23:52:49 +00:00
pq 7d64b343c0 get enabled plugin names from the analysis driver
See discussion: https://discord.com/channels/608014603317936148/1171510601655275612/1179140354004492369

Change-Id: I3447f633e810bb3b4942142eeaa4a0e7504bec0f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338646
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2023-11-28 23:51:29 +00:00
Johnni Winther 7c9ee204db [cfe] Report errors on abstract members and field in extension type
Includes a cleanup of the errors reported for duplicate instance field.
Previously, in addition to reporting the duplicate, we would report that
the field cannot be used because it is a duplicate and that the
duplicate field hasn't been initialized.

Closes #53467
Closes #53320

Change-Id: Ifd94223500809f3be36a1345d9d0c409778eed8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/336885
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2023-11-28 23:29:06 +00:00
Konstantin Shcheglov 14402a1e22 Write unique workspaces.
Also fix for Windows.

Change-Id: I22133cebdc57de5c63248f4e547212d6c8ddaaef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338647
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2023-11-28 23:23:21 +00:00