| 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 | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 kAllocatableHighRangeEnd - kAllocatableHighRangeBegin + 1; | 311 kAllocatableHighRangeEnd - kAllocatableHighRangeBegin + 1; |
| 312 static const int kMaxNumAllocatableRegisters = | 312 static const int kMaxNumAllocatableRegisters = |
| 313 kNumAllocatableLow + kNumAllocatableHigh; | 313 kNumAllocatableLow + kNumAllocatableHigh; |
| 314 static int NumAllocatableRegisters() { return kMaxNumAllocatableRegisters; } | 314 static int NumAllocatableRegisters() { return kMaxNumAllocatableRegisters; } |
| 315 | 315 |
| 316 // TODO(turbofan) | 316 // TODO(turbofan) |
| 317 inline static int NumAllocatableAliasedRegisters() { | 317 inline static int NumAllocatableAliasedRegisters() { |
| 318 return NumAllocatableRegisters(); | 318 return NumAllocatableRegisters(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 static int NumAllocatableRegistersForTurbo() { |
| 322 return kMaxNumAllocatableRegisters; |
| 323 } |
| 324 |
| 325 static int NumAllocatableAliasedRegistersForTurbo() { |
| 326 return NumAllocatableAliasedRegisters(); |
| 327 } |
| 328 |
| 321 static int ToAllocationIndex(DoubleRegister reg) { | 329 static int ToAllocationIndex(DoubleRegister reg) { |
| 322 int code = reg.code(); | 330 int code = reg.code(); |
| 323 int index = (code <= kAllocatableLowRangeEnd) | 331 int index = (code <= kAllocatableLowRangeEnd) |
| 324 ? code - kAllocatableLowRangeBegin | 332 ? code - kAllocatableLowRangeBegin |
| 325 : code - kAllocatableHighRangeBegin + kNumAllocatableLow; | 333 : code - kAllocatableHighRangeBegin + kNumAllocatableLow; |
| 326 DCHECK(index < kMaxNumAllocatableRegisters); | 334 DCHECK(index < kMaxNumAllocatableRegisters); |
| 327 return index; | 335 return index; |
| 328 } | 336 } |
| 329 | 337 |
| 330 static DoubleRegister FromAllocationIndex(int index) { | 338 static DoubleRegister FromAllocationIndex(int index) { |
| (...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1534 | 1542 |
| 1535 | 1543 |
| 1536 class EnsureSpace BASE_EMBEDDED { | 1544 class EnsureSpace BASE_EMBEDDED { |
| 1537 public: | 1545 public: |
| 1538 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } | 1546 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } |
| 1539 }; | 1547 }; |
| 1540 } | 1548 } |
| 1541 } // namespace v8::internal | 1549 } // namespace v8::internal |
| 1542 | 1550 |
| 1543 #endif // V8_PPC_ASSEMBLER_PPC_H_ | 1551 #endif // V8_PPC_ASSEMBLER_PPC_H_ |
| OLD | NEW |