| 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 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1444 data++; | 1444 data++; |
| 1445 break; | 1445 break; |
| 1446 case MOVE_REG_INSTR: { | 1446 case MOVE_REG_INSTR: { |
| 1447 byte* addr = NULL; | 1447 byte* addr = NULL; |
| 1448 switch (operand_size()) { | 1448 switch (operand_size()) { |
| 1449 case OPERAND_WORD_SIZE: | 1449 case OPERAND_WORD_SIZE: |
| 1450 addr = reinterpret_cast<byte*>(*reinterpret_cast<int16_t*>(data + 1)); | 1450 addr = reinterpret_cast<byte*>(*reinterpret_cast<int16_t*>(data + 1)); |
| 1451 data += 3; | 1451 data += 3; |
| 1452 break; | 1452 break; |
| 1453 case OPERAND_DOUBLEWORD_SIZE: | 1453 case OPERAND_DOUBLEWORD_SIZE: |
| 1454 addr = reinterpret_cast<byte*>(*reinterpret_cast<int32_t*>(data + 1)); | 1454 addr = |
| 1455 reinterpret_cast<byte*>(*reinterpret_cast<uint32_t*>(data + 1)); |
| 1455 data += 5; | 1456 data += 5; |
| 1456 break; | 1457 break; |
| 1457 case OPERAND_QUADWORD_SIZE: | 1458 case OPERAND_QUADWORD_SIZE: |
| 1458 addr = reinterpret_cast<byte*>(*reinterpret_cast<int64_t*>(data + 1)); | 1459 addr = reinterpret_cast<byte*>(*reinterpret_cast<int64_t*>(data + 1)); |
| 1459 data += 9; | 1460 data += 9; |
| 1460 break; | 1461 break; |
| 1461 default: | 1462 default: |
| 1462 UNREACHABLE(); | 1463 UNREACHABLE(); |
| 1463 } | 1464 } |
| 1464 AppendToBuffer("mov%c %s,%s", | 1465 AppendToBuffer("mov%c %s,%s", |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1919 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { | 1920 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { |
| 1920 fprintf(f, " "); | 1921 fprintf(f, " "); |
| 1921 } | 1922 } |
| 1922 fprintf(f, " %s\n", buffer.start()); | 1923 fprintf(f, " %s\n", buffer.start()); |
| 1923 } | 1924 } |
| 1924 } | 1925 } |
| 1925 | 1926 |
| 1926 } // namespace disasm | 1927 } // namespace disasm |
| 1927 | 1928 |
| 1928 #endif // V8_TARGET_ARCH_X64 | 1929 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |