OLD | NEW |
1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 import 'package:kernel/kernel.dart'; | 6 import 'package:kernel/kernel.dart'; |
7 | 7 |
8 main(args) { | 8 main(args) { |
9 var binary = loadProgramFromBinary(args[0]); | 9 var binary = loadProgramFromBinary(args[0]); |
10 writeProgramToText(binary, path: args[1]); | 10 writeProgramToText(binary, |
| 11 path: args[1], showOffsets: const bool.fromEnvironment("showOffsets")); |
11 } | 12 } |
OLD | NEW |