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 73 matching lines...) Loading... |
84 if (CpuFeatures::IsSupported(FPU)) { | 84 if (CpuFeatures::IsSupported(FPU)) { |
85 return kMaxNumAllocatableRegisters; | 85 return kMaxNumAllocatableRegisters; |
86 } else { | 86 } else { |
87 return kMaxNumAllocatableRegisters - kGPRsPerNonFPUDouble; | 87 return kMaxNumAllocatableRegisters - kGPRsPerNonFPUDouble; |
88 } | 88 } |
89 } | 89 } |
90 | 90 |
91 | 91 |
92 int DoubleRegister::NumRegisters() { | 92 int DoubleRegister::NumRegisters() { |
93 if (CpuFeatures::IsSupported(FPU)) { | 93 if (CpuFeatures::IsSupported(FPU)) { |
94 return FPURegister::kNumRegisters; | 94 return FPURegister::kMaxNumRegisters; |
95 } else { | 95 } else { |
96 return 1; | 96 return 1; |
97 } | 97 } |
98 } | 98 } |
99 | 99 |
100 | 100 |
101 int DoubleRegister::NumAllocatableRegisters() { | 101 int DoubleRegister::NumAllocatableRegisters() { |
102 if (CpuFeatures::IsSupported(FPU)) { | 102 if (CpuFeatures::IsSupported(FPU)) { |
103 return FPURegister::kMaxNumAllocatableRegisters; | 103 return FPURegister::kMaxNumAllocatableRegisters; |
104 } else { | 104 } else { |
(...skipping 311 matching lines...) Loading... |
416 } | 416 } |
417 *reinterpret_cast<Instr*>(pc_) = x; | 417 *reinterpret_cast<Instr*>(pc_) = x; |
418 pc_ += kInstrSize; | 418 pc_ += kInstrSize; |
419 CheckTrampolinePoolQuick(); | 419 CheckTrampolinePoolQuick(); |
420 } | 420 } |
421 | 421 |
422 | 422 |
423 } } // namespace v8::internal | 423 } } // namespace v8::internal |
424 | 424 |
425 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 425 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
OLD | NEW |