| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // of the CPU and the OS. The bits in the answer correspond to the bit | 286 // of the CPU and the OS. The bits in the answer correspond to the bit |
| 287 // positions indicated by the members of the CpuFeature enum from globals.h | 287 // positions indicated by the members of the CpuFeature enum from globals.h |
| 288 static uint64_t CpuFeaturesImpliedByPlatform(); | 288 static uint64_t CpuFeaturesImpliedByPlatform(); |
| 289 | 289 |
| 290 // Returns the double constant NAN | 290 // Returns the double constant NAN |
| 291 static double nan_value(); | 291 static double nan_value(); |
| 292 | 292 |
| 293 // Support runtime detection of VFP3 on ARM CPUs. | 293 // Support runtime detection of VFP3 on ARM CPUs. |
| 294 static bool ArmCpuHasFeature(CpuFeature feature); | 294 static bool ArmCpuHasFeature(CpuFeature feature); |
| 295 | 295 |
| 296 // Support runtime detection of FPU on MIPS CPUs. |
| 297 static bool MipsCpuHasFeature(CpuFeature feature); |
| 298 |
| 296 // Returns the activation frame alignment constraint or zero if | 299 // Returns the activation frame alignment constraint or zero if |
| 297 // the platform doesn't care. Guaranteed to be a power of two. | 300 // the platform doesn't care. Guaranteed to be a power of two. |
| 298 static int ActivationFrameAlignment(); | 301 static int ActivationFrameAlignment(); |
| 299 | 302 |
| 300 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value); | 303 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value); |
| 301 | 304 |
| 302 private: | 305 private: |
| 303 static const int msPerSecond = 1000; | 306 static const int msPerSecond = 1000; |
| 304 | 307 |
| 305 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); | 308 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 int samples_taken_; // Counts stack samples taken. | 654 int samples_taken_; // Counts stack samples taken. |
| 652 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 655 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
| 653 }; | 656 }; |
| 654 | 657 |
| 655 | 658 |
| 656 #endif // ENABLE_LOGGING_AND_PROFILING | 659 #endif // ENABLE_LOGGING_AND_PROFILING |
| 657 | 660 |
| 658 } } // namespace v8::internal | 661 } } // namespace v8::internal |
| 659 | 662 |
| 660 #endif // V8_PLATFORM_H_ | 663 #endif // V8_PLATFORM_H_ |
| OLD | NEW |