| 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 <stdio.h> | 6 #include <stdio.h> |
| 7 #include <stdarg.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" |
| (...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 if (instr->ShiftMoveWide() > 0) { | 1377 if (instr->ShiftMoveWide() > 0) { |
| 1378 AppendToOutput(", lsl #%d", 16 * instr->ShiftMoveWide()); | 1378 AppendToOutput(", lsl #%d", 16 * instr->ShiftMoveWide()); |
| 1379 } | 1379 } |
| 1380 } | 1380 } |
| 1381 return 8; | 1381 return 8; |
| 1382 } | 1382 } |
| 1383 case 'L': { | 1383 case 'L': { |
| 1384 switch (format[2]) { | 1384 switch (format[2]) { |
| 1385 case 'L': { // ILLiteral - Immediate Load Literal. | 1385 case 'L': { // ILLiteral - Immediate Load Literal. |
| 1386 AppendToOutput("pc%+" PRId64, | 1386 AppendToOutput("pc%+" PRId64, |
| 1387 instr->ImmLLiteral() << kLiteralEntrySizeLog2); | 1387 instr->ImmLLiteral() << kLoadLiteralScaleLog2); |
| 1388 return 9; | 1388 return 9; |
| 1389 } | 1389 } |
| 1390 case 'S': { // ILS - Immediate Load/Store. | 1390 case 'S': { // ILS - Immediate Load/Store. |
| 1391 if (instr->ImmLS() != 0) { | 1391 if (instr->ImmLS() != 0) { |
| 1392 AppendToOutput(", #%" PRId64, instr->ImmLS()); | 1392 AppendToOutput(", #%" PRId64, instr->ImmLS()); |
| 1393 } | 1393 } |
| 1394 return 3; | 1394 return 3; |
| 1395 } | 1395 } |
| 1396 case 'P': { // ILPx - Immediate Load/Store Pair, x = access size. | 1396 case 'P': { // ILPx - Immediate Load/Store Pair, x = access size. |
| 1397 if (instr->ImmLSPair() != 0) { | 1397 if (instr->ImmLSPair() != 0) { |
| (...skipping 425 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 |