OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 // of the CPU and the OS. The bits in the answer correspond to the bit | 287 // of the CPU and the OS. The bits in the answer correspond to the bit |
288 // positions indicated by the members of the CpuFeature enum from globals.h | 288 // positions indicated by the members of the CpuFeature enum from globals.h |
289 static uint64_t CpuFeaturesImpliedByPlatform(); | 289 static uint64_t CpuFeaturesImpliedByPlatform(); |
290 | 290 |
291 // Returns the double constant NAN | 291 // Returns the double constant NAN |
292 static double nan_value(); | 292 static double nan_value(); |
293 | 293 |
294 // Support runtime detection of VFP3 on ARM CPUs. | 294 // Support runtime detection of VFP3 on ARM CPUs. |
295 static bool ArmCpuHasFeature(CpuFeature feature); | 295 static bool ArmCpuHasFeature(CpuFeature feature); |
296 | 296 |
| 297 // Support runtime detection of FPU on MIPS CPUs. |
| 298 static bool MipsCpuHasFeature(CpuFeature feature); |
| 299 |
297 // Returns the activation frame alignment constraint or zero if | 300 // Returns the activation frame alignment constraint or zero if |
298 // the platform doesn't care. Guaranteed to be a power of two. | 301 // the platform doesn't care. Guaranteed to be a power of two. |
299 static int ActivationFrameAlignment(); | 302 static int ActivationFrameAlignment(); |
300 | 303 |
301 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value); | 304 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value); |
302 | 305 |
303 private: | 306 private: |
304 static const int msPerSecond = 1000; | 307 static const int msPerSecond = 1000; |
305 | 308 |
306 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); | 309 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 int samples_taken_; // Counts stack samples taken. | 668 int samples_taken_; // Counts stack samples taken. |
666 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 669 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
667 }; | 670 }; |
668 | 671 |
669 | 672 |
670 #endif // ENABLE_LOGGING_AND_PROFILING | 673 #endif // ENABLE_LOGGING_AND_PROFILING |
671 | 674 |
672 } } // namespace v8::internal | 675 } } // namespace v8::internal |
673 | 676 |
674 #endif // V8_PLATFORM_H_ | 677 #endif // V8_PLATFORM_H_ |
OLD | NEW |