| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // | 43 // |
| 44 // The Disassembler class also has a convenience method to disassemble a block | 44 // The Disassembler class also has a convenience method to disassemble a block |
| 45 // of code into a FILE*, meaning that the above functionality could also be | 45 // of code into a FILE*, meaning that the above functionality could also be |
| 46 // achieved by just calling Disassembler::Disassemble(stdout, begin, end); | 46 // achieved by just calling Disassembler::Disassemble(stdout, begin, end); |
| 47 | 47 |
| 48 | 48 |
| 49 #include <assert.h> | 49 #include <assert.h> |
| 50 #include <stdio.h> | 50 #include <stdio.h> |
| 51 #include <stdarg.h> | 51 #include <stdarg.h> |
| 52 #include <string.h> | 52 #include <string.h> |
| 53 #ifndef WIN32 | |
| 54 #include <stdint.h> | |
| 55 #endif | |
| 56 | 53 |
| 57 #include "v8.h" | 54 #include "v8.h" |
| 58 | 55 |
| 59 #if V8_TARGET_ARCH_ARM | 56 #if V8_TARGET_ARCH_ARM |
| 60 | 57 |
| 61 #include "constants-arm.h" | 58 #include "constants-arm.h" |
| 62 #include "disasm.h" | 59 #include "disasm.h" |
| 63 #include "macro-assembler.h" | 60 #include "macro-assembler.h" |
| 64 #include "platform.h" | 61 #include "platform.h" |
| 65 | 62 |
| (...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1798 v8::internal::PrintF( | 1795 v8::internal::PrintF( |
| 1799 f, "%p %08x %s\n", | 1796 f, "%p %08x %s\n", |
| 1800 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1797 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
| 1801 } | 1798 } |
| 1802 } | 1799 } |
| 1803 | 1800 |
| 1804 | 1801 |
| 1805 } // namespace disasm | 1802 } // namespace disasm |
| 1806 | 1803 |
| 1807 #endif // V8_TARGET_ARCH_ARM | 1804 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |