Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: src/x64/disasm-x64.cc

Issue 182963002: Merged r19549 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/version.cc ('k') | src/x64/lithium-gap-resolver-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/version.cc ('k') | src/x64/lithium-gap-resolver-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698