| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // && !defined(__SOFTFP__) | 78 // && !defined(__SOFTFP__) |
| 79 #endif // _arm__ | 79 #endif // _arm__ |
| 80 if (answer & (1u << ARMv7)) { | 80 if (answer & (1u << ARMv7)) { |
| 81 answer |= 1u << UNALIGNED_ACCESSES; | 81 answer |= 1u << UNALIGNED_ACCESSES; |
| 82 } | 82 } |
| 83 | 83 |
| 84 return answer; | 84 return answer; |
| 85 } | 85 } |
| 86 | 86 |
| 87 | 87 |
| 88 int Register::NumAllocatableRegisters() { |
| 89 if (CpuFeatures::IsSupported(VFP2)) { |
| 90 return kMaxNumAllocatableRegisters; |
| 91 } else { |
| 92 return kMaxNumAllocatableRegisters - kGPRsPerNonVFP2Double; |
| 93 } |
| 94 } |
| 95 |
| 96 |
| 97 int DoubleRegister::NumAllocatableRegisters() { |
| 98 if (CpuFeatures::IsSupported(VFP2)) { |
| 99 return DwVfpRegister::kMaxNumAllocatableRegisters; |
| 100 } else { |
| 101 return SoftFloatRegister::kMaxNumAllocatableRegisters; |
| 102 } |
| 103 } |
| 104 |
| 105 |
| 106 const char* DoubleRegister::AllocationIndexToString(int index) { |
| 107 if (CpuFeatures::IsSupported(VFP2)) { |
| 108 return DwVfpRegister::AllocationIndexToString(index); |
| 109 } else { |
| 110 return SoftFloatRegister::AllocationIndexToString(index); |
| 111 } |
| 112 } |
| 113 |
| 114 |
| 88 void CpuFeatures::Probe() { | 115 void CpuFeatures::Probe() { |
| 89 unsigned standard_features = static_cast<unsigned>( | 116 unsigned standard_features = static_cast<unsigned>( |
| 90 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler(); | 117 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler(); |
| 91 ASSERT(supported_ == 0 || supported_ == standard_features); | 118 ASSERT(supported_ == 0 || supported_ == standard_features); |
| 92 #ifdef DEBUG | 119 #ifdef DEBUG |
| 93 initialized_ = true; | 120 initialized_ = true; |
| 94 #endif | 121 #endif |
| 95 | 122 |
| 96 // Get the features implied by the OS and the compiler settings. This is the | 123 // Get the features implied by the OS and the compiler settings. This is the |
| 97 // minimal set of features which is also alowed for generated code in the | 124 // minimal set of features which is also alowed for generated code in the |
| (...skipping 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2743 | 2770 |
| 2744 // Since a constant pool was just emitted, move the check offset forward by | 2771 // Since a constant pool was just emitted, move the check offset forward by |
| 2745 // the standard interval. | 2772 // the standard interval. |
| 2746 next_buffer_check_ = pc_offset() + kCheckPoolInterval; | 2773 next_buffer_check_ = pc_offset() + kCheckPoolInterval; |
| 2747 } | 2774 } |
| 2748 | 2775 |
| 2749 | 2776 |
| 2750 } } // namespace v8::internal | 2777 } } // namespace v8::internal |
| 2751 | 2778 |
| 2752 #endif // V8_TARGET_ARCH_ARM | 2779 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |