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

Side by Side Diff: src/mips64/assembler-mips64.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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 static const int kNumReservedRegisters = 2; 211 static const int kNumReservedRegisters = 2;
212 static const int kMaxNumAllocatableRegisters = kMaxNumRegisters / 2 - 212 static const int kMaxNumAllocatableRegisters = kMaxNumRegisters / 2 -
213 kNumReservedRegisters; 213 kNumReservedRegisters;
214 214
215 inline static int NumRegisters(); 215 inline static int NumRegisters();
216 inline static int NumAllocatableRegisters(); 216 inline static int NumAllocatableRegisters();
217 217
218 // TODO(turbofan): Proper support for float32. 218 // TODO(turbofan): Proper support for float32.
219 inline static int NumAllocatableAliasedRegisters(); 219 inline static int NumAllocatableAliasedRegisters();
220 220
221 static int NumAllocatableRegistersForTurbo() {
222 return kMaxNumAllocatableRegisters;
223 }
224
225 static int NumAllocatableAliasedRegistersForTurbo() {
226 return NumAllocatableAliasedRegisters();
227 }
228
221 inline static int ToAllocationIndex(FPURegister reg); 229 inline static int ToAllocationIndex(FPURegister reg);
222 static const char* AllocationIndexToString(int index); 230 static const char* AllocationIndexToString(int index);
223 231
224 static FPURegister FromAllocationIndex(int index) { 232 static FPURegister FromAllocationIndex(int index) {
225 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); 233 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters);
226 return from_code(index * 2); 234 return from_code(index * 2);
227 } 235 }
228 236
229 static FPURegister from_code(int code) { 237 static FPURegister from_code(int code) {
230 FPURegister r = { code }; 238 FPURegister r = { code };
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 class EnsureSpace BASE_EMBEDDED { 1486 class EnsureSpace BASE_EMBEDDED {
1479 public: 1487 public:
1480 explicit EnsureSpace(Assembler* assembler) { 1488 explicit EnsureSpace(Assembler* assembler) {
1481 assembler->CheckBuffer(); 1489 assembler->CheckBuffer();
1482 } 1490 }
1483 }; 1491 };
1484 1492
1485 } } // namespace v8::internal 1493 } } // namespace v8::internal
1486 1494
1487 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1495 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698