Unverified Commit 625ecda0 authored by Martin Kustermann's avatar Martin Kustermann Committed by GitHub

Remove left-overs from causal async stacks. (#71663)

parent 20ca6997
...@@ -180,8 +180,6 @@ class AOTSnapshotter { ...@@ -180,8 +180,6 @@ class AOTSnapshotter {
// Optimization arguments. // Optimization arguments.
genSnapshotArgs.addAll(<String>[ genSnapshotArgs.addAll(<String>[
// Faster async/await // Faster async/await
'--no-causal-async-stacks',
'--lazy-async-stacks',
if (shouldSplitDebugInfo) ...<String>[ if (shouldSplitDebugInfo) ...<String>[
'--dwarf-stack-traces', '--dwarf-stack-traces',
'--save-debugging-info=${_fileSystem.path.join(splitDebugInfo, debugFilename)}' '--save-debugging-info=${_fileSystem.path.join(splitDebugInfo, debugFilename)}'
......
...@@ -241,7 +241,6 @@ class KernelCompiler { ...@@ -241,7 +241,6 @@ class KernelCompiler {
sdkRoot, sdkRoot,
'--target=$targetModel', '--target=$targetModel',
'--no-print-incremental-dependencies', '--no-print-incremental-dependencies',
'-Ddart.developer.causal_async_stacks=${buildMode == BuildMode.debug}',
for (final Object dartDefine in dartDefines) for (final Object dartDefine in dartDefines)
'-D$dartDefine', '-D$dartDefine',
...buildModeOptions(buildMode, dartDefines), ...buildModeOptions(buildMode, dartDefines),
...@@ -660,7 +659,6 @@ class DefaultResidentCompiler implements ResidentCompiler { ...@@ -660,7 +659,6 @@ class DefaultResidentCompiler implements ResidentCompiler {
// in the frontend_server. // in the frontend_server.
// https://github.com/flutter/flutter/issues/59902 // https://github.com/flutter/flutter/issues/59902
'--experimental-emit-debug-metadata', '--experimental-emit-debug-metadata',
'-Ddart.developer.causal_async_stacks=${buildMode == BuildMode.debug}',
for (final Object dartDefine in dartDefines) for (final Object dartDefine in dartDefines)
'-D$dartDefine', '-D$dartDefine',
if (outputPath != null) ...<String>[ if (outputPath != null) ...<String>[
......
...@@ -91,8 +91,6 @@ Future<void> _genSnapshot( ...@@ -91,8 +91,6 @@ Future<void> _genSnapshot(
final List<String> command = <String>[ final List<String> command = <String>[
genSnapshot, genSnapshot,
'--no-causal-async-stacks',
'--lazy-async-stacks',
'--deterministic', '--deterministic',
'--snapshot_kind=app-aot-elf', '--snapshot_kind=app-aot-elf',
'--elf=$elf', '--elf=$elf',
......
...@@ -115,7 +115,6 @@ class FuchsiaKernelCompiler { ...@@ -115,7 +115,6 @@ class FuchsiaKernelCompiler {
'-Ddart.vm.profile=false', '-Ddart.vm.profile=false',
'-Ddart.vm.product=true', '-Ddart.vm.product=true',
], ],
'-Ddart.developer.causal_async_stacks=${buildInfo.isDebug}',
for (final String dartDefine in buildInfo.dartDefines) for (final String dartDefine in buildInfo.dartDefines)
'-D$dartDefine', '-D$dartDefine',
......
...@@ -273,8 +273,6 @@ void main() { ...@@ -273,8 +273,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'main.dill', 'main.dill',
]), ]),
kWhichSysctlCommand, kWhichSysctlCommand,
...@@ -332,8 +330,6 @@ void main() { ...@@ -332,8 +330,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'--dwarf-stack-traces', '--dwarf-stack-traces',
'--save-debugging-info=$debugPath', '--save-debugging-info=$debugPath',
'main.dill', 'main.dill',
...@@ -391,8 +387,6 @@ void main() { ...@@ -391,8 +387,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'--obfuscate', '--obfuscate',
'main.dill', 'main.dill',
]), ]),
...@@ -449,8 +443,6 @@ void main() { ...@@ -449,8 +443,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'main.dill', 'main.dill',
]), ]),
kWhichSysctlCommand, kWhichSysctlCommand,
...@@ -503,8 +495,6 @@ void main() { ...@@ -503,8 +495,6 @@ void main() {
'--snapshot_kind=app-aot-assembly', '--snapshot_kind=app-aot-assembly',
'--assembly=${fileSystem.path.join(outputPath, 'snapshot_assembly.S')}', '--assembly=${fileSystem.path.join(outputPath, 'snapshot_assembly.S')}',
'--strip', '--strip',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'main.dill', 'main.dill',
]), ]),
kWhichSysctlCommand, kWhichSysctlCommand,
...@@ -557,8 +547,6 @@ void main() { ...@@ -557,8 +547,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'main.dill', 'main.dill',
] ]
)); ));
...@@ -589,8 +577,6 @@ void main() { ...@@ -589,8 +577,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'--dwarf-stack-traces', '--dwarf-stack-traces',
'--save-debugging-info=$debugPath', '--save-debugging-info=$debugPath',
'main.dill', 'main.dill',
...@@ -622,8 +608,6 @@ void main() { ...@@ -622,8 +608,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'--obfuscate', '--obfuscate',
'main.dill', 'main.dill',
] ]
...@@ -654,8 +638,6 @@ void main() { ...@@ -654,8 +638,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'main.dill', 'main.dill',
] ]
)); ));
...@@ -683,8 +665,6 @@ void main() { ...@@ -683,8 +665,6 @@ void main() {
'--snapshot_kind=app-aot-elf', '--snapshot_kind=app-aot-elf',
'--elf=build/foo/app.so', '--elf=build/foo/app.so',
'--strip', '--strip',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'main.dill', 'main.dill',
] ]
)); ));
......
...@@ -191,8 +191,6 @@ void main() { ...@@ -191,8 +191,6 @@ void main() {
'--snapshot_kind=app-aot-elf', '--snapshot_kind=app-aot-elf',
'--elf=${environment.buildDir.childDirectory('arm64-v8a').childFile('app.so').path}', '--elf=${environment.buildDir.childDirectory('arm64-v8a').childFile('app.so').path}',
'--strip', '--strip',
'--no-causal-async-stacks',
'--lazy-async-stacks',
environment.buildDir.childFile('app.dill').path, environment.buildDir.childFile('app.dill').path,
], ],
)); ));
...@@ -235,8 +233,6 @@ void main() { ...@@ -235,8 +233,6 @@ void main() {
'--snapshot_kind=app-aot-elf', '--snapshot_kind=app-aot-elf',
'--elf=${environment.buildDir.childDirectory('arm64-v8a').childFile('app.so').path}', '--elf=${environment.buildDir.childDirectory('arm64-v8a').childFile('app.so').path}',
'--strip', '--strip',
'--no-causal-async-stacks',
'--lazy-async-stacks',
environment.buildDir.childFile('app.dill').path, environment.buildDir.childFile('app.dill').path,
], ],
)); ));
...@@ -282,8 +278,6 @@ void main() { ...@@ -282,8 +278,6 @@ void main() {
'--snapshot_kind=app-aot-elf', '--snapshot_kind=app-aot-elf',
'--elf=${environment.buildDir.childDirectory('arm64-v8a').childFile('app.so').path}', '--elf=${environment.buildDir.childDirectory('arm64-v8a').childFile('app.so').path}',
'--strip', '--strip',
'--no-causal-async-stacks',
'--lazy-async-stacks',
environment.buildDir.childFile('app.dill').path environment.buildDir.childFile('app.dill').path
], ],
)); ));
......
...@@ -89,7 +89,6 @@ void main() { ...@@ -89,7 +89,6 @@ void main() {
) + '/', ) + '/',
'--target=flutter', '--target=flutter',
'--no-print-incremental-dependencies', '--no-print-incremental-dependencies',
'-Ddart.developer.causal_async_stacks=false',
...buildModeOptions(BuildMode.profile, <String>[]), ...buildModeOptions(BuildMode.profile, <String>[]),
'--aot', '--aot',
'--tfa', '--tfa',
...@@ -126,7 +125,6 @@ void main() { ...@@ -126,7 +125,6 @@ void main() {
) + '/', ) + '/',
'--target=flutter', '--target=flutter',
'--no-print-incremental-dependencies', '--no-print-incremental-dependencies',
'-Ddart.developer.causal_async_stacks=false',
...buildModeOptions(BuildMode.profile, <String>[]), ...buildModeOptions(BuildMode.profile, <String>[]),
'--aot', '--aot',
'--tfa', '--tfa',
...@@ -163,7 +161,6 @@ void main() { ...@@ -163,7 +161,6 @@ void main() {
) + '/', ) + '/',
'--target=flutter', '--target=flutter',
'--no-print-incremental-dependencies', '--no-print-incremental-dependencies',
'-Ddart.developer.causal_async_stacks=false',
...buildModeOptions(BuildMode.profile, <String>[]), ...buildModeOptions(BuildMode.profile, <String>[]),
'--aot', '--aot',
'--tfa', '--tfa',
...@@ -201,7 +198,6 @@ void main() { ...@@ -201,7 +198,6 @@ void main() {
) + '/', ) + '/',
'--target=flutter', '--target=flutter',
'--no-print-incremental-dependencies', '--no-print-incremental-dependencies',
'-Ddart.developer.causal_async_stacks=false',
...buildModeOptions(BuildMode.profile, <String>[]), ...buildModeOptions(BuildMode.profile, <String>[]),
'--aot', '--aot',
'--tfa', '--tfa',
...@@ -241,7 +237,6 @@ void main() { ...@@ -241,7 +237,6 @@ void main() {
) + '/', ) + '/',
'--target=flutter', '--target=flutter',
'--no-print-incremental-dependencies', '--no-print-incremental-dependencies',
'-Ddart.developer.causal_async_stacks=true',
...buildModeOptions(BuildMode.debug, <String>[]), ...buildModeOptions(BuildMode.debug, <String>[]),
'--no-link-platform', '--no-link-platform',
'--packages', '--packages',
...@@ -279,7 +274,6 @@ void main() { ...@@ -279,7 +274,6 @@ void main() {
) + '/', ) + '/',
'--target=flutter', '--target=flutter',
'--no-print-incremental-dependencies', '--no-print-incremental-dependencies',
'-Ddart.developer.causal_async_stacks=true',
...buildModeOptions(BuildMode.debug, <String>[]), ...buildModeOptions(BuildMode.debug, <String>[]),
'--packages', '--packages',
'/.dart_tool/package_config.json', '/.dart_tool/package_config.json',
...@@ -329,7 +323,6 @@ void main() { ...@@ -329,7 +323,6 @@ void main() {
) + '/', ) + '/',
'--target=flutter', '--target=flutter',
'--no-print-incremental-dependencies', '--no-print-incremental-dependencies',
'-Ddart.developer.causal_async_stacks=true',
...buildModeOptions(BuildMode.debug, <String>[]), ...buildModeOptions(BuildMode.debug, <String>[]),
'--track-widget-creation', '--track-widget-creation',
'--no-link-platform', '--no-link-platform',
...@@ -363,8 +356,6 @@ void main() { ...@@ -363,8 +356,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'$build/app.dill', '$build/app.dill',
]) ])
]); ]);
...@@ -393,8 +384,6 @@ void main() { ...@@ -393,8 +384,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'$build/app.dill', '$build/app.dill',
]) ])
]); ]);
...@@ -463,8 +452,6 @@ void main() { ...@@ -463,8 +452,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'$build/app.dill', '$build/app.dill',
]), ]),
FakeCommand(command: <String>[ FakeCommand(command: <String>[
...@@ -474,8 +461,6 @@ void main() { ...@@ -474,8 +461,6 @@ void main() {
kAssemblyAot, kAssemblyAot,
'--assembly=$build/arm64/snapshot_assembly.S', '--assembly=$build/arm64/snapshot_assembly.S',
'--strip', '--strip',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'$build/app.dill', '$build/app.dill',
]), ]),
FakeCommand(command: <String>[ FakeCommand(command: <String>[
...@@ -582,8 +567,6 @@ void main() { ...@@ -582,8 +567,6 @@ void main() {
kAssemblyAot, kAssemblyAot,
'--assembly=$build/arm64/snapshot_assembly.S', '--assembly=$build/arm64/snapshot_assembly.S',
'--strip', '--strip',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'$build/app.dill', '$build/app.dill',
]), ]),
FakeCommand(command: <String>[ FakeCommand(command: <String>[
...@@ -659,8 +642,6 @@ void main() { ...@@ -659,8 +642,6 @@ void main() {
kAssemblyAot, kAssemblyAot,
'--assembly=$build/arm64/snapshot_assembly.S', '--assembly=$build/arm64/snapshot_assembly.S',
'--strip', '--strip',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'$build/app.dill', '$build/app.dill',
]), ]),
FakeCommand(command: <String>[ FakeCommand(command: <String>[
...@@ -741,8 +722,6 @@ void main() { ...@@ -741,8 +722,6 @@ void main() {
'--strip', '--strip',
'--no-sim-use-hardfp', '--no-sim-use-hardfp',
'--no-use-integer-division', '--no-use-integer-division',
'--no-causal-async-stacks',
'--lazy-async-stacks',
'$build/app.dill', '$build/app.dill',
]), ]),
]); ]);
......
...@@ -75,10 +75,6 @@ void main() { ...@@ -75,10 +75,6 @@ void main() {
expect(mockFrontendServerStdIn.getAndClear(), isEmpty); expect(mockFrontendServerStdIn.getAndClear(), isEmpty);
expect(logger.errorText, equals('line1\nline2\n')); expect(logger.errorText, equals('line1\nline2\n'));
expect(output.outputFilename, equals('/path/to/main.dart.dill')); expect(output.outputFilename, equals('/path/to/main.dart.dill'));
final VerificationResult argVerification = verify(mockProcessManager.start(captureAny));
expect(argVerification.captured.single, containsAll(<String>[
'-Ddart.developer.causal_async_stacks=true',
]));
}); });
testWithoutContext('passes correct AOT config to kernel compiler in aot/profile mode', () async { testWithoutContext('passes correct AOT config to kernel compiler in aot/profile mode', () async {
...@@ -113,7 +109,6 @@ void main() { ...@@ -113,7 +109,6 @@ void main() {
'--tfa', '--tfa',
'-Ddart.vm.profile=true', '-Ddart.vm.profile=true',
'-Ddart.vm.product=false', '-Ddart.vm.product=false',
'-Ddart.developer.causal_async_stacks=false',
])); ]));
}); });
...@@ -149,7 +144,6 @@ void main() { ...@@ -149,7 +144,6 @@ void main() {
'--tfa', '--tfa',
'-Ddart.vm.profile=false', '-Ddart.vm.profile=false',
'-Ddart.vm.product=true', '-Ddart.vm.product=true',
'-Ddart.developer.causal_async_stacks=false',
])); ]));
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment