Skip to content

Commit 906a62c

Browse files
alexmarkovCommit Queue
authored andcommitted
Add packages for the new compiler
Issue: #61635 Change-Id: I9bd9f0dc94df5797d6c66aa575bae6599f6f6228 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/453100 Reviewed-by: Stephen Adams <[email protected]> Reviewed-by: Slava Egorov <[email protected]> Commit-Queue: Alexander Markov <[email protected]>
1 parent 7bf561b commit 906a62c

File tree

9 files changed

+81
-0
lines changed

9 files changed

+81
-0
lines changed

pkg/cfg/OWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set noparent
2+
3+
4+
5+
# Global owners.
6+
file:/OWNERS

pkg/cfg/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
This package defines control flow graph (CFG) intermediate representation of
2+
Dart programs and optimization passes performed on CFG.
3+
4+
This package is intended to be used only by Dart compiler(s) in the Dart SDK.
5+
6+
Structure of the package:
7+
```
8+
front_end/ # Translation from kernel AST to CFG.
9+
ir/ # CFG/SSA IR and computation of its properties.
10+
passes/ # Optimization passes.
11+
utils/ # General-purpose utilities.
12+
```
13+
14+
## Status: experimental
15+
16+
**NOTE**: This package is currently experimental and not published or
17+
included in the SDK.
18+
19+
Do not take dependency on this package unless you are prepared for
20+
breaking changes and possibly removal of this code at any point in time.

pkg/cfg/analysis_options.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
# for details. All rights reserved. Use of this source code is governed by a
3+
# BSD-style license that can be found in the LICENSE file.
4+
5+
include: package:lints/core.yaml

pkg/cfg/pubspec.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: cfg
2+
description: CFG/SSA compiler IR and optimization passes.
3+
# This package is not intended for consumption on pub.dev. DO NOT publish.
4+
publish_to: none
5+
6+
environment:
7+
sdk: ^3.7.0
8+
9+
resolution: workspace
10+
11+
# Use 'any' constraints here; we get our versions from the DEPS file.
12+
dependencies:
13+
14+
dev_dependencies:

pkg/native_compiler/OWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set noparent
2+
3+
4+
5+
# Global owners.
6+
file:/OWNERS

pkg/native_compiler/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This package hosts compiler targeting native platforms.
2+
3+
## Status: experimental
4+
5+
**NOTE**: This package is currently experimental and not published or
6+
included in the SDK.
7+
8+
Do not take dependency on this package unless you are prepared for
9+
breaking changes and possibly removal of this code at any point in time.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
# for details. All rights reserved. Use of this source code is governed by a
3+
# BSD-style license that can be found in the LICENSE file.
4+
5+
include: package:lints/core.yaml

pkg/native_compiler/pubspec.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: native_compiler
2+
description: Compiler targeting native platforms
3+
# This package is not intended for consumption on pub.dev. DO NOT publish.
4+
publish_to: none
5+
6+
environment:
7+
sdk: ^3.7.0
8+
9+
resolution: workspace
10+
11+
# Use 'any' constraints here; we get our versions from the DEPS file.
12+
dependencies:
13+
14+
dev_dependencies:

pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ workspace:
2626
- pkg/async_helper
2727
- pkg/bisect_dart
2828
- pkg/build_integration
29+
- pkg/cfg
2930
- pkg/compiler
3031
- pkg/dart2bytecode
3132
- pkg/dart2js_info
@@ -58,6 +59,7 @@ workspace:
5859
- pkg/meta
5960
- pkg/mmap
6061
- pkg/modular_test
62+
- pkg/native_compiler
6163
- pkg/native_stack_traces
6264
- pkg/node_preamble
6365
- pkg/record_use

0 commit comments

Comments
 (0)