| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2011 the V8 project authors. All rights reserved. | 3 # Copyright 2011 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 break | 83 break |
| 84 if tmp_name: | 84 if tmp_name: |
| 85 os.unlink(tmp_name) | 85 os.unlink(tmp_name) |
| 86 split_lines = [] | 86 split_lines = [] |
| 87 for line in lines[header_line + 1:]: | 87 for line in lines[header_line + 1:]: |
| 88 match = _DISASM_LINE_RE.match(line) | 88 match = _DISASM_LINE_RE.match(line) |
| 89 if match: | 89 if match: |
| 90 line_address = int(match.group(1), 16) | 90 line_address = int(match.group(1), 16) |
| 91 split_lines.append((line_address, match.group(2))) | 91 split_lines.append((line_address, match.group(2))) |
| 92 return split_lines | 92 return split_lines |
| OLD | NEW |