| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 | 8 |
| 9 _SHRINK_TO_FIT_CLONE = ('blink::ContiguousContainerBase::shrinkToFit() ' | 9 _SHRINK_TO_FIT_CLONE = ('blink::ContiguousContainerBase::shrinkToFit() ' |
| 10 '[clone .part.1234] [clone .isra.2]') | 10 '[clone .part.1234] [clone .isra.2]') |
| 11 _ELF_OUTPUT = """002b6e20 t $t | 11 _ELF_OUTPUT = """002b6e20 t $t |
| 12 00000010 N $d | 12 00000010 N |
| 13 002b6bb8 t $t | 13 002b6bb8 t $t |
| 14 002a0010 t {} | 14 002a0010 t {} |
| 15 0028d900 t startup._GLOBAL__sub_I_page_allocator.cc | 15 0028d900 t startup._GLOBAL__sub_I_page_allocator.cc |
| 16 002a0010 t FooAlias() | 16 002a0010 t FooAlias() |
| 17 002b6bb8 t $t | 17 002b6bb8 t $t |
| 18 002a0010 t BarAlias() | 18 002a0010 t BarAlias() |
| 19 002a0000 t blink::ContiguousContainerBase::shrinkToFit() | 19 002a0000 t blink::ContiguousContainerBase::shrinkToFit() |
| 20 002a0000 t BazAlias(bool) | 20 002a0000 t BazAlias(bool) |
| 21 002b6bb8 t $t | 21 002b6bb8 t $t |
| 22 """.format(_SHRINK_TO_FIT_CLONE) | 22 """.format(_SHRINK_TO_FIT_CLONE) |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 '' | 81 '' |
| 82 'fft_fixed.o:' | 82 'fft_fixed.o:' |
| 83 '01010101 b ff_cos_131072_fixed', | 83 '01010101 b ff_cos_131072_fixed', |
| 84 ], | 84 ], |
| 85 '../../third_party/gvr-android-sdk/libgvr_shim_static_arm.a': [ | 85 '../../third_party/gvr-android-sdk/libgvr_shim_static_arm.a': [ |
| 86 '', | 86 '', |
| 87 'libcontroller_api_impl.a_controller_api_impl.o:' | 87 'libcontroller_api_impl.a_controller_api_impl.o:' |
| 88 '01010101 d .Lswitch.table.45', | 88 '01010101 d .Lswitch.table.45', |
| 89 '', | 89 '', |
| 90 'libport_android_jni.a_jni_utils.o:', | 90 'libport_android_jni.a_jni_utils.o:', |
| 91 '(anonymous namespace)::kSystemClassPrefixes', | 91 '01010101 t (anonymous namespace)::kSystemClassPrefixes', |
| 92 ], | 92 ], |
| 93 } | 93 } |
| 94 | 94 |
| 95 def _PrintHeader(path): | 95 def _PrintHeader(path): |
| 96 sys.stdout.write('\n') | 96 sys.stdout.write('\n') |
| 97 sys.stdout.write(path + ':\n') | 97 sys.stdout.write(path + ':\n') |
| 98 | 98 |
| 99 | 99 |
| 100 def _PrintOutput(path): | 100 def _PrintOutput(path): |
| 101 if path.endswith(os.path.join('mock_output_directory', 'elf')): | 101 if path.endswith(os.path.join('mock_output_directory', 'elf')): |
| (...skipping 10 matching lines...) Expand all Loading... |
| 112 if len(paths) == 1: | 112 if len(paths) == 1: |
| 113 _PrintOutput(paths[0]) | 113 _PrintOutput(paths[0]) |
| 114 else: | 114 else: |
| 115 for path in paths: | 115 for path in paths: |
| 116 _PrintHeader(path) | 116 _PrintHeader(path) |
| 117 _PrintOutput(path) | 117 _PrintOutput(path) |
| 118 | 118 |
| 119 | 119 |
| 120 if __name__ == '__main__': | 120 if __name__ == '__main__': |
| 121 main() | 121 main() |
| OLD | NEW |