Skip to content

Commit 1b331d0

Browse files
a-sivaCommit Queue
authored and
Commit Queue
committed
[SDK/VM] - Rename dart_precompiled_runtime to dartaotruntime, ensures we have a uniform name for the executable between the build directories and the SDK directory
TEST=ci Change-Id: I96ed52994e0d955300c18026032e68003504666d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/389760 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Siva Annamalai <[email protected]> Reviewed-by: Alexander Thomas <[email protected]>
1 parent b47128d commit 1b331d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+209
-150
lines changed

BUILD.gn

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ group("run_ffi_unit_tests") {
8686
group("runtime_precompiled") {
8787
import("runtime/runtime_args.gni")
8888
deps = [
89-
"runtime/bin:dart_precompiled_runtime",
89+
"runtime/bin:dartaotruntime",
9090
"runtime/bin:gen_snapshot",
9191
"runtime/bin:gen_snapshot($host_toolchain)",
9292
"runtime/bin:process_test",
@@ -110,7 +110,15 @@ group("create_platform_sdk") {
110110
}
111111

112112
group("dart2js") {
113-
deps = [ "utils/compiler:dart2js" ]
113+
import("runtime/runtime_args.gni")
114+
if (dart_target_arch != "ia32" && dart_target_arch != "x86") {
115+
deps = [
116+
":runtime_precompiled",
117+
"utils/compiler:dart2js_sdk_aot",
118+
]
119+
} else {
120+
deps = [ "utils/compiler:dart2js" ]
121+
}
114122
}
115123

116124
group("dart2wasm_platform") {
@@ -148,7 +156,19 @@ group("dartanalyzer") {
148156
}
149157

150158
group("ddc") {
151-
deps = [ "utils/ddc:dartdevc" ]
159+
import("runtime/runtime_args.gni")
160+
if (dart_target_arch != "ia32" && dart_target_arch != "x86") {
161+
deps = [
162+
":runtime_precompiled",
163+
"utils/bazel:kernel_worker_aot",
164+
"utils/ddc:dartdevc_aot",
165+
]
166+
} else {
167+
deps = [
168+
"utils/bazel:kernel_worker",
169+
"utils/ddc:dartdevc",
170+
]
171+
}
152172
}
153173

154174
group("analysis_server") {
@@ -367,7 +387,7 @@ if (is_fuchsia) {
367387

368388
test_binaries = [
369389
"dart",
370-
"dart_precompiled_runtime",
390+
"dartaotruntime",
371391
"run_vm_tests",
372392
]
373393

benchmarks/NativeCall/native/native_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <string.h>
88

99
// TODO(dartbug.com/40579): This requires static linking to either link
10-
// dart.exe or dart_precompiled_runtime.exe on Windows.
10+
// dart.exe or dartaotruntime.exe on Windows.
1111
// The sample currently fails on Windows in AOT mode.
1212
#include "include/dart_api.h"
1313

docs/Kernel-developer-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Run end-to-end tests using dartk + VM:
2828

2929
Optionally (this is slow) run end-to-end tests using AOT:
3030
```
31-
./tools/build.py dart_precompiled_runtime
31+
./tools/build.py runtime_precompiled
3232
./tools/test.py -cdartkp -rdart_precompiled language co19
3333
```
3434

pkg/dart2wasm/tool/compile_benchmark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ BIN_DIR="$OUT_DIR/$DART_CONFIGURATION"
3535

3636
BINARYEN="$BIN_DIR/wasm-opt"
3737
DART="$BIN_DIR/dart"
38-
DART_AOT_RUNTIME="$BIN_DIR/dart_precompiled_runtime"
38+
DART_AOT_RUNTIME="$BIN_DIR/dartaotruntime"
3939
LIBRARIES_JSON_ARG="--libraries-spec=$SDK_DIR/sdk/lib/libraries.json"
4040

4141
function find_flags {

pkg/dartdev/lib/src/sdk.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class Sdk {
5454
? path.absolute(
5555
sdkPath,
5656
Platform.isWindows
57-
? 'dart_precompiled_runtime_product.exe'
58-
: 'dart_precompiled_runtime_product',
57+
? 'dartaotruntime_product.exe'
58+
: 'dartaotruntime_product',
5959
)
6060
: path.absolute(
6161
sdkPath,

pkg/dev_compiler/test/worker/worker_test.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,19 @@ void main() {
2525
var dartAotRuntime = p.absolute(
2626
sdkPath,
2727
Platform.isWindows
28-
? 'dart_precompiled_runtime_product.exe'
29-
: 'dart_precompiled_runtime_product');
28+
? 'dartaotruntime_product.exe'
29+
: 'dartaotruntime_product');
30+
var snapshotName = _resolvePath('gen/dartdevc_aot_product.dart.snapshot');
3031
if (!File(dartAotRuntime).existsSync()) {
3132
dartAotRuntime = p.absolute(
3233
sdkPath,
3334
Platform.isWindows
34-
? 'dart_precompiled_runtime.exe'
35-
: 'dart_precompiled_runtime');
35+
? 'dartaotruntime_product.exe'
36+
: 'dartaotruntime_product');
37+
snapshotName = _resolvePath('gen/dartdevc_aot.dart.snapshot');
3638
}
3739
final executableArgs = <String>[
38-
_resolvePath('gen/dartdevc_aot.dart.snapshot'),
40+
snapshotName,
3941
'--sound-null-safety',
4042
'--dart-sdk-summary',
4143
_resolvePath('ddc_outline.dill'),

pkg/dynamic_modules/test/runner/util.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ Uri genSnapshotBin =
8686
buildRootUri.resolve(useProduct ? 'gen_snapshot_product' : 'gen_snapshot');
8787
Uri dart2bytecodeSnapshot =
8888
buildRootUri.resolve('gen/dart2bytecode.dart.snapshot');
89-
Uri aotRuntimeBin = buildRootUri.resolve(useProduct
90-
? 'dart_precompiled_runtime_product'
91-
: 'dart_precompiled_runtime');
89+
Uri aotRuntimeBin = buildRootUri
90+
.resolve(useProduct ? 'dartaotruntime_product' : 'dartaotruntime');
9291
Uri vmPlatformDill = buildRootUri.resolve('vm_platform_strong.dill');
9392

9493
// Encodes test results in the format expected by Dart's CI infrastructure.

pkg/front_end/lib/src/linux_and_intel_specific_perf.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int _perfPid = -1;
4141
/// You might also want the dartaotruntime to include debug symbols:
4242
///
4343
/// ```
44-
/// cp out/ReleaseX64/dart_precompiled_runtime_product \
44+
/// cp out/ReleaseX64/dartaotruntime_product \
4545
/// out/ReleaseX64/dart-sdk/bin/dartaotruntime
4646
/// ```
4747
///

pkg/smith/lib/configuration.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class Configuration {
251251
.pathSegments
252252
.lastWhere((e) => e.isNotEmpty);
253253
final executableNoExtension = executableName.split('.').first;
254-
if (executableNoExtension == 'dart_precompiled_runtime') {
254+
if (executableNoExtension == 'dartaotruntime') {
255255
runtime = Runtime.dartPrecompiled;
256256
} else if (executableNoExtension == 'dart') {
257257
runtime = Runtime.vm;

pkg/test_runner/lib/src/build_configurations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ List<String> _selectBuildTargets(Configuration inner) {
8080
final compiler = inner.compiler;
8181
const targetsForCompilers = {
8282
Compiler.dartk: ['runtime'],
83-
Compiler.dartkp: ['runtime', 'dart_precompiled_runtime'],
83+
Compiler.dartkp: ['runtime', 'runtime_precompiled'],
8484
Compiler.appJitk: ['runtime'],
8585
Compiler.fasta: ['create_sdk', 'ddc_stable_test', 'kernel_platform_files'],
8686
Compiler.ddc: ['ddc_stable_test'],

pkg/test_runner/lib/src/compiler_configuration.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ class BytecodeCompilerConfiguration extends CompilerConfiguration {
16011601

16021602
String dartAotRuntime() => _useSdk
16031603
? '${_configuration.buildDirectory}/dart-sdk/bin/dartaotruntime'
1604-
: '${_configuration.buildDirectory}/dart_precompiled_runtime';
1604+
: '${_configuration.buildDirectory}/dartaotruntime';
16051605

16061606
String dart2bytecodeSnapshot() => _useSdk
16071607
? '${_configuration.buildDirectory}/dart-sdk/bin/snapshots/dart2bytecode.dart.snapshot'

pkg/test_runner/lib/src/process_queue.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -646,19 +646,17 @@ class CommandExecutorImpl implements CommandExecutor {
646646
steps.add(() => device.runAdbShellCommand(['rm', '-Rf', deviceTestDir]));
647647
steps.add(() => device.runAdbShellCommand(['mkdir', '-p', deviceTestDir]));
648648
steps.add(() => device.pushCachedData(
649-
'$buildPath/exe.stripped/dart_precompiled_runtime',
650-
'$devicedir/dart_precompiled_runtime'));
649+
'$buildPath/exe.stripped/dartaotruntime', '$devicedir/dartaotruntime'));
651650
steps.add(() => device.pushCachedData(
652-
'$buildPath/dart_precompiled_runtime.sym',
653-
'$devicedir/dart_precompiled_runtime.sym'));
651+
'$buildPath/dartaotruntime.sym', '$devicedir/dartaotruntime.sym'));
654652
steps.add(
655653
() => device.pushCachedData(processTest, '$devicedir/process_test'));
656654
steps.add(() => device.pushCachedData(
657655
abstractSocketTest, '$devicedir/abstract_socket_test'));
658656
steps.add(() => device.runAdbShellCommand([
659657
'chmod',
660658
'777',
661-
'$devicedir/dart_precompiled_runtime $devicedir/process_test $devicedir/abstract_socket_test'
659+
'$devicedir/dartaotruntime $devicedir/process_test $devicedir/abstract_socket_test'
662660
]));
663661

664662
steps.addAll(_pushLibraries(command, device, devicedir, deviceTestDir));
@@ -671,7 +669,7 @@ class CommandExecutorImpl implements CommandExecutor {
671669
steps.add(() => device.runAdbShellCommand([
672670
'export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$deviceTestDir;'
673671
'export TEST_COMPILATION_DIR=$deviceTestDir;'
674-
'$devicedir/dart_precompiled_runtime',
672+
'$devicedir/dartaotruntime',
675673
'--android-log-to-stderr',
676674
...arguments,
677675
], timeout: timeoutDuration));

pkg/test_runner/lib/src/runtime_configuration.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ abstract class RuntimeConfiguration {
118118
// cannot.
119119
dir = dir.replaceAll("SIMARM_X64", "SIMARM");
120120

121-
dartExecutable = '$dir/dart_precompiled_runtime$executableExtension';
121+
dartExecutable = '$dir/dartaotruntime$executableExtension';
122122
}
123123

124124
TestUtils.ensureExists(dartExecutable, _configuration);
@@ -431,7 +431,7 @@ class DartPrecompiledRuntimeConfiguration extends DartVmRuntimeConfiguration {
431431
if (script != null &&
432432
type != 'application/dart-precompiled' &&
433433
type != 'application/dart-bytecode') {
434-
throw "dart_precompiled cannot run files of type '$type'.";
434+
throw "dartaotruntime cannot run files of type '$type'.";
435435
}
436436

437437
var executable = dartPrecompiledBinaryFileName;
@@ -496,7 +496,7 @@ class DartPrecompiledAdbRuntimeConfiguration
496496
var script = artifact?.filename;
497497
var type = artifact?.mimeType;
498498
if (script != null && type != 'application/dart-precompiled') {
499-
throw "dart_precompiled cannot run files of type '$type'.";
499+
throw "dartaotruntime cannot run files of type '$type'.";
500500
}
501501

502502
var processTest = processTestBinaryFileName;

pkg/vm/tool/dart_precompiled_runtime2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ fi
3333
export DART_CONFIGURATION=${DART_CONFIGURATION:-ReleaseX64}
3434
BIN_DIR="$OUT_DIR$DART_CONFIGURATION"
3535

36-
exec "$BIN_DIR"/dart_precompiled_runtime "$@"
36+
exec "$BIN_DIR"/dartaotruntime "$@"

runtime/BUILD.gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ config("dart_product_config") {
5151
}
5252
}
5353

54-
config("dart_precompiled_runtime_config") {
54+
config("dart_aotruntime_config") {
5555
defines = []
5656
defines += [
5757
"DART_PRECOMPILED_RUNTIME",

runtime/bin/BUILD.gn

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -903,15 +903,21 @@ dart_executable("dart") {
903903
}
904904
}
905905

906-
dart_executable("dart_precompiled_runtime") {
906+
# This rule is here to ensure benchmark suites do not break, it can be
907+
# removed once the benchmark suites are updated.
908+
group("dart_precompiled_runtime") {
909+
deps = [ ":dartaotruntime" ]
910+
}
911+
912+
dart_executable("dartaotruntime") {
907913
extra_configs = [
908-
"..:dart_precompiled_runtime_config",
914+
"..:dart_aotruntime_config",
909915
"..:add_empty_macho_section_config",
910916
]
911917
extra_deps = [
912918
":icudtl_cc",
913-
"..:libdart_precompiled_runtime",
914-
"../platform:libdart_platform_precompiled_runtime",
919+
"..:libdart_aotruntime",
920+
"../platform:libdart_platform_aotruntime",
915921
]
916922
if (dart_runtime_mode != "release") {
917923
extra_deps += [ "../observatory:standalone_observatory_archive" ]
@@ -944,15 +950,15 @@ dart_executable("dart_precompiled_runtime") {
944950
}
945951
}
946952

947-
dart_executable("dart_precompiled_runtime_product") {
953+
dart_executable("dartaotruntime_product") {
948954
use_product_mode = true
949955
extra_configs = [
950-
"..:dart_precompiled_runtime_config",
956+
"..:dart_aotruntime_config",
951957
"..:add_empty_macho_section_config",
952958
]
953959
extra_deps = [
954-
"..:libdart_precompiled_runtime_product",
955-
"../platform:libdart_platform_precompiled_runtime_product",
960+
"..:libdart_aotruntime_product",
961+
"../platform:libdart_platform_aotruntime_product",
956962
]
957963
extra_sources = [
958964
"builtin.cc",
@@ -978,17 +984,17 @@ dart_executable("dart_precompiled_runtime_product") {
978984
if (build_analyze_snapshot) {
979985
dart_executable("analyze_snapshot") {
980986
use_product_mode = dart_runtime_mode == "release"
981-
extra_configs = [ "..:dart_precompiled_runtime_config" ]
987+
extra_configs = [ "..:dart_aotruntime_config" ]
982988

983989
if (use_product_mode) {
984990
extra_deps = [
985-
"..:libdart_precompiled_runtime_product",
986-
"../platform:libdart_platform_precompiled_runtime_product",
991+
"..:libdart_aotruntime_product",
992+
"../platform:libdart_platform_aotruntime_product",
987993
]
988994
} else {
989995
extra_deps = [
990-
"..:libdart_precompiled_runtime",
991-
"../platform:libdart_platform_precompiled_runtime",
996+
"..:libdart_aotruntime",
997+
"../platform:libdart_platform_aotruntime",
992998
]
993999
}
9941000

runtime/bin/dart_precompiled_runtime_test_component.cml renamed to runtime/bin/dartaotruntime_test_component.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"//runtime/vm.shard.cml",
88
],
99
program: {
10-
binary: "exe.stripped/dart_precompiled_runtime",
10+
binary: "exe.stripped/dartaotruntime",
1111
runner: "elf_test_runner",
1212
},
1313
capabilities: [

runtime/bin/entrypoints_verification_test.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <string.h>
88

99
// TODO(dartbug.com/40579): This requires static linking to either link
10-
// dart.exe or dart_precompiled_runtime.exe on Windows.
10+
// dart.exe or dartaotruntime.exe on Windows.
1111
// The sample currently fails on Windows in AOT mode.
1212
#include "include/dart_api.h"
1313
#include "include/dart_native_api.h"
@@ -29,12 +29,12 @@
2929
abort(); \
3030
}
3131

32-
static bool is_dart_precompiled_runtime = true;
32+
static bool is_dartaotruntime = true;
3333

3434
// Some invalid accesses are allowed in AOT since we don't retain @pragma
3535
// annotations. Therefore we skip the negative tests in AOT.
3636
#define FAIL(name, result) \
37-
if (!is_dart_precompiled_runtime) { \
37+
if (!is_dartaotruntime) { \
3838
Fail(name, result); \
3939
}
4040

@@ -46,7 +46,7 @@ void Fail(const char* name, Dart_Handle result) {
4646
}
4747

4848
#define FAIL_INVOKE_FIELD(name, result) \
49-
if (!is_dart_precompiled_runtime) { \
49+
if (!is_dartaotruntime) { \
5050
FailInvokeField(name, result); \
5151
}
5252

@@ -94,7 +94,7 @@ static void TestFields(Dart_Handle target) {
9494
}
9595

9696
DART_EXPORT void RunTests() {
97-
is_dart_precompiled_runtime = Dart_IsPrecompiledRuntime();
97+
is_dartaotruntime = Dart_IsPrecompiledRuntime();
9898

9999
Dart_Handle lib = Dart_RootLibrary();
100100

runtime/bin/ffi_test/ffi_test_functions_vmspecific.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <limits>
3535

3636
// TODO(dartbug.com/40579): This requires static linking to either link
37-
// dart.exe or dart_precompiled_runtime.exe on Windows.
37+
// dart.exe or dartaotruntime.exe on Windows.
3838
// The sample currently fails on Windows in AOT mode.
3939
#include "include/dart_api.h"
4040
#include "include/dart_native_api.h"

0 commit comments

Comments
 (0)