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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 int Register::NumAllocatableRegisters() { | 50 int Register::NumAllocatableRegisters() { |
51 return kMaxNumAllocatableRegisters; | 51 return kMaxNumAllocatableRegisters; |
52 } | 52 } |
53 | 53 |
54 | 54 |
55 int DwVfpRegister::NumRegisters() { | 55 int DwVfpRegister::NumRegisters() { |
56 return CpuFeatures::IsSupported(VFP32DREGS) ? 32 : 16; | 56 return CpuFeatures::IsSupported(VFP32DREGS) ? 32 : 16; |
57 } | 57 } |
58 | 58 |
59 | 59 |
| 60 int DwVfpRegister::NumReservedRegisters() { |
| 61 return kNumReservedRegisters; |
| 62 } |
| 63 |
| 64 |
60 int DwVfpRegister::NumAllocatableRegisters() { | 65 int DwVfpRegister::NumAllocatableRegisters() { |
61 return NumRegisters() - kNumReservedRegisters; | 66 return NumRegisters() - kNumReservedRegisters; |
62 } | 67 } |
63 | 68 |
64 | 69 |
65 int DwVfpRegister::ToAllocationIndex(DwVfpRegister reg) { | 70 int DwVfpRegister::ToAllocationIndex(DwVfpRegister reg) { |
66 ASSERT(!reg.is(kDoubleRegZero)); | 71 ASSERT(!reg.is(kDoubleRegZero)); |
67 ASSERT(!reg.is(kScratchDoubleReg)); | 72 ASSERT(!reg.is(kScratchDoubleReg)); |
68 if (reg.code() > kDoubleRegZero.code()) { | 73 if (reg.code() > kDoubleRegZero.code()) { |
69 return reg.code() - kNumReservedRegisters; | 74 return reg.code() - kNumReservedRegisters; |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 // ldr ip, [pc, #...] | 496 // ldr ip, [pc, #...] |
492 // since the instruction accessing this address in the constant pool remains | 497 // since the instruction accessing this address in the constant pool remains |
493 // unchanged. | 498 // unchanged. |
494 } | 499 } |
495 } | 500 } |
496 | 501 |
497 | 502 |
498 } } // namespace v8::internal | 503 } } // namespace v8::internal |
499 | 504 |
500 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 505 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
OLD | NEW |