| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 17 matching lines...) Expand all Loading... |
| 28 #include <assert.h> | 28 #include <assert.h> |
| 29 #include <stdio.h> | 29 #include <stdio.h> |
| 30 #include <stdarg.h> | 30 #include <stdarg.h> |
| 31 #include <string.h> | 31 #include <string.h> |
| 32 #ifndef WIN32 | 32 #ifndef WIN32 |
| 33 #include <stdint.h> | 33 #include <stdint.h> |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 #include "v8.h" | 36 #include "v8.h" |
| 37 | 37 |
| 38 #if defined(V8_TARGET_ARCH_A64) | 38 #if V8_TARGET_ARCH_A64 |
| 39 | 39 |
| 40 #include "disasm.h" | 40 #include "disasm.h" |
| 41 #include "a64/disasm-a64.h" | 41 #include "a64/disasm-a64.h" |
| 42 #include "macro-assembler.h" | 42 #include "macro-assembler.h" |
| 43 #include "platform.h" | 43 #include "platform.h" |
| 44 | 44 |
| 45 namespace v8 { | 45 namespace v8 { |
| 46 namespace internal { | 46 namespace internal { |
| 47 | 47 |
| 48 | 48 |
| (...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1724 { "sy (0b1000)", "ishld", "ishst", "ish" }, | 1724 { "sy (0b1000)", "ishld", "ishst", "ish" }, |
| 1725 { "sy (0b1100)", "ld", "st", "sy" } | 1725 { "sy (0b1100)", "ld", "st", "sy" } |
| 1726 }; | 1726 }; |
| 1727 int domain = instr->ImmBarrierDomain(); | 1727 int domain = instr->ImmBarrierDomain(); |
| 1728 int type = instr->ImmBarrierType(); | 1728 int type = instr->ImmBarrierType(); |
| 1729 | 1729 |
| 1730 AppendToOutput("%s", options[domain][type]); | 1730 AppendToOutput("%s", options[domain][type]); |
| 1731 return 1; | 1731 return 1; |
| 1732 } | 1732 } |
| 1733 | 1733 |
| 1734 |
| 1734 void Disassembler::ResetOutput() { | 1735 void Disassembler::ResetOutput() { |
| 1735 buffer_pos_ = 0; | 1736 buffer_pos_ = 0; |
| 1736 buffer_[buffer_pos_] = 0; | 1737 buffer_[buffer_pos_] = 0; |
| 1737 } | 1738 } |
| 1738 | 1739 |
| 1739 | 1740 |
| 1740 void Disassembler::AppendToOutput(const char* format, ...) { | 1741 void Disassembler::AppendToOutput(const char* format, ...) { |
| 1741 va_list args; | 1742 va_list args; |
| 1742 va_start(args, format); | 1743 va_start(args, format); |
| 1743 buffer_pos_ += vsnprintf(&buffer_[buffer_pos_], buffer_size_, format, args); | 1744 buffer_pos_ += vsnprintf(&buffer_[buffer_pos_], buffer_size_, format, args); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1847 decoder.AppendVisitor(&disasm); | 1848 decoder.AppendVisitor(&disasm); |
| 1848 | 1849 |
| 1849 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) { | 1850 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) { |
| 1850 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc)); | 1851 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc)); |
| 1851 } | 1852 } |
| 1852 } | 1853 } |
| 1853 | 1854 |
| 1854 } // namespace disasm | 1855 } // namespace disasm |
| 1855 | 1856 |
| 1856 #endif // V8_TARGET_ARCH_A64 | 1857 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |