Daco Harkes
04e4fd2ddf
[infra] setup interop OWNERS file
...
Change-Id: Ibb9c368c6dfd1aeb34a4ac6e146a41f983bbb894
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440463
Reviewed-by: Ivan Inozemtsev <iinozemtsev@google.com >
Commit-Queue: Daco Harkes <dacoharkes@google.com >
2025-07-15 06:19:44 -07:00
Ivan Inozemtsev
e694eb261a
[release] Bump version on main to 3.10
...
Change-Id: I502950fa3cf72958628512634ad0d62ca54f61cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/434804
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Tess Strickland <sstrickl@google.com >
Commit-Queue: Ivan Inozemtsev <iinozemtsev@google.com >
2025-07-14 22:47:12 -07:00
Konstantin Shcheglov
29c908aef7
Elements. Migrate InstanceMemberInferrer to use elements.
...
Change-Id: I596abe285a05fec4f201b95ee0e3315c9d01b34a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440260
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2025-07-14 20:47:59 -07:00
Konstantin Shcheglov
dbe2d19b83
Elements. Keep effective modifiers in ClassElementImpl and MixinElementImpl.
...
Change-Id: I1ad6558219da1fc700341c18ba682eb12e4d04c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440362
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-14 17:12:58 -07:00
Sam Rawlins
236e723be5
Revert the http_rev back to 7d2d87e
...
The recent http roll may have broken an internal test.
This partially reverts https://github.com/dart-lang/sdk/commit/313fd866d1fc4abadfb7e51f1c3a3dd3047e68f4 , https://dart-review.googlesource.com/c/sdk/+/439804
Change-Id: I8d1dc261f8a18f4306559546efe134c078693b74
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440262
Reviewed-by: Devon Carew <devoncarew@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Brian Quinlan <bquinlan@google.com >
2025-07-14 16:02:02 -07:00
Ryan Macnak
9e3998623a
[vm] Don't stop mutators when inserting into a megamorphic cache.
...
TEST=rr --chaos
Change-Id: I4501d10b09691907e88f92aacbd3e4071d05e107
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440065
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2025-07-14 15:07:21 -07:00
DEPS Autoroller
77b90f5fae
Roll Fuchsia SDK from 28.20250701.7.1 to 28.20250714.4.1
...
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-sdk-dart-sdk
Please CC fuchsia-3p-engprod@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Fuchsia SDK: https://bugs.fuchsia.dev/p/fuchsia/issues/list
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Cq-Include-Trybots: luci.dart.try:vm-fuchsia-release-x64-try;luci.dart.try:vm-fuchsia-release-arm64-try
Change-Id: I4166f15358685f7dcdd55408f54c8750114684e1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440300
Commit-Queue: Alexander Aprelev <aam@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2025-07-14 15:02:28 -07:00
Sam Rawlins
cb3017cb9c
Revert two recent changes to no_literal_bool_comparisons:
...
* "[DAS] Broadens the scope of `no_literal_bool_comparisons`"
commit 0541ad3828 .
* "[DAS] Fixes broken cases for "Convert to boolean expression" fix"
commit 04448385dd .
The first commit may have lead to broken customer tests. See
https://github.com/flutter/flutter/pull/172087 .
Change-Id: Iba2c936a32ecf678318fa3aea929787dca046e09
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440261
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2025-07-14 12:57:34 -07:00
Konstantin Shcheglov
954aa12a3e
Elements. Remove ClassOrMixinFragmentImpl.
...
It had very little functionality, and I believe modifiers management
can be improved, in which case it will become more an issue than a
solution.
Change-Id: If6f404d6cb1ca8e6a04ebaa79451d1553b1edfff
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440066
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2025-07-14 12:53:14 -07:00
Fedor Shcheglov
5e057f9895
Change display_string_test to reflect new element model.
...
Delete `getDisplayString()`
Remove most `displayString()` overrides from `ElementImpl's` subclasses.
Add more precise `appendTo()` for most `ElementImpl` subclasses.
Change-Id: Ic955721f0698d2472a6bf56e7955490e8ccf4eaf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439544
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-14 12:49:29 -07:00
Danny Tuppeny
f62f65b495
Revert "[dap] Simplify URI handling in IsolateManager.addBreakpoint" and "[dds/dap] Add/remove breakpoints as required instead of replacing the whole set"
...
This reverts two commits (in separate patch sets in the CL):
- commit 482a7caed7 : [dap] Simplify URI handling in IsolateManager.addBreakpoint
- commit d0a7ef4459 : [dds/dap] Add/remove breakpoints as required instead of replacing the whole set
The first revert is to avoid conflicts while reverting the second, and will be reapplied later (likely after the release branch, since it is not critical to include). The second revert is because this change resulted in leaked Script objects in the VM.
There is an additional change (patch set 3) to fix up the changelog/versions so they don't go backwards.
Change-Id: Id55949e1622d3367ced87c9a307c43881b030cbb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440162
Reviewed-by: Slava Egorov <vegorov@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2025-07-14 11:23:50 -07:00
FMorschel
04448385dd
[DAS] Fixes broken cases for "Convert to boolean expression" fix
...
Fixes: https://github.com/dart-lang/sdk/issues/60614
Change-Id: Ib083c4150cacc4e0e8cf3a2a37916fd5894d116b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440203
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Auto-Submit: Felipe Morschel <git@fmorschel.dev >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2025-07-14 10:30:54 -07:00
Konstantin Shcheglov
5ac84235a5
Elements. Move aliasedType into TypeAliasElementImpl.
...
Change-Id: Ic4882ff7cf0960b09b68f6a062acacd0e9e7c061
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440062
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-14 09:09:50 -07:00
Danny Tuppeny
f8d6ad7e4b
[analysis_server] Don't generate inline values inside function types
...
We shouldn't treat parameter names inside function types as if they are references to other parameters/variables of that name.
Fixes https://github.com/dart-lang/sdk/issues/61099
Change-Id: Iadc97723a87af1ddbbde618d1c9c8e5b51499a6f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440160
Commit-Queue: Keerti Parthasarathy <keertip@google.com >
Reviewed-by: Keerti Parthasarathy <keertip@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2025-07-14 08:16:00 -07:00
Konstantin Shcheglov
5e646575b1
Elements. Remove ExecutableFragmentImpl.returnType/type
...
Change-Id: I191532ba47f7e9698107b9b360d3e6673637fe39
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440200
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2025-07-14 07:49:19 -07:00
Ivan Inozemtsev
453f001249
Allow injecting OperationPerformanceImpl into linkLibraries2
...
Bug: b/430976289
Change-Id: I6be91f7500906c9a7cbba32538ef93042a31f4b2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440222
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Ivan Inozemtsev <iinozemtsev@google.com >
2025-07-14 07:45:25 -07:00
Ömer Ağacan
f5c40b96b1
[deps] Update binaryen
...
New wasm-opt includes changes that will improve dart2wasm binary sizes
without making runtime worse: [1], [2].
[1]: https://github.com/WebAssembly/binaryen/pull/7669
[2]: https://github.com/WebAssembly/binaryen/pull/7670
Change-Id: I751cb1abda6b44126805d308ad84ca694de6e51c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440161
Reviewed-by: Martin Kustermann <kustermann@google.com >
Reviewed-by: Slava Egorov <vegorov@google.com >
2025-07-14 07:00:52 -07:00
Ömer Ağacan
1026367e56
[dart2wasm] Fix switch-case comparisons with dynamic scrutinee
...
Fixes #61098 .
Issue: https://github.com/dart-lang/sdk/issues/61098
Change-Id: Iabd1b3ffde6e4eafbdf98a2bb04f5949b799fcf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439940
Commit-Queue: Ömer Ağacan <omersa@google.com >
Reviewed-by: Slava Egorov <vegorov@google.com >
2025-07-14 05:20:03 -07:00
Konstantin Shcheglov
f82c315bb2
Elements. Set fragment offsets only using InformativeDataApplier, not in FragmentBuilder.
...
This way, there will be only one implementation, which will not get
out of sync with another implementation. This also makes FragmentBuilder
simpler and more cohesive.
Change-Id: I79727f549bba489be324f8ab1fdc61a9b3948cab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440001
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-13 21:37:00 -07:00
Fedor Shcheglov
8cfa901c6e
Rename nameOffset2 to nameOffset
...
Change-Id: I3c8051840122b6046bc89ed48ec329c825607fe5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440180
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-13 20:44:49 -07:00
Konstantin Shcheglov
bb2ba56921
Elements. Don't write 'returnType' and 'type' of ExecutableFragmentImpl.
...
Write types of elements instead.
Change-Id: I753fa813b0c43810c3b014e914ecdf89a9150877
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440061
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-13 20:43:29 -07:00
Konstantin Shcheglov
9e76913938
Elements. Remove VariableFragmentImpl.type
...
Elements, not fragments, have types.
Change-Id: I2d1be6b03661f0a6bb76d61d3c00914d3c1253ee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440040
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2025-07-12 20:15:55 -07:00
Konstantin Shcheglov
53985966cf
Elements. Remove LocalVariableFragment.nameOffset
...
It was deprecated in https://dart-review.googlesource.com/c/sdk/+/440141
Change-Id: Id63129f32baf1efe778d5be20e13b11f5224b69a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440120
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-12 17:07:50 -07:00
Fedor Shcheglov
238cd4c20a
Deprecate constants2, lookUpInheritedMethod2, lookUpInheritedMethod2, classes2, classes2, extensionTypes2, extensions2, functions2, libraryExports2, libraryImports2, libraryImports2, mixins2, topLevelVariables2, typeAliases2, join2, isNonSubtypableClass2, and typeParameters2.
...
Change-Id: Ia4b5504d91548b561e2e2434e711c40b2dc5e495
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440100
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
2025-07-12 16:23:12 -07:00
Brian Quinlan
a2ff602e37
Fix pipe copy test broken by https://dart-review.googlesource.com/c/sdk/+/439823
...
Change-Id: I8146922de576a080d66959a8aba9192b1c4edf7b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439981
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2025-07-11 15:56:27 -07:00
DEPS Autoroller
40bf22be26
Roll gn from 635a71e20e99 to c4748415f12a
...
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/gn-dart-sdk
Please CC dart-ecosystem-gardener@grotations.appspotmail.com ,dart-engprod@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in gn: https://bugs.chromium.org/p/gn/issues/list
To file a bug in Dart SDK: https://github.com/dart-lang/sdk/issues
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Cq-Include-Trybots: luci.dart.try:dart-sdk-linux-try;luci.dart.try:dart-sdk-mac-try;luci.dart.try:dart-sdk-mac-arm64-try;luci.dart.try:dart-sdk-win-try
Change-Id: I4a3d75f7e23510dd57b562dc4009cdca8ee17ae2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439920
Reviewed-by: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Brian Quinlan <bquinlan@google.com >
2025-07-11 13:17:12 -07:00
Alexander Markov
49b8c97e99
[gardening] Remove lib/async/stream_periodic4_test from isolate stress-testing
...
This test makes assumptions about timing, so it is not suitable for
stress-testing.
TEST=ci
Change-Id: I5a74b17888277314187f19552193fe9d83e0f65f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/440000
Auto-Submit: Alexander Markov <alexmarkov@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2025-07-11 12:53:00 -07:00
Keerti Parthasarathy
069e30a495
[Completion] Move the legacy completion handler to using SuggestionCollector.
...
As discussed, test results have changed to
- include all suggestions containing the prefix instead of starting with the prefix
- suggestion kind is now 'prefix' instead of 'library'
Change-Id: Ica5fe62eaf8d4d0741af112810977f122457759f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439345
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Keerti Parthasarathy <keertip@google.com >
2025-07-11 12:24:49 -07:00
Ben Konyi
7ffd9cd056
[ Observatory ] Fix connection URI building logic to handle trailing '/'
...
Fixes https://github.com/dart-lang/sdk/issues/61091
Change-Id: Iddfa3892e4af8e6929d2b792df6226fb1609543a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439805
Reviewed-by: Alexander Aprelev <aam@google.com >
Auto-Submit: Ben Konyi <bkonyi@google.com >
Commit-Queue: Alexander Aprelev <aam@google.com >
2025-07-11 12:22:44 -07:00
FMorschel
0541ad3828
[DAS] Broadens the scope of no_literal_bool_comparisons
...
Fixes: https://github.com/dart-lang/sdk/issues/60614
Change-Id: I949cc9790468ccd14a1354c92945138310b5a659
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/430901
Auto-Submit: Felipe Morschel <git@fmorschel.dev >
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
2025-07-11 12:10:29 -07:00
Konstantin Shcheglov
297cad2c62
Elements. Include FormalParameterFragment.typeParameters and formalParameters into text output.
...
Update _InfoBuilder to include offsets of these fragments.
Change-Id: I4594b2c4f0e37477130c541e3c27a3ca33c96535
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439983
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-11 12:09:51 -07:00
Sam Rawlins
0c3de0815f
DAS plugins: Add docs on testing rules
...
Change-Id: Ia3e771a2f0b8ce01c0a57d3c442492943089a23b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439821
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2025-07-11 10:51:40 -07:00
Konstantin Shcheglov
0d0dfda745
Elements. Stop including VariableFragmentImpl.type into text output.
...
Elements have types, not fragments.
In future CLs I will remove type from VariableFragmentImpl altogether.
Change-Id: I77e2a4ea08f315bb2a81f069eb953d4361ca9e66
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439825
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-11 10:36:14 -07:00
Alexander Markov
33ddf2f56f
[vm] Fix gcc build
...
Fix the following error:
```
../../runtime/bin/main_options.cc:642:8: error: variable ‘run_script’ set but not used [-Werror=unused-but-set-variable]
642 | bool run_script = false;
| ^~~~~~~~~~
```
TEST=ci
Change-Id: I4b554ed604a14e5d8b9043971d9837c82ec840ce
Cq-Include-Trybots: luci.dart.try:vm-gcc-linux-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439980
Auto-Submit: Alexander Markov <alexmarkov@google.com >
Commit-Queue: Alexander Aprelev <aam@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Alexander Markov <alexmarkov@google.com >
2025-07-11 09:41:22 -07:00
Konstantin Shcheglov
6b21b5fbe9
Elements. Build _InfoXyz classes and write() them.
...
...instead of writing data directly into byte sink. This way coupled
implementations of writing and reading are close together.
Change-Id: I78bbba42716af005fb0c96e30602b01b6abcd4f7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439822
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-11 08:07:11 -07:00
Lasse R.H. Nielsen
a706ea8a9b
Remove left-over debugging code that saved files to disk.
...
Change-Id: I02c595aac991f9b463ce2e5917860ac3aa135bcd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439881
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2025-07-11 07:52:11 -07:00
Alexander Aprelev
c47a8b0ada
[vm/shared] Restore fast-path for RunWithStoppedMutators.
...
The fastpath was removed in https://dart.googlesource.com/sdk.git/+/bd0d029792bce2bc4b0b7fa1659d24350266b3d1 because the fastpath didn't take into account isolategroup-shared mutators and holding an active_mutators_monitor_ caused tsan-identified potential circular locking. Removal actually resulted in regressions in flutter reassemble benchmarks.
This PR restores fastpath and instead of holding active_mutators_monitor_ it just keeps track of isolategroup-shared mutators counter, which this PR adds as well.
BUG=https://github.com/flutter/flutter/issues/171722
TEST=ci, manual patch into flutter and run reload
Change-Id: I00e01d930788697c8ae91fda73b09e013e718fad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439802
Commit-Queue: Alexander Aprelev <aam@google.com >
Reviewed-by: Slava Egorov <vegorov@google.com >
2025-07-11 07:23:10 -07:00
Alexander Markov
3e462c1343
[vm,dyn_modules] Support external/native methods in bytecode
...
TEST=ci
Change-Id: I2827c95f7b4d4bfa40239369d3675ef6adba4ab2
Cq-Include-Trybots: luci.dart.try:vm-aot-dyn-linux-debug-x64-try,vm-aot-dyn-linux-product-x64-try,vm-dyn-linux-debug-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439545
Commit-Queue: Alexander Markov <alexmarkov@google.com >
Reviewed-by: Slava Egorov <vegorov@google.com >
2025-07-11 06:31:19 -07:00
Sergey G. Grekhov
e69b7eafca
[co19] Roll co19 to a5d7b62b78dd9278c30a44cb2d22b8870b360a0e
...
2025-07-10 sgrekhov22@gmail.com dart-lang/co19#3180 . Add JSExport tests. Part 3. (dart-lang/co19#3252 )
2025-07-09 sgrekhov22@gmail.com dart-lang/co19#3180 . Add JSExport tests. Part 2. (dart-lang/co19#3251 )
2025-07-08 sgrekhov22@gmail.com dart-lang/co19#3180 . Add additional `NullRejectionException` test (dart-lang/co19#3249 )
2025-07-08 sgrekhov22@gmail.com dart-lang/co19#3180 . Add JSExport tests. Part 1. (dart-lang/co19#3250 )
2025-07-04 sgrekhov22@gmail.com Fixes dart-lang/co19#3245 . Fix int to double conversion in jsNumber_t01.dart (dart-lang/co19#3248 )
2025-07-04 sgrekhov22@gmail.com dart-lang/co19#3180 . Add `NullRejectionException` tests (dart-lang/co19#3247 )
Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try,dart2js-minified-linux-d8-try
Change-Id: I4b44a79d210d19153a464a9eadb86996d2876cf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439840
Reviewed-by: Erik Ernst <eernst@google.com >
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com >
Commit-Queue: Erik Ernst <eernst@google.com >
2025-07-11 05:02:36 -07:00
Brian Quinlan
15a00898af
Add the ability to copy pipes using File.Copy
...
Bug:https://github.com/dart-lang/sdk/issues/60999
Change-Id: I2e20ad5c051b43582483d5275d6d2b65b6f3395a
Tested: unit
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439823
Commit-Queue: Brian Quinlan <bquinlan@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2025-07-10 18:28:01 -07:00
Konstantin Shcheglov
c87169ef1a
Remove InfoDeclarationStore.
...
I believe it is less useful now with workspaces, and adds unnecessary
complexity.
Change-Id: Ifd9b0bbcfd764c42fb0270a2d98ee4f0a6b58015
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439824
Reviewed-by: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-10 14:34:42 -07:00
Konstantin Shcheglov
d6c4707b93
Elements. Remove InterfaceElementImpl.lookUpInheritedMethod()
...
We have lookUpInheritedMethod2() now.
Change-Id: I679d91592873ed5fa9b6350a325ab65befc63379
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439801
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-10 13:18:32 -07:00
Konstantin Shcheglov
279b379ef9
Elements. Replace FragmentImpl.nameOffset with firstTokenOffset.
...
This will free the name `nameOffset` in `FragmentImpl` for
`Fragment.nameOffset2` to be renamed into.
Change-Id: I28f4d3f9eae8d96c00eef38fe9495beb3520878b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439642
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-10 13:15:54 -07:00
Nicholas Shahan
14bb2be360
[ddc] Optimize building type environments at runtime
...
* Avoids retrieving the instance type in more cases. In static class
methods (including constructor tear offs)
`dart_rti.instanceType(this)` was being used as the base of the
environment binding. In these cases the result was the reified type
of the JavaScript function. This worked as long as the base type of
the binding is ignored, but it was not intuitive and had to fall
through all the other cases before settling on that result.
* Avoids parsing a recipe for the `dynamic` every time when we already
can have it available in our type table.
Compiled code examples:
Building the type `A<R, S>` from function type parameters `R` and `S`:
Now:
`T.dynamic()[_bind](R)[_bind](S)[_eval]("A<1,2>")`
Previously:
`dart_rti.instanceType(this)[_bind](R)[_bind](S)[_eval]("A<1,2>")`
Building the type `B<R>` from function type parameters `R`:
Now:
`R[_eval]("B<0>")`
Previously:
`dart_rti.instanceType(this)[_bind](R)[_eval]("B<N+1>")`
where N is the number of type arguments of the enclosing class.
``
Change-Id: I213666edd7c6427f0d42d958541e53a798e8877c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439460
Reviewed-by: Nate Biggs <natebiggs@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2025-07-10 13:08:45 -07:00
Parker Lougheed
7e4fca78a8
[changelog] Clean up recent changelog entries
...
Also add some links to documentation where it makes sense or didn't exist before.
Change-Id: I140ae01907f2f3b905630f66c9e715f9d321067d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439280
Reviewed-by: Ivan Inozemtsev <iinozemtsev@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2025-07-10 13:07:47 -07:00
Devon Carew
313fd866d1
[deps] rev http, i18n, tools, web
...
Revisions updated by `dart tools/rev_sdk_deps.dart`.
http (https://github.com/dart-lang/http/compare/7d2d87e..4209e84 ):
4209e84 2025-07-09 Brian Quinlan [cronet_http] Upgrade to kotlin 1.8.10 (dart-lang/http#1789 )
d2886a0 2025-07-08 dependabot[bot] Bump subosito/flutter-action in the github-actions group (dart-lang/http#1784 )
4097219 2025-07-08 Brian Quinlan Prepare to release 1.5.0-beta (dart-lang/http#1787 )
a4f5a8d 2025-07-08 Luka S feat: support aborting HTTP requests (dart-lang/http#1773 )
i18n (https://github.com/dart-lang/i18n/compare/42c4932..c45e050 ):
c45e0504 2025-07-09 Googler No public description
bdb94c25 2025-07-09 Googler No public description
tools (https://github.com/dart-lang/tools/compare/6282b35..fd7cc89 ):
fd7cc89a 2025-07-09 Nate Biggs Fix wasm dry run event and tests (dart-lang/tools#2128 )
1500539b 2025-07-09 Liam Appelbe [coverage] Expose `filterIgnored` function (dart-lang/tools#2123 )
99634476 2025-07-08 Nate Biggs Add wasm dry run event to unified analytics. (dart-lang/tools#2125 )
web (https://github.com/dart-lang/web/compare/fb8a149..354e229 ):
354e229 2025-07-09 Nikechukwu [interop] Add Support for Typealiases (dart-lang/web#407 )
f0f0914 2025-07-08 Nikechukwu [interop] Add Support for Enums (dart-lang/web#404 )
Change-Id: Ia691d4ca8d20ccb1d7a96598c369dabaf9124850
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439804
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
Auto-Submit: Devon Carew <devoncarew@google.com >
2025-07-10 12:26:41 -07:00
Srujan Gaddam
895413f982
[analyzer] Add special case for bool.fromEnvironment('dart.library.js_interop')
...
https://github.com/dart-lang/sdk/issues/50045
Treats this value as unknown in the meantime while issue
50045 gets resolved to unblock Flutter (much like we did
with js_util).
Change-Id: I3dbf01a2eba1b8b3835a2cdc46bb23c2957dca8b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439820
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Srujan Gaddam <srujzs@google.com >
2025-07-10 10:53:21 -07:00
Nate Biggs
5ce3cd24d2
[ddc] Fix hot reload test runner ternary.
...
Change-Id: Id08d5bac6d03aaa70f91df7af31b313b767d8729
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439680
Commit-Queue: Nicholas Shahan <nshahan@google.com >
Auto-Submit: Nate Biggs <natebiggs@google.com >
Reviewed-by: Nicholas Shahan <nshahan@google.com >
2025-07-10 09:35:47 -07:00
Sam Rawlins
9737e0c853
analyzer: Simplify the sealed supertype check
...
Change-Id: I4481b18f7e910338802e964bbc3c50a338b0ff74
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439800
Auto-Submit: Samuel Rawlins <srawlins@google.com >
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2025-07-10 09:14:17 -07:00
Nate Biggs
b207705bd5
[dart2wasm] Update interop specializers to live in library with specialized member.
...
Change-Id: I072240ff98bb9f571156a101b8cf18dcc8c6877c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439480
Reviewed-by: Srujan Gaddam <srujzs@google.com >
Reviewed-by: Ömer Ağacan <omersa@google.com >
Commit-Queue: Nate Biggs <natebiggs@google.com >
2025-07-10 08:50:56 -07:00