Commit Graph

7 Commits

Author SHA1 Message Date
Devon Carew 3c973fb292 [lints] address diagnostics related to strict_top_level_inference
Change-Id: I228058202855900f0adba73c1ab04d35180a6e5d
Tested: this is an analyzer diagnostic only change
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/414900
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2025-03-17 08:27:57 -07:00
Devon Carew 77c79d678e [pkg/vm] analyze using package:lints
Tested: via static analysis on the CI
Change-Id: Icffb8d52001d5099cca3ab1f153d3f6e5300177d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250770
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2022-07-07 23:22:49 +00:00
Daco Harkes 3156c5629d [cfe/ffi] Implement Finalizable
This CL implements `Finalizable` by means of a CFE transform.
The transform is implemented in the existing FFI transform to avoid the
overhead of traversing the AST an extra time. The FFI transform slows
down ~15-30% on Flutter Gallery. For more info see the design doc.

TEST=`dart pkg/vm/test/transformations/ffi_test.dart`

Design doc: go/dart-vm-finalizable

Bug: https://github.com/dart-lang/sdk/issues/47777

Change-Id: I0bf9dead90a61631b7f215dc19fbaa9e40e63c8d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227501
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2022-02-05 11:54:59 +00:00
Daco Harkes 1ffbebe07a Revert "[cfe/vm] Enable prefer_final lints in pkg/vm"
This reverts commit c2a32fe534.

Reason for revert: Reverting because enabling these lints without doing a cleanup breaks some peoples workflow. We'll discuss which path to take forward, and enable them again later.

Original change's description:
> [cfe/vm] Enable prefer_final lints in pkg/vm
> 
> As discussed by email, this adds the prefer_final_* lints to pkg/vm.
> 
> Adding the lints is a practical step forward, even though we do not enforce them with a presubmit check at this time.
> Next steps including cleaning up lint violations and adding a presubmit check.
> 
> Change-Id: I50c421ad06114b1ae4a5da422b375fd28d7150d6
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118542
> Reviewed-by: Johnni Winther <johnniwinther@google.com>

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

Change-Id: I9dd908a0a594f9c23279ba3f5380382c239f5c2d
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118583
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
2019-09-25 08:23:20 +00:00
Daco Harkes c2a32fe534 [cfe/vm] Enable prefer_final lints in pkg/vm
As discussed by email, this adds the prefer_final_* lints to pkg/vm.

Adding the lints is a practical step forward, even though we do not enforce them with a presubmit check at this time.
Next steps including cleaning up lint violations and adding a presubmit check.

Change-Id: I50c421ad06114b1ae4a5da422b375fd28d7150d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118542
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2019-09-24 13:22:19 +00:00
Devon Carew 770436d477 More options files cleanup.
Change-Id: I12d067c8b3f52fe95026a642d83bb226405b5c45
Reviewed-on: https://dart-review.googlesource.com/c/81723
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-10-26 23:05:44 +00:00
Alexander Markov 58ffdbf5fc [VM] Move kernel service to pkg/vm, populate pkg/vm with necessary files
* kernel-service.dart is moved to pkg/vm/bin and renamed to
  kernel_service.dart

* LICENSE, pubspec.yaml and analysis_options.yaml added to pkg/vm.

* Kernel isolate name is corrected to be independent of URI passed
  in --dfe VM option.

Change-Id: I5b7b860297314e240e557af80913e7ac3e6324ad
Reviewed-on: https://dart-review.googlesource.com/21260
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2017-11-17 17:45:03 +00:00