-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #906 from dart-lang/if-element-comment-split
Don't add unneeded splits on if elements near comments.
- Loading branch information
Showing
3 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
>>> | ||
main() { | ||
final args = [ | ||
if (_configuration.useBlobs) ...[ | ||
"--snapshot-kind=app-aot-blobs", | ||
"--blobs_container_filename=$tempDir/out.aotsnapshot" | ||
] else if (_configuration.useElf) ...[ | ||
"--snapshot-kind=app-aot-elf", | ||
"--elf=$tempDir/out.aotsnapshot" | ||
] else ...[ | ||
"--snapshot-kind=app-aot-assembly", | ||
"--assembly=$tempDir/out.S" | ||
], | ||
if (_isAndroid && _isArm) '--no-sim-use-hardfp', | ||
if (_configuration.isMinified) '--obfuscate', | ||
if (_configuration.useQemu) '--no-use-integer-division', | ||
..._replaceDartFiles(arguments, tempKernelFile(tempDir)), | ||
]; | ||
|
||
final args2 = [ | ||
if (_configuration.useBlobs) ...[ | ||
"--snapshot-kind=app-aot-blobs", | ||
"--blobs_container_filename=$tempDir/out.aotsnapshot" | ||
] else if (_configuration.useElf) ...[ | ||
"--snapshot-kind=app-aot-elf", | ||
"--elf=$tempDir/out.aotsnapshot" | ||
] else ...[ | ||
"--snapshot-kind=app-aot-assembly", | ||
"--assembly=$tempDir/out.S" | ||
], | ||
if (_isAndroid && _isArm) | ||
'--no-sim-use-hardfp', | ||
if (_configuration.isMinified) | ||
'--obfuscate', | ||
// The SIMARM precompiler assumes support for integer division, but the | ||
// Qemu arm cpus do not support integer division. | ||
if (_configuration.useQemu) | ||
'--no-use-integer-division', | ||
..._replaceDartFiles(arguments, tempKernelFile(tempDir)), | ||
]; | ||
|
||
print(args); | ||
print(args2); | ||
} | ||
<<< | ||
main() { | ||
final args = [ | ||
if (_configuration.useBlobs) ...[ | ||
"--snapshot-kind=app-aot-blobs", | ||
"--blobs_container_filename=$tempDir/out.aotsnapshot" | ||
] else if (_configuration.useElf) ...[ | ||
"--snapshot-kind=app-aot-elf", | ||
"--elf=$tempDir/out.aotsnapshot" | ||
] else ...[ | ||
"--snapshot-kind=app-aot-assembly", | ||
"--assembly=$tempDir/out.S" | ||
], | ||
if (_isAndroid && _isArm) '--no-sim-use-hardfp', | ||
if (_configuration.isMinified) '--obfuscate', | ||
if (_configuration.useQemu) '--no-use-integer-division', | ||
..._replaceDartFiles(arguments, tempKernelFile(tempDir)), | ||
]; | ||
|
||
final args2 = [ | ||
if (_configuration.useBlobs) ...[ | ||
"--snapshot-kind=app-aot-blobs", | ||
"--blobs_container_filename=$tempDir/out.aotsnapshot" | ||
] else if (_configuration.useElf) ...[ | ||
"--snapshot-kind=app-aot-elf", | ||
"--elf=$tempDir/out.aotsnapshot" | ||
] else ...[ | ||
"--snapshot-kind=app-aot-assembly", | ||
"--assembly=$tempDir/out.S" | ||
], | ||
if (_isAndroid && _isArm) '--no-sim-use-hardfp', | ||
if (_configuration.isMinified) '--obfuscate', | ||
// The SIMARM precompiler assumes support for integer division, but the | ||
// Qemu arm cpus do not support integer division. | ||
if (_configuration.useQemu) '--no-use-integer-division', | ||
..._replaceDartFiles(arguments, tempKernelFile(tempDir)), | ||
]; | ||
|
||
print(args); | ||
print(args2); | ||
} |