Skip to content

Commit 75e6a74

Browse files
a-sivaCommit Queue
authored and
Commit Queue
committed
Revert "[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"
This reverts commit 1b331d0. Reason for revert: golem builds are failing Original change's description: > [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]> Change-Id: I5dc14973f4ee4e577b2c996839d5e497c97fb440 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/393761 Commit-Queue: Siva Annamalai <[email protected]> Bot-Commit: Rubber Stamper <[email protected]> Reviewed-by: Ryan Macnak <[email protected]>
1 parent 1d947ce commit 75e6a74

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

+150
-209
lines changed

BUILD.gn

+4-24
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:dartaotruntime",
89+
"runtime/bin:dart_precompiled_runtime",
9090
"runtime/bin:gen_snapshot",
9191
"runtime/bin:gen_snapshot($host_toolchain)",
9292
"runtime/bin:process_test",
@@ -110,15 +110,7 @@ group("create_platform_sdk") {
110110
}
111111

112112
group("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-
}
113+
deps = [ "utils/compiler:dart2js" ]
122114
}
123115

124116
group("dart2wasm_platform") {
@@ -156,19 +148,7 @@ group("dartanalyzer") {
156148
}
157149

158150
group("ddc") {
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-
}
151+
deps = [ "utils/ddc:dartdevc" ]
172152
}
173153

174154
group("analysis_server") {
@@ -387,7 +367,7 @@ if (is_fuchsia) {
387367

388368
test_binaries = [
389369
"dart",
390-
"dartaotruntime",
370+
"dart_precompiled_runtime",
391371
"run_vm_tests",
392372
]
393373

benchmarks/NativeCall/native/native_functions.c

+1-1
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 dartaotruntime.exe on Windows.
10+
// dart.exe or dart_precompiled_runtime.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

+1-1
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 runtime_precompiled
31+
./tools/build.py dart_precompiled_runtime
3232
./tools/test.py -cdartkp -rdart_precompiled language co19
3333
```
3434

pkg/dart2wasm/tool/compile_benchmark

+1-1
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/dartaotruntime"
38+
DART_AOT_RUNTIME="$BIN_DIR/dart_precompiled_runtime"
3939
LIBRARIES_JSON_ARG="--libraries-spec=$SDK_DIR/sdk/lib/libraries.json"
4040

4141
function find_flags {

pkg/dartdev/lib/src/sdk.dart

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

pkg/dev_compiler/test/worker/worker_test.dart

+5-7
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,17 @@ void main() {
2525
var dartAotRuntime = p.absolute(
2626
sdkPath,
2727
Platform.isWindows
28-
? 'dartaotruntime_product.exe'
29-
: 'dartaotruntime_product');
30-
var snapshotName = _resolvePath('gen/dartdevc_aot_product.dart.snapshot');
28+
? 'dart_precompiled_runtime_product.exe'
29+
: 'dart_precompiled_runtime_product');
3130
if (!File(dartAotRuntime).existsSync()) {
3231
dartAotRuntime = p.absolute(
3332
sdkPath,
3433
Platform.isWindows
35-
? 'dartaotruntime_product.exe'
36-
: 'dartaotruntime_product');
37-
snapshotName = _resolvePath('gen/dartdevc_aot.dart.snapshot');
34+
? 'dart_precompiled_runtime.exe'
35+
: 'dart_precompiled_runtime');
3836
}
3937
final executableArgs = <String>[
40-
snapshotName,
38+
_resolvePath('gen/dartdevc_aot.dart.snapshot'),
4139
'--sound-null-safety',
4240
'--dart-sdk-summary',
4341
_resolvePath('ddc_outline.dill'),

pkg/dynamic_modules/test/runner/util.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ 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
90-
.resolve(useProduct ? 'dartaotruntime_product' : 'dartaotruntime');
89+
Uri aotRuntimeBin = buildRootUri.resolve(useProduct
90+
? 'dart_precompiled_runtime_product'
91+
: 'dart_precompiled_runtime');
9192
Uri vmPlatformDill = buildRootUri.resolve('vm_platform_strong.dill');
9293

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

pkg/front_end/lib/src/linux_and_intel_specific_perf.dart

+1-1
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/dartaotruntime_product \
44+
/// cp out/ReleaseX64/dart_precompiled_runtime_product \
4545
/// out/ReleaseX64/dart-sdk/bin/dartaotruntime
4646
/// ```
4747
///

pkg/smith/lib/configuration.dart

+1-1
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 == 'dartaotruntime') {
254+
if (executableNoExtension == 'dart_precompiled_runtime') {
255255
runtime = Runtime.dartPrecompiled;
256256
} else if (executableNoExtension == 'dart') {
257257
runtime = Runtime.vm;

pkg/test_runner/lib/src/build_configurations.dart

+1-1
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', 'runtime_precompiled'],
83+
Compiler.dartkp: ['runtime', 'dart_precompiled_runtime'],
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

+1-1
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}/dartaotruntime';
1604+
: '${_configuration.buildDirectory}/dart_precompiled_runtime';
16051605

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

pkg/test_runner/lib/src/process_queue.dart

+6-4
Original file line numberDiff line numberDiff line change
@@ -646,17 +646,19 @@ 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/dartaotruntime', '$devicedir/dartaotruntime'));
649+
'$buildPath/exe.stripped/dart_precompiled_runtime',
650+
'$devicedir/dart_precompiled_runtime'));
650651
steps.add(() => device.pushCachedData(
651-
'$buildPath/dartaotruntime.sym', '$devicedir/dartaotruntime.sym'));
652+
'$buildPath/dart_precompiled_runtime.sym',
653+
'$devicedir/dart_precompiled_runtime.sym'));
652654
steps.add(
653655
() => device.pushCachedData(processTest, '$devicedir/process_test'));
654656
steps.add(() => device.pushCachedData(
655657
abstractSocketTest, '$devicedir/abstract_socket_test'));
656658
steps.add(() => device.runAdbShellCommand([
657659
'chmod',
658660
'777',
659-
'$devicedir/dartaotruntime $devicedir/process_test $devicedir/abstract_socket_test'
661+
'$devicedir/dart_precompiled_runtime $devicedir/process_test $devicedir/abstract_socket_test'
660662
]));
661663

662664
steps.addAll(_pushLibraries(command, device, devicedir, deviceTestDir));
@@ -669,7 +671,7 @@ class CommandExecutorImpl implements CommandExecutor {
669671
steps.add(() => device.runAdbShellCommand([
670672
'export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:$deviceTestDir;'
671673
'export TEST_COMPILATION_DIR=$deviceTestDir;'
672-
'$devicedir/dartaotruntime',
674+
'$devicedir/dart_precompiled_runtime',
673675
'--android-log-to-stderr',
674676
...arguments,
675677
], timeout: timeoutDuration));

pkg/test_runner/lib/src/runtime_configuration.dart

+3-3
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/dartaotruntime$executableExtension';
121+
dartExecutable = '$dir/dart_precompiled_runtime$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 "dartaotruntime cannot run files of type '$type'.";
434+
throw "dart_precompiled 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 "dartaotruntime cannot run files of type '$type'.";
499+
throw "dart_precompiled cannot run files of type '$type'.";
500500
}
501501

502502
var processTest = processTestBinaryFileName;

pkg/vm/tool/dart_precompiled_runtime2

+1-1
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"/dartaotruntime "$@"
36+
exec "$BIN_DIR"/dart_precompiled_runtime "$@"

runtime/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ config("dart_product_config") {
5151
}
5252
}
5353

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

runtime/bin/BUILD.gn

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

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") {
906+
dart_executable("dart_precompiled_runtime") {
913907
extra_configs = [
914-
"..:dart_aotruntime_config",
908+
"..:dart_precompiled_runtime_config",
915909
"..:add_empty_macho_section_config",
916910
]
917911
extra_deps = [
918912
":icudtl_cc",
919-
"..:libdart_aotruntime",
920-
"../platform:libdart_platform_aotruntime",
913+
"..:libdart_precompiled_runtime",
914+
"../platform:libdart_platform_precompiled_runtime",
921915
]
922916
if (dart_runtime_mode != "release") {
923917
extra_deps += [ "../observatory:standalone_observatory_archive" ]
@@ -950,15 +944,15 @@ dart_executable("dartaotruntime") {
950944
}
951945
}
952946

953-
dart_executable("dartaotruntime_product") {
947+
dart_executable("dart_precompiled_runtime_product") {
954948
use_product_mode = true
955949
extra_configs = [
956-
"..:dart_aotruntime_config",
950+
"..:dart_precompiled_runtime_config",
957951
"..:add_empty_macho_section_config",
958952
]
959953
extra_deps = [
960-
"..:libdart_aotruntime_product",
961-
"../platform:libdart_platform_aotruntime_product",
954+
"..:libdart_precompiled_runtime_product",
955+
"../platform:libdart_platform_precompiled_runtime_product",
962956
]
963957
extra_sources = [
964958
"builtin.cc",
@@ -984,17 +978,17 @@ dart_executable("dartaotruntime_product") {
984978
if (build_analyze_snapshot) {
985979
dart_executable("analyze_snapshot") {
986980
use_product_mode = dart_runtime_mode == "release"
987-
extra_configs = [ "..:dart_aotruntime_config" ]
981+
extra_configs = [ "..:dart_precompiled_runtime_config" ]
988982

989983
if (use_product_mode) {
990984
extra_deps = [
991-
"..:libdart_aotruntime_product",
992-
"../platform:libdart_platform_aotruntime_product",
985+
"..:libdart_precompiled_runtime_product",
986+
"../platform:libdart_platform_precompiled_runtime_product",
993987
]
994988
} else {
995989
extra_deps = [
996-
"..:libdart_aotruntime",
997-
"../platform:libdart_platform_aotruntime",
990+
"..:libdart_precompiled_runtime",
991+
"../platform:libdart_platform_precompiled_runtime",
998992
]
999993
}
1000994

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

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

runtime/bin/entrypoints_verification_test.cc

+5-5
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 dartaotruntime.exe on Windows.
10+
// dart.exe or dart_precompiled_runtime.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_dartaotruntime = true;
32+
static bool is_dart_precompiled_runtime = 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_dartaotruntime) { \
37+
if (!is_dart_precompiled_runtime) { \
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_dartaotruntime) { \
49+
if (!is_dart_precompiled_runtime) { \
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_dartaotruntime = Dart_IsPrecompiledRuntime();
97+
is_dart_precompiled_runtime = Dart_IsPrecompiledRuntime();
9898

9999
Dart_Handle lib = Dart_RootLibrary();
100100

runtime/bin/ffi_test/ffi_test_functions_vmspecific.cc

+1-1
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 dartaotruntime.exe on Windows.
37+
// dart.exe or dart_precompiled_runtime.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)