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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 | 140 |
141 bool OS::ArmCpuHasFeature(CpuFeature feature) { | 141 bool OS::ArmCpuHasFeature(CpuFeature feature) { |
142 const char* search_string = NULL; | 142 const char* search_string = NULL; |
143 // Simple detection of VFP at runtime for Linux. | 143 // Simple detection of VFP at runtime for Linux. |
144 // It is based on /proc/cpuinfo, which reveals hardware configuration | 144 // It is based on /proc/cpuinfo, which reveals hardware configuration |
145 // to user-space applications. According to ARM (mid 2009), no similar | 145 // to user-space applications. According to ARM (mid 2009), no similar |
146 // facility is universally available on the ARM architectures, | 146 // facility is universally available on the ARM architectures, |
147 // so it's up to individual OSes to provide such. | 147 // so it's up to individual OSes to provide such. |
148 switch (feature) { | 148 switch (feature) { |
149 case VFP2: | |
150 search_string = "vfp"; | |
151 break; | |
152 case VFP3: | 149 case VFP3: |
153 search_string = "vfpv3"; | 150 search_string = "vfpv3"; |
154 break; | 151 break; |
155 case ARMv7: | 152 case ARMv7: |
156 search_string = "ARMv7"; | 153 search_string = "ARMv7"; |
157 break; | 154 break; |
158 case SUDIV: | 155 case SUDIV: |
159 search_string = "idiva"; | 156 search_string = "idiva"; |
160 break; | 157 break; |
161 case VFP32DREGS: | 158 case VFP32DREGS: |
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 | 1324 |
1328 | 1325 |
1329 void Sampler::Stop() { | 1326 void Sampler::Stop() { |
1330 ASSERT(IsActive()); | 1327 ASSERT(IsActive()); |
1331 SignalSender::RemoveActiveSampler(this); | 1328 SignalSender::RemoveActiveSampler(this); |
1332 SetActive(false); | 1329 SetActive(false); |
1333 } | 1330 } |
1334 | 1331 |
1335 | 1332 |
1336 } } // namespace v8::internal | 1333 } } // namespace v8::internal |
OLD | NEW |