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

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

Issue 1164813007: Config double register number as 1 for X87 Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 static const int kMaxNumAllocatableRegisters = 15; 201 static const int kMaxNumAllocatableRegisters = 15;
202 static int NumAllocatableRegisters() { 202 static int NumAllocatableRegisters() {
203 return kMaxNumAllocatableRegisters; 203 return kMaxNumAllocatableRegisters;
204 } 204 }
205 205
206 // TODO(turbofan): Proper support for float32. 206 // TODO(turbofan): Proper support for float32.
207 static int NumAllocatableAliasedRegisters() { 207 static int NumAllocatableAliasedRegisters() {
208 return NumAllocatableRegisters(); 208 return NumAllocatableRegisters();
209 } 209 }
210 210
211 static int NumAllocatableRegistersForTurbo() {
212 return kMaxNumAllocatableRegisters;
213 }
214
215 static int NumAllocatableAliasedRegistersForTurbo() {
216 return NumAllocatableAliasedRegisters();
217 }
218
211 static int ToAllocationIndex(XMMRegister reg) { 219 static int ToAllocationIndex(XMMRegister reg) {
212 DCHECK(reg.code() != 0); 220 DCHECK(reg.code() != 0);
213 return reg.code() - 1; 221 return reg.code() - 1;
214 } 222 }
215 223
216 static XMMRegister FromAllocationIndex(int index) { 224 static XMMRegister FromAllocationIndex(int index) {
217 DCHECK(0 <= index && index < kMaxNumAllocatableRegisters); 225 DCHECK(0 <= index && index < kMaxNumAllocatableRegisters);
218 XMMRegister result = { index + 1 }; 226 XMMRegister result = { index + 1 };
219 return result; 227 return result;
220 } 228 }
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 private: 2164 private:
2157 Assembler* assembler_; 2165 Assembler* assembler_;
2158 #ifdef DEBUG 2166 #ifdef DEBUG
2159 int space_before_; 2167 int space_before_;
2160 #endif 2168 #endif
2161 }; 2169 };
2162 2170
2163 } } // namespace v8::internal 2171 } } // namespace v8::internal
2164 2172
2165 #endif // V8_X64_ASSEMBLER_X64_H_ 2173 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698