Add packages for the new compiler

Issue: https://github.com/dart-lang/sdk/issues/61635
Change-Id: I9bd9f0dc94df5797d6c66aa575bae6599f6f6228
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/453100
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
Alexander Markov
2025-10-03 06:23:41 -07:00
committed by Commit Queue
parent 7bf561b4b5
commit 906a62c70f
9 changed files with 81 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
set noparent
alexmarkov@google.com
sra@google.com
vegorov@google.com
# Global owners.
file:/OWNERS
+20
View File
@@ -0,0 +1,20 @@
This package defines control flow graph (CFG) intermediate representation of
Dart programs and optimization passes performed on CFG.
This package is intended to be used only by Dart compiler(s) in the Dart SDK.
Structure of the package:
```
front_end/ # Translation from kernel AST to CFG.
ir/ # CFG/SSA IR and computation of its properties.
passes/ # Optimization passes.
utils/ # General-purpose utilities.
```
## Status: experimental
**NOTE**: This package is currently experimental and not published or
included in the SDK.
Do not take dependency on this package unless you are prepared for
breaking changes and possibly removal of this code at any point in time.
+5
View File
@@ -0,0 +1,5 @@
# Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
include: package:lints/core.yaml
+14
View File
@@ -0,0 +1,14 @@
name: cfg
description: CFG/SSA compiler IR and optimization passes.
# This package is not intended for consumption on pub.dev. DO NOT publish.
publish_to: none
environment:
sdk: ^3.7.0
resolution: workspace
# Use 'any' constraints here; we get our versions from the DEPS file.
dependencies:
dev_dependencies:
+6
View File
@@ -0,0 +1,6 @@
set noparent
alexmarkov@google.com
sra@google.com
vegorov@google.com
# Global owners.
file:/OWNERS
+9
View File
@@ -0,0 +1,9 @@
This package hosts compiler targeting native platforms.
## Status: experimental
**NOTE**: This package is currently experimental and not published or
included in the SDK.
Do not take dependency on this package unless you are prepared for
breaking changes and possibly removal of this code at any point in time.
@@ -0,0 +1,5 @@
# Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
include: package:lints/core.yaml
+14
View File
@@ -0,0 +1,14 @@
name: native_compiler
description: Compiler targeting native platforms
# This package is not intended for consumption on pub.dev. DO NOT publish.
publish_to: none
environment:
sdk: ^3.7.0
resolution: workspace
# Use 'any' constraints here; we get our versions from the DEPS file.
dependencies:
dev_dependencies:
+2
View File
@@ -26,6 +26,7 @@ workspace:
- pkg/async_helper
- pkg/bisect_dart
- pkg/build_integration
- pkg/cfg
- pkg/compiler
- pkg/dart2bytecode
- pkg/dart2js_info
@@ -58,6 +59,7 @@ workspace:
- pkg/meta
- pkg/mmap
- pkg/modular_test
- pkg/native_compiler
- pkg/native_stack_traces
- pkg/node_preamble
- pkg/record_use