| OLD | NEW |
| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 static const int kNumReservedRegisters = 2; | 221 static const int kNumReservedRegisters = 2; |
| 222 static const int kMaxNumAllocatableRegisters = kMaxNumRegisters / 2 - | 222 static const int kMaxNumAllocatableRegisters = kMaxNumRegisters / 2 - |
| 223 kNumReservedRegisters; | 223 kNumReservedRegisters; |
| 224 | 224 |
| 225 inline static int NumRegisters(); | 225 inline static int NumRegisters(); |
| 226 inline static int NumAllocatableRegisters(); | 226 inline static int NumAllocatableRegisters(); |
| 227 | 227 |
| 228 // TODO(turbofan): Proper support for float32. | 228 // TODO(turbofan): Proper support for float32. |
| 229 inline static int NumAllocatableAliasedRegisters(); | 229 inline static int NumAllocatableAliasedRegisters(); |
| 230 | 230 |
| 231 static int NumAllocatableRegistersForTurbo() { |
| 232 return kMaxNumAllocatableRegisters; |
| 233 } |
| 234 |
| 235 static int NumAllocatableAliasedRegistersForTurbo() { |
| 236 return NumAllocatableAliasedRegisters(); |
| 237 } |
| 238 |
| 231 inline static int ToAllocationIndex(FPURegister reg); | 239 inline static int ToAllocationIndex(FPURegister reg); |
| 232 static const char* AllocationIndexToString(int index); | 240 static const char* AllocationIndexToString(int index); |
| 233 | 241 |
| 234 static FPURegister FromAllocationIndex(int index) { | 242 static FPURegister FromAllocationIndex(int index) { |
| 235 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); | 243 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); |
| 236 return from_code(index * 2); | 244 return from_code(index * 2); |
| 237 } | 245 } |
| 238 | 246 |
| 239 static FPURegister from_code(int code) { | 247 static FPURegister from_code(int code) { |
| 240 FPURegister r = { code }; | 248 FPURegister r = { code }; |
| (...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1441 class EnsureSpace BASE_EMBEDDED { | 1449 class EnsureSpace BASE_EMBEDDED { |
| 1442 public: | 1450 public: |
| 1443 explicit EnsureSpace(Assembler* assembler) { | 1451 explicit EnsureSpace(Assembler* assembler) { |
| 1444 assembler->CheckBuffer(); | 1452 assembler->CheckBuffer(); |
| 1445 } | 1453 } |
| 1446 }; | 1454 }; |
| 1447 | 1455 |
| 1448 } } // namespace v8::internal | 1456 } } // namespace v8::internal |
| 1449 | 1457 |
| 1450 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1458 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |