| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 3 // All Rights Reserved. | 3 // All Rights Reserved. |
| 4 // | 4 // |
| 5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
| 6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
| 7 // met: | 7 // met: |
| 8 // | 8 // |
| 9 // - Redistributions of source code must retain the above copyright notice, | 9 // - Redistributions of source code must retain the above copyright notice, |
| 10 // this list of conditions and the following disclaimer. | 10 // this list of conditions and the following disclaimer. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 int DoubleRegister::NumRegisters() { | 92 int DoubleRegister::NumRegisters() { |
| 93 return FPURegister::kMaxNumRegisters; | 93 return FPURegister::kMaxNumRegisters; |
| 94 } | 94 } |
| 95 | 95 |
| 96 | 96 |
| 97 int DoubleRegister::NumAllocatableRegisters() { | 97 int DoubleRegister::NumAllocatableRegisters() { |
| 98 return FPURegister::kMaxNumAllocatableRegisters; | 98 return FPURegister::kMaxNumAllocatableRegisters; |
| 99 } | 99 } |
| 100 | 100 |
| 101 | 101 |
| 102 int DoubleRegister::NumAllocatableAliasedRegisters() { |
| 103 return NumAllocatableRegisters(); |
| 104 } |
| 105 |
| 106 |
| 102 int FPURegister::ToAllocationIndex(FPURegister reg) { | 107 int FPURegister::ToAllocationIndex(FPURegister reg) { |
| 103 DCHECK(reg.code() % 2 == 0); | 108 DCHECK(reg.code() % 2 == 0); |
| 104 DCHECK(reg.code() / 2 < kMaxNumAllocatableRegisters); | 109 DCHECK(reg.code() / 2 < kMaxNumAllocatableRegisters); |
| 105 DCHECK(reg.is_valid()); | 110 DCHECK(reg.is_valid()); |
| 106 DCHECK(!reg.is(kDoubleRegZero)); | 111 DCHECK(!reg.is(kDoubleRegZero)); |
| 107 DCHECK(!reg.is(kLithiumScratchDouble)); | 112 DCHECK(!reg.is(kLithiumScratchDouble)); |
| 108 return (reg.code() / 2); | 113 return (reg.code() / 2); |
| 109 } | 114 } |
| 110 | 115 |
| 111 | 116 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 } | 446 } |
| 442 *reinterpret_cast<Instr*>(pc_) = x; | 447 *reinterpret_cast<Instr*>(pc_) = x; |
| 443 pc_ += kInstrSize; | 448 pc_ += kInstrSize; |
| 444 CheckTrampolinePoolQuick(); | 449 CheckTrampolinePoolQuick(); |
| 445 } | 450 } |
| 446 | 451 |
| 447 | 452 |
| 448 } } // namespace v8::internal | 453 } } // namespace v8::internal |
| 449 | 454 |
| 450 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 455 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
| OLD | NEW |