Add dart2bytecode snapshot and VM/AOT dynamic modules test configurations

Change-Id: I84f8dbc174dbac5a11ca84e248c7aecb3759aaad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380283
Reviewed-by: Slava Egorov <vegorov@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
Alexander Markov
2024-08-15 15:28:25 +00:00
committed by Commit Queue
parent eda6e99a04
commit 3d8829fad2
12 changed files with 293 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
# Copyright (c) 2024, 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.
import("../../runtime/runtime_args.gni")
import("../aot_snapshot.gni")
group("dart2bytecode") {
public_deps = [ ":dart2bytecode_snapshot" ]
}
aot_snapshot("dart2bytecode_snapshot") {
main_dart = "../../pkg/dart2bytecode/bin/dart2bytecode.dart"
name = "dart2bytecode"
output = "$root_gen_dir/dart2bytecode.dart.snapshot"
# dartaotruntime has dart_product_config applied to it, so it is built in
# product mode in both release and product builds, and is only built in debug
# mode in debug builds. The following line ensures that the dartaotruntime and
# dart2bytecode.dart.snapshot in an SDK build are always compatible with
# each other.
force_product_mode = !dart_debug
}
+19
View File
@@ -0,0 +1,19 @@
# Copyright (c) 2024, 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.
import("../aot_snapshot.gni")
_dart_root = get_path_info("../..", "abspath")
group("dynamic_module_runner") {
public_deps = [ ":dynamic_module_runner_snapshot" ]
}
aot_snapshot("dynamic_module_runner_snapshot") {
main_dart = "../../pkg/dynamic_modules/bin/dynamic_module_runner.dart"
name = "dynamic_module_runner"
gen_kernel_args =
[ "--dynamic-interface=" + rebase_path(
"$_dart_root/utils/dynamic_module_runner/dynamic_interface.yaml") ]
}
@@ -0,0 +1,90 @@
# Copyright (c) 2024, 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.
extendable:
- library: 'dart:*'
- library: 'dart:core'
class: '_Enum'
can-be-overridden:
- library: 'dart:*'
callable:
- library: 'dart:*'
# These private classes and members are used directly by the compiler.
- library: 'dart:core'
class: '_Enum'
member: ''
- library: 'dart:core'
class: '_GrowableList'
- library: 'dart:core'
class: '_GrowableList'
member: '_literal1'
- library: 'dart:core'
class: '_GrowableList'
member: '_literal2'
- library: 'dart:core'
class: '_GrowableList'
member: '_literal3'
- library: 'dart:core'
class: '_GrowableList'
member: '_literal4'
- library: 'dart:core'
class: '_GrowableList'
member: '_literal5'
- library: 'dart:core'
class: '_GrowableList'
member: '_literal6'
- library: 'dart:core'
class: '_GrowableList'
member: '_literal7'
- library: 'dart:core'
class: '_GrowableList'
member: '_literal8'
- library: 'dart:core'
class: '_GrowableList'
member: ''
- library: 'dart:core'
class: '_GrowableList'
member: 'empty'
- library: 'dart:core'
class: '_GrowableList'
member: 'filled'
- library: 'dart:core'
class: '_GrowableList'
member: 'generate'
- library: 'dart:core'
class: '_List'
- library: 'dart:core'
class: '_List'
member: ''
- library: 'dart:core'
class: '_List'
member: 'empty'
- library: 'dart:core'
class: '_List'
member: 'filled'
- library: 'dart:core'
class: '_List'
member: 'generate'
- library: 'dart:collection'
class: '_Map'
- library: 'dart:collection'
class: '_Map'
member: ''
- library: 'dart:collection'
class: '_Set'
- library: 'dart:collection'
class: '_Set'
member: ''
- library: 'dart:async'
class: '_StreamIterator'
- library: 'dart:async'
class: '_StreamIterator'
member: ''
- library: 'dart:async'
class: '_StreamIterator'
member: '_subscription'
- library: 'dart:async'
member: '_asyncStarMoveNextHelper'