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

Side by Side Diff: src/mips64/assembler-mips64.h

Issue 2090993002: Fix '[tests] Don't test moves between different reps in test-gap-resolver.cc' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm. Created 4 years, 5 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/mips/assembler-mips.h ('k') | src/ppc/assembler-ppc.h » ('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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 static const int kNumRegisters = Code::kAfterLast; 119 static const int kNumRegisters = Code::kAfterLast;
120 120
121 static Register from_code(int code) { 121 static Register from_code(int code) {
122 DCHECK(code >= 0); 122 DCHECK(code >= 0);
123 DCHECK(code < kNumRegisters); 123 DCHECK(code < kNumRegisters);
124 Register r = { code }; 124 Register r = { code };
125 return r; 125 return r;
126 } 126 }
127 127
128 const char* ToString(); 128 const char* ToString();
129 bool IsAllocatable() const; 129 bool IsAllocatable(RegisterConfiguration::CompilerSelector compiler =
130 RegisterConfiguration::CRANKSHAFT) const;
130 bool is_valid() const { return 0 <= reg_code && reg_code < kNumRegisters; } 131 bool is_valid() const { return 0 <= reg_code && reg_code < kNumRegisters; }
131 bool is(Register reg) const { return reg_code == reg.reg_code; } 132 bool is(Register reg) const { return reg_code == reg.reg_code; }
132 int code() const { 133 int code() const {
133 DCHECK(is_valid()); 134 DCHECK(is_valid());
134 return reg_code; 135 return reg_code;
135 } 136 }
136 int bit() const { 137 int bit() const {
137 DCHECK(is_valid()); 138 DCHECK(is_valid());
138 return 1 << reg_code; 139 return 1 << reg_code;
139 } 140 }
(...skipping 27 matching lines...) Expand all
167 168
168 static const int kMaxNumRegisters = Code::kAfterLast; 169 static const int kMaxNumRegisters = Code::kAfterLast;
169 170
170 inline static int NumRegisters(); 171 inline static int NumRegisters();
171 172
172 // TODO(plind): Warning, inconsistent numbering here. kNumFPURegisters refers 173 // TODO(plind): Warning, inconsistent numbering here. kNumFPURegisters refers
173 // to number of 32-bit FPU regs, but kNumAllocatableRegisters refers to 174 // to number of 32-bit FPU regs, but kNumAllocatableRegisters refers to
174 // number of Double regs (64-bit regs, or FPU-reg-pairs). 175 // number of Double regs (64-bit regs, or FPU-reg-pairs).
175 176
176 const char* ToString(); 177 const char* ToString();
177 bool IsAllocatable() const; 178 bool IsAllocatable(RegisterConfiguration::CompilerSelector compiler =
179 RegisterConfiguration::CRANKSHAFT) const;
178 bool is_valid() const { return 0 <= reg_code && reg_code < kMaxNumRegisters; } 180 bool is_valid() const { return 0 <= reg_code && reg_code < kMaxNumRegisters; }
179 bool is(FPURegister reg) const { return reg_code == reg.reg_code; } 181 bool is(FPURegister reg) const { return reg_code == reg.reg_code; }
180 FPURegister low() const { 182 FPURegister low() const {
181 // TODO(plind): Create DCHECK for FR=0 mode. This usage suspect for FR=1. 183 // TODO(plind): Create DCHECK for FR=0 mode. This usage suspect for FR=1.
182 // Find low reg of a Double-reg pair, which is the reg itself. 184 // Find low reg of a Double-reg pair, which is the reg itself.
183 DCHECK(reg_code % 2 == 0); // Specified Double reg must be even. 185 DCHECK(reg_code % 2 == 0); // Specified Double reg must be even.
184 FPURegister reg; 186 FPURegister reg;
185 reg.reg_code = reg_code; 187 reg.reg_code = reg_code;
186 DCHECK(reg.is_valid()); 188 DCHECK(reg.is_valid());
187 return reg; 189 return reg;
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 public: 1521 public:
1520 explicit EnsureSpace(Assembler* assembler) { 1522 explicit EnsureSpace(Assembler* assembler) {
1521 assembler->CheckBuffer(); 1523 assembler->CheckBuffer();
1522 } 1524 }
1523 }; 1525 };
1524 1526
1525 } // namespace internal 1527 } // namespace internal
1526 } // namespace v8 1528 } // namespace v8
1527 1529
1528 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1530 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/ppc/assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698