OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 break; | 149 break; |
150 case VFP3: | 150 case VFP3: |
151 search_string = "vfpv3"; | 151 search_string = "vfpv3"; |
152 break; | 152 break; |
153 case ARMv7: | 153 case ARMv7: |
154 search_string = "ARMv7"; | 154 search_string = "ARMv7"; |
155 break; | 155 break; |
156 case SUDIV: | 156 case SUDIV: |
157 search_string = "idiva"; | 157 search_string = "idiva"; |
158 break; | 158 break; |
| 159 case VFP32DREGS: |
| 160 // This case is handled specially below. |
| 161 break; |
159 default: | 162 default: |
160 UNREACHABLE(); | 163 UNREACHABLE(); |
161 } | 164 } |
162 | 165 |
| 166 if (feature == VFP32DREGS) { |
| 167 return ArmCpuHasFeature(VFP3) && !CPUInfoContainsString("d16"); |
| 168 } |
| 169 |
163 if (CPUInfoContainsString(search_string)) { | 170 if (CPUInfoContainsString(search_string)) { |
164 return true; | 171 return true; |
165 } | 172 } |
166 | 173 |
167 if (feature == VFP3) { | 174 if (feature == VFP3) { |
168 // Some old kernels will report vfp not vfpv3. Here we make a last attempt | 175 // Some old kernels will report vfp not vfpv3. Here we make a last attempt |
169 // to detect vfpv3 by checking for vfp *and* neon, since neon is only | 176 // to detect vfpv3 by checking for vfp *and* neon, since neon is only |
170 // available on architectures with vfpv3. | 177 // available on architectures with vfpv3. |
171 // Checking neon on its own is not enough as it is possible to have neon | 178 // Checking neon on its own is not enough as it is possible to have neon |
172 // without vfp. | 179 // without vfp. |
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 | 1320 |
1314 | 1321 |
1315 void Sampler::Stop() { | 1322 void Sampler::Stop() { |
1316 ASSERT(IsActive()); | 1323 ASSERT(IsActive()); |
1317 SignalSender::RemoveActiveSampler(this); | 1324 SignalSender::RemoveActiveSampler(this); |
1318 SetActive(false); | 1325 SetActive(false); |
1319 } | 1326 } |
1320 | 1327 |
1321 | 1328 |
1322 } } // namespace v8::internal | 1329 } } // namespace v8::internal |
OLD | NEW |