Jens Johansen
2fff7d83e8
[CFE/VM] Make IncrementalCompilerResult classHierarchy, coreTypes non-nullable; always use latest
...
This also fixes a potential leak on missing .accept call where using the
non-latest coreTypes in the VM causes us to hold on to old libraries.
Tested: CI
Change-Id: I3a4a25dab83de0d5113b9f08ec745ac181c24b9b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/411580
Commit-Queue: Jens Johansen <jensj@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Reviewed-by: Nicholas Shahan <nshahan@google.com >
2025-02-26 00:43:19 -08:00
Nicholas Shahan
8968e0e2d6
[ddc] Remove unsound null safety option from tests
...
Change-Id: I1da8a572fc3556b03141a312375fa91bb3a8f358
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/386084
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
Reviewed-by: Nate Biggs <natebiggs@google.com >
2025-01-28 09:24:00 -08:00
Nicholas Shahan
b4d5272d99
[ddc] Move command.dart library
...
From: lib/src/kernel/command.dart
To: lib/src/command/command.dart
This is a step towards organizing the code from shared_command.dart and
eventually deleting it.
Change-Id: I1ca9fcfd3d7d74511957d516c01544f4a68e4e89
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388050
Reviewed-by: Nate Biggs <natebiggs@google.com >
Reviewed-by: Mark Zhou <markzipan@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2024-10-08 00:47:01 +00:00
Nicholas Shahan
807660f323
[ddc] Create new options.dart library
...
This is a step towards organizing the code from shared_command.dart and
eventually deleting it.
- Move `SharedCompilerOptions` and rename to `Options` from
shared_command.dart along with helpers.
Change-Id: Ic9edfb47fc2425a28b1e948d94fad96a2f594108
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388048
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Mark Zhou <markzipan@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Nate Biggs <natebiggs@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2024-10-07 21:21:30 +00:00
Nicholas Shahan
7a21933fda
[ddc] Cleanup unsound module symbols tests
...
Only run these tests with sound null safety. Follow up changes will remove more tests configurations, and null safety mode plumbing for
the DDC infra.
Change-Id: I0b511d778e54da2a8f5140c4a00b36eefb8000ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365540
Reviewed-by: Mark Zhou <markzipan@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2024-05-06 22:19:20 +00:00
Nicholas Shahan
d5d8486c25
[ddc] Remove legacy code from tests
...
Stop running expression evaluation and module symbols tests on legacy
code. These still run with unsound null safety, just on migrated code.
Change-Id: Ifb602c058ebcc3fbd8254e8c2f431f8b18146a64
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/337615
Commit-Queue: Nicholas Shahan <nshahan@google.com >
Reviewed-by: Anna Gringauze <annagrin@google.com >
2023-12-14 00:34:15 +00:00
Nicholas Shahan
d795274248
[ddc] Migrate module symbol tests to null safety
...
Issue: https://github.com/dart-lang/sdk/issues/46617
Change-Id: I168a02faeb2288430f4daa998a294ab6bd970031
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250321
Commit-Queue: Nicholas Shahan <nshahan@google.com >
Reviewed-by: Anna Gringauze <annagrin@google.com >
2022-07-18 21:59:43 +00:00
Nicholas Shahan
427c83345a
[ddc] Enable null safety in module_symbols library
...
Also migrate the library test and the module_symbols_collector library.
Change-Id: Id00ac050e8f36ed7016b6d1d49b10fa4297aaeb6
Issue: https://github.com/dart-lang/sdk/issues/46617
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216760
Reviewed-by: Anna Gringauze <annagrin@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2021-12-10 18:51:30 +00:00
Johnni Winther
87c953bd0c
[cfe] Pass class hierarchy and core types through IncrementalCompilerResult
...
TEST=existing
Change-Id: I78a61147998a630d88997e0cebccb3e815592822
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221088
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Jens Johansen <jensj@google.com >
2021-11-25 11:27:29 +00:00
Johnni Winther
e92e60da78
[cfe] Change computeDelta to return a result object
...
This prepares for returning more that just the component from an
incremental compilation.
TEST=existing
Change-Id: I3ee269083290097f1a92d77d105b607a6a02f1f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221086
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Jens Johansen <jensj@google.com >
2021-11-25 10:15:07 +00:00
Nicholas Shahan
e7faaaf85d
[ddc] Surface compile time errors in tests
...
- Module symbols tests now surface compile time errors from the
code under test.
- Fix errors in the code being tested.
Change-Id: Ica549c710f41ee22ac784fba99f9e12be664ac5f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/217024
Reviewed-by: Mark Zhou <markzipan@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2021-10-19 22:18:33 +00:00
Nicholas Shahan
ea4302d029
[ddc] Add constructor symbol information
...
- Adds tests for various types of constructors.
- Recognize when a constructor is const and mark the class symbol
accordingly.
Change-Id: I9ae7fc2837a6821b196f06a267603fd18c3e5075
Issue: https://github.com/dart-lang/sdk/issues/40273
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208362
Reviewed-by: Anna Gringauze <annagrin@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2021-10-01 22:57:09 +00:00
Ahmed Ashour
f1ded6af56
Remove import dart:core
...
Fixes #47092
TEST=existing
Change-Id: I3c5c0a1ec5e0426642a5dc70aa9a0391a143ed93
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212298
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Commit-Queue: Johnni Winther <johnniwinther@google.com >
2021-09-06 11:57:40 +00:00
Nicholas Shahan
7a2f1adebe
[ddc] Add function symbol information
...
- Collects `FunctionSymbols` for top level functions, getters, setters,
as well as class methods, getters and setters.
- Add test cases.
Change-Id: If26c59e920c3e6e914c7f06e3b725afdf048c4e1
Issue: https://github.com/dart-lang/sdk/issues/40273
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/207100
Reviewed-by: Anna Gringauze <annagrin@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2021-07-29 16:46:45 +00:00
Nicholas Shahan
c4c7ef5e7d
[ddc] Fix debug symbol id for private instance fields
...
There was an error in the test hiding the fact that we were not
collecting the names for private instance fields correctly.
Change-Id: I1af3d3c2cc9afb92844bc8ec657be1599f1d5b8a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/205761
Reviewed-by: Mark Zhou <markzipan@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2021-07-02 15:52:19 +00:00
Nicholas Shahan
a076fc2ad0
[ddc] Add variable symbol information
...
- Collects `VariableSymbols` for global variables and class fields.
- Add test cases.
Change-Id: Id79d60d01f84948c4c7b0bf9e54fbdd232da63da
Issue: https://github.com/dart-lang/sdk/issues/40273
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204086
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Nicholas Shahan <nshahan@google.com >
Commit-Queue: Nicholas Shahan <nshahan@google.com >
2021-06-21 22:15:10 +00:00
Nicholas Shahan
e36fbfd978
[ddc] Add basic symbol information for classes
...
Module symbol information now includes basic details the classes
compiled in the module.
Add tests and refactor to share some of the options for running the
incremental frontend compiler and ddc.
Change-Id: I6d3eb16bd6fb70c4c0af46de93a0f7bf96151c4f
Issue: https://github.com/dart-lang/sdk/issues/40273
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202865
Commit-Queue: Nicholas Shahan <nshahan@google.com >
Reviewed-by: Sigmund Cherem <sigmund@google.com >
Reviewed-by: Anna Gringauze <annagrin@google.com >
2021-06-16 23:48:28 +00:00