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

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

Issue 877753007: Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: VS201x now happy? Created 5 years, 10 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
« no previous file with comments | « src/v8.h ('k') | src/x64/full-codegen-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 // 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 <stdarg.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 case 5: 796 case 5:
797 mnem = "shr"; 797 mnem = "shr";
798 break; 798 break;
799 case 7: 799 case 7:
800 mnem = "sar"; 800 mnem = "sar";
801 break; 801 break;
802 default: 802 default:
803 UnimplementedInstruction(); 803 UnimplementedInstruction();
804 return count + 1; 804 return count + 1;
805 } 805 }
806 DCHECK_NE(NULL, mnem); 806 DCHECK_NOT_NULL(mnem);
807 AppendToBuffer("%s%c ", mnem, operand_size_code()); 807 AppendToBuffer("%s%c ", mnem, operand_size_code());
808 } 808 }
809 count += PrintRightOperand(data + count); 809 count += PrintRightOperand(data + count);
810 if (op == 0xD2) { 810 if (op == 0xD2) {
811 AppendToBuffer(", cl"); 811 AppendToBuffer(", cl");
812 } else { 812 } else {
813 int imm8 = -1; 813 int imm8 = -1;
814 if (op == 0xD0) { 814 if (op == 0xD0) {
815 imm8 = 1; 815 imm8 = 1;
816 } else { 816 } else {
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
2111 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) { 2111 for (int i = 6 - static_cast<int>(pc - prev_pc); i >= 0; i--) {
2112 fprintf(f, " "); 2112 fprintf(f, " ");
2113 } 2113 }
2114 fprintf(f, " %s\n", buffer.start()); 2114 fprintf(f, " %s\n", buffer.start());
2115 } 2115 }
2116 } 2116 }
2117 2117
2118 } // namespace disasm 2118 } // namespace disasm
2119 2119
2120 #endif // V8_TARGET_ARCH_X64 2120 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/v8.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698