Skip to content

Commit ab4f935

Browse files
rmacnak-googleCommit Queue
authored andcommitted
Rename vm_platform_strong.dill to vm_platform.dill.
The name has always been annoying because it did not add strong typing. And now there aren't variants of the VM platform to distinguish. Leave a copy at the old name to not immediately break illegal uses. TEST=ci Cq-Include-Trybots: luci.dart.try:flutter-analyze-try,flutter-frontend-try,flutter-linux-try Change-Id: Ie76fa7f16940aa1ba8d582eb5197f0ae55dc8938 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/429828 Reviewed-by: Johnni Winther <[email protected]> Reviewed-by: Nicholas Shahan <[email protected]> Commit-Queue: Ryan Macnak <[email protected]>
1 parent e0a91d5 commit ab4f935

File tree

72 files changed

+167
-164
lines changed

Some content is hidden

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

72 files changed

+167
-164
lines changed

benchmarks/SDKArtifactSizes/dart/SDKArtifactSizes.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ import 'dart:io';
88

99
const executables = <String>['dart', 'dartaotruntime'];
1010

11-
const libs = <String>[
12-
'vm_platform_strong.dill',
13-
'vm_platform_strong_product.dill',
14-
];
11+
const libs = <String>['vm_platform.dill', 'vm_platform_product.dill'];
1512

1613
const snapshots = <String>[
1714
'analysis_server',

build/gn_dart_compile_exe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def main(argv):
9090
return 1
9191

9292
platform_dill = os.path.join(prebuilt_sdk, "lib", "_internal",
93-
"vm_platform_strong.dill")
93+
"vm_platform.dill")
9494
if not os.path.isfile(platform_dill):
9595
print("Binary not found: " + platform_dill)
9696
return 1

build/rbe/rewrapper_dart.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ def parse_dart(self):
360360
self.extra_paths.add(self.rebase(arg))
361361
self.extra_paths.add(
362362
self.rebase(
363-
os.path.join(self.dart_subdir,
364-
'vm_platform_strong.dill')))
363+
os.path.join(self.dart_subdir, 'vm_platform.dill')))
365364
return self.parse_kernel_service_snapshot()
366365
else:
367366
self.unsupported('dart', arg)
@@ -509,7 +508,7 @@ def parse_compile_platform(self):
509508
if sdk.endswith('libraries.json'):
510509
sdk = os.path.dirname(sdk)
511510
self.extra_paths.add(self.rebase(sdk))
512-
elif len(compile_platform_args) == 2: # vm_outline_strong dill
511+
elif len(compile_platform_args) == 2: # vm_outline dill
513512
arg = self.rebase(arg)
514513
elif len(compile_platform_args) == 3: # platform dill
515514
arg = self.rebase(arg)

pkg/dart2bytecode/lib/dart2bytecode.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import 'options.dart' show BytecodeOptions;
3737

3838
final ArgParser _argParser = ArgParser(allowTrailingOptions: true)
3939
..addOption('platform',
40-
help: 'Path to vm_platform_strong.dill file', defaultsTo: null)
40+
help: 'Path to vm_platform.dill file', defaultsTo: null)
4141
..addOption('packages',
4242
help: 'Path to .dart_tool/package_config.json file', defaultsTo: null)
4343
..addOption('output',
@@ -89,7 +89,7 @@ final ArgParser _argParser = ArgParser(allowTrailingOptions: true)
8989
defaultsTo: Verbosity.defaultValue);
9090

9191
final String _usage = '''
92-
Usage: dart2bytecode --platform vm_platform_strong.dill [--import-dill host_app.dill] [--validate dynamic_interface.yaml] [options] input.dart
92+
Usage: dart2bytecode --platform vm_platform.dill [--import-dill host_app.dill] [--validate dynamic_interface.yaml] [options] input.dart
9393
Compiles Dart sources to Dart bytecode.
9494
9595
Options:

pkg/dart2bytecode/test/bytecode_generator_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ runTestCase(Uri source) async {
6060
Future<Component> compileTestCaseToKernelProgram(Uri sourceUri,
6161
{required Target target}) async {
6262
final platformKernel =
63-
computePlatformBinariesLocation().resolve('vm_platform_strong.dill');
63+
computePlatformBinariesLocation().resolve('vm_platform.dill');
6464
final options = CompilerOptions()
6565
..target = target
6666
..additionalDills = <Uri>[platformKernel]

pkg/dart2native/lib/dart2native.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ final platformDill = path.join(
2929
binDir.parent.path,
3030
'lib',
3131
'_internal',
32-
'vm_platform_strong.dill',
32+
'vm_platform.dill',
3333
);
3434
final productPlatformDill = path.join(
3535
binDir.parent.path,
3636
'lib',
3737
'_internal',
38-
'vm_platform_strong_product.dill',
38+
'vm_platform_product.dill',
3939
);
4040

4141
// Maximum page size across all supported architectures (arm64 macOS has 16K

pkg/dev_compiler/test/hot_reload_suite.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ class D8SuiteRunner extends DdcFeServerSuiteRunner with D8TestRunner {
17931793
class VMSuiteRunner extends HotReloadFeServerSuiteRunner {
17941794
final String vmPlatformDillFromSdkRoot = fe_shared.relativizeUri(
17951795
sdkRoot,
1796-
buildRootUri.resolve('vm_platform_strong.dill'),
1796+
buildRootUri.resolve('vm_platform.dill'),
17971797
fe_shared.isWindows,
17981798
);
17991799
late Uri outputDirectoryUri;

pkg/dynamic_modules/test/runner/util.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Uri dart2bytecodeSnapshot = buildRootUri.resolve(
9999
Uri aotRuntimeBin = buildRootUri.resolve(
100100
useProduct ? 'dartaotruntime_product' : 'dartaotruntime',
101101
);
102-
Uri vmPlatformDill = buildRootUri.resolve('vm_platform_strong.dill');
102+
Uri vmPlatformDill = buildRootUri.resolve('vm_platform.dill');
103103

104104
Uri dart2wasmSnapshot = dartBin.resolve('snapshots/dart2wasm_product.snapshot');
105105
Uri dart2wasmPlatformDill = buildRootUri.resolve('dart2wasm_platform.dill');

pkg/front_end/lib/src/base/processed_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ class ProcessedOptions {
820820
// Infer based on the sdkRoot, but only when `compileSdk` is false,
821821
// otherwise the default intent was to compile the sdk from sources and
822822
// not to load an sdk summary file.
823-
_sdkSummary = root?.resolve("vm_platform_strong.dill");
823+
_sdkSummary = root?.resolve("vm_platform.dill");
824824
}
825825

826826
if (_raw.librariesSpecificationUri != null) {

pkg/front_end/lib/src/compute_platform_binaries_location.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ String? computePlatformDillName(Target target, void Function() onError) {
2828
case 'dart2js_server':
2929
return 'dart2js_server_platform.dill';
3030
case 'vm':
31-
// TODO(johnniwinther): Stop generating 'vm_platform.dill' and rename
32-
// 'vm_platform_strong.dill' to 'vm_platform.dill'.
33-
return "vm_platform_strong.dill";
31+
return 'vm_platform.dill';
3432
case 'none':
35-
return "vm_platform_strong.dill";
33+
return 'vm_platform.dill';
3634
case 'wasm':
3735
return 'dart2wasm_outline.dill';
3836
// Coverage-ignore(suite): Not run.

0 commit comments

Comments
 (0)