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 const char* DwVfpRegister::AllocationIndexToString(int index) { | |
89 if (CpuFeatures::IsSupported(VFP2)) { | |
90 ASSERT(index >= 0 && index < kMaxNumAllocatableRegisters); | |
91 const char* const names[] = { | |
92 "d0", | |
93 "d1", | |
94 "d2", | |
95 "d3", | |
96 "d4", | |
97 "d5", | |
98 "d6", | |
99 "d7", | |
100 "d8", | |
101 "d9", | |
102 "d10", | |
103 "d11", | |
104 "d12", | |
105 "d13" | |
106 }; | |
107 return names[index]; | |
108 } else { | |
109 ASSERT(index == 0); | |
110 return "sfpd0"; | |
111 } | |
112 } | |
113 | |
114 | |
115 void CpuFeatures::Probe() { | 88 void CpuFeatures::Probe() { |
116 unsigned standard_features = static_cast<unsigned>( | 89 unsigned standard_features = static_cast<unsigned>( |
117 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler(); | 90 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler(); |
118 ASSERT(supported_ == 0 || supported_ == standard_features); | 91 ASSERT(supported_ == 0 || supported_ == standard_features); |
119 #ifdef DEBUG | 92 #ifdef DEBUG |
120 initialized_ = true; | 93 initialized_ = true; |
121 #endif | 94 #endif |
122 | 95 |
123 // Get the features implied by the OS and the compiler settings. This is the | 96 // Get the features implied by the OS and the compiler settings. This is the |
124 // minimal set of features which is also alowed for generated code in the | 97 // 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... |
2770 | 2743 |
2771 // Since a constant pool was just emitted, move the check offset forward by | 2744 // Since a constant pool was just emitted, move the check offset forward by |
2772 // the standard interval. | 2745 // the standard interval. |
2773 next_buffer_check_ = pc_offset() + kCheckPoolInterval; | 2746 next_buffer_check_ = pc_offset() + kCheckPoolInterval; |
2774 } | 2747 } |
2775 | 2748 |
2776 | 2749 |
2777 } } // namespace v8::internal | 2750 } } // namespace v8::internal |
2778 | 2751 |
2779 #endif // V8_TARGET_ARCH_ARM | 2752 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |