| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project 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 #include <assert.h> | 5 #include <assert.h> |
| 6 #include <stdarg.h> |
| 6 #include <stdio.h> | 7 #include <stdio.h> |
| 7 #include <stdarg.h> | |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "src/v8.h" | 10 #include "src/v8.h" |
| 11 | 11 |
| 12 #if V8_TARGET_ARCH_ARM64 | 12 #if V8_TARGET_ARCH_ARM64 |
| 13 | 13 |
| 14 #include "src/disasm.h" | |
| 15 #include "src/arm64/decoder-arm64-inl.h" | 14 #include "src/arm64/decoder-arm64-inl.h" |
| 16 #include "src/arm64/disasm-arm64.h" | 15 #include "src/arm64/disasm-arm64.h" |
| 16 #include "src/disasm.h" |
| 17 #include "src/macro-assembler.h" | 17 #include "src/macro-assembler.h" |
| 18 #include "src/platform.h" | 18 #include "src/platform.h" |
| 19 | 19 |
| 20 namespace v8 { | 20 namespace v8 { |
| 21 namespace internal { | 21 namespace internal { |
| 22 | 22 |
| 23 | 23 |
| 24 Disassembler::Disassembler() { | 24 Disassembler::Disassembler() { |
| 25 buffer_size_ = 256; | 25 buffer_size_ = 256; |
| 26 buffer_ = reinterpret_cast<char*>(malloc(buffer_size_)); | 26 buffer_ = reinterpret_cast<char*>(malloc(buffer_size_)); |
| (...skipping 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1823 decoder.AppendVisitor(&disasm); | 1823 decoder.AppendVisitor(&disasm); |
| 1824 | 1824 |
| 1825 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) { | 1825 for (byte* pc = start; pc < end; pc += v8::internal::kInstructionSize) { |
| 1826 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc)); | 1826 decoder.Decode(reinterpret_cast<v8::internal::Instruction*>(pc)); |
| 1827 } | 1827 } |
| 1828 } | 1828 } |
| 1829 | 1829 |
| 1830 } // namespace disasm | 1830 } // namespace disasm |
| 1831 | 1831 |
| 1832 #endif // V8_TARGET_ARCH_ARM64 | 1832 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |