OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Checks that known instructions are disassebled identically to "objdump -d". | 6 """Checks that known instructions are disassebled identically to "objdump -d". |
7 | 7 |
8 The single-threaded generator produces byte sequences of all instructions it | 8 The single-threaded generator produces byte sequences of all instructions it |
9 knows about and emits them in portions, file by file. Process these files in | 9 knows about and emits them in portions, file by file. Process these files in |
10 parallel. | 10 parallel. |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 # Wait for all threads to finish. | 182 # Wait for all threads to finish. |
183 gen.join() | 183 gen.join() |
184 for w in workers: | 184 for w in workers: |
185 w.join() | 185 w.join() |
186 return 0 | 186 return 0 |
187 | 187 |
188 | 188 |
189 if __name__ == '__main__': | 189 if __name__ == '__main__': |
190 sys.exit(Main()) | 190 sys.exit(Main()) |
OLD | NEW |