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 search_string = "vfpv3"; | |
Rodolph Perfetta
2012/12/17 14:38:30
The search_string variable is not used with VFP32D
hans
2012/12/17 15:32:46
Done.
| |
161 break; | |
159 default: | 162 default: |
160 UNREACHABLE(); | 163 UNREACHABLE(); |
161 } | 164 } |
162 | 165 |
166 if (feature == VFP32DREGS) { | |
167 return CPUInfoContainsString("vfpv3") && !CPUInfoContainsString("d16"); | |
Rodolph Perfetta
2012/12/17 14:38:30
I believe some early devices such as nexus one do
hans
2012/12/17 15:32:46
Done.
| |
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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1310 | 1317 |
1311 | 1318 |
1312 void Sampler::Stop() { | 1319 void Sampler::Stop() { |
1313 ASSERT(IsActive()); | 1320 ASSERT(IsActive()); |
1314 SignalSender::RemoveActiveSampler(this); | 1321 SignalSender::RemoveActiveSampler(this); |
1315 SetActive(false); | 1322 SetActive(false); |
1316 } | 1323 } |
1317 | 1324 |
1318 | 1325 |
1319 } } // namespace v8::internal | 1326 } } // namespace v8::internal |
OLD | NEW |