| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // Support runtime detection of VFP3 on ARM CPUs. | 314 // Support runtime detection of VFP3 on ARM CPUs. |
| 315 static bool ArmCpuHasFeature(CpuFeature feature); | 315 static bool ArmCpuHasFeature(CpuFeature feature); |
| 316 | 316 |
| 317 // Support runtime detection of whether the hard float option of the | 317 // Support runtime detection of whether the hard float option of the |
| 318 // EABI is used. | 318 // EABI is used. |
| 319 static bool ArmUsingHardFloat(); | 319 static bool ArmUsingHardFloat(); |
| 320 | 320 |
| 321 // Support runtime detection of FPU on MIPS CPUs. | 321 // Support runtime detection of FPU on MIPS CPUs. |
| 322 static bool MipsCpuHasFeature(CpuFeature feature); | 322 static bool MipsCpuHasFeature(CpuFeature feature); |
| 323 | 323 |
| 324 // Support runtime detection of features on SH CPUs. |
| 325 static bool SHCpuHasFeature(CpuFeature feature); |
| 326 |
| 324 // Returns the activation frame alignment constraint or zero if | 327 // Returns the activation frame alignment constraint or zero if |
| 325 // the platform doesn't care. Guaranteed to be a power of two. | 328 // the platform doesn't care. Guaranteed to be a power of two. |
| 326 static int ActivationFrameAlignment(); | 329 static int ActivationFrameAlignment(); |
| 327 | 330 |
| 328 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value); | 331 static void ReleaseStore(volatile AtomicWord* ptr, AtomicWord value); |
| 329 | 332 |
| 330 #if defined(V8_TARGET_ARCH_IA32) | 333 #if defined(V8_TARGET_ARCH_IA32) |
| 331 // Copy memory area to disjoint memory area. | 334 // Copy memory area to disjoint memory area. |
| 332 static void MemCopy(void* dest, const void* src, size_t size); | 335 static void MemCopy(void* dest, const void* src, size_t size); |
| 333 // Limit below which the extra overhead of the MemCopy function is likely | 336 // Limit below which the extra overhead of the MemCopy function is likely |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 Atomic32 active_; | 792 Atomic32 active_; |
| 790 PlatformData* data_; // Platform specific data. | 793 PlatformData* data_; // Platform specific data. |
| 791 int samples_taken_; // Counts stack samples taken. | 794 int samples_taken_; // Counts stack samples taken. |
| 792 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 795 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
| 793 }; | 796 }; |
| 794 | 797 |
| 795 | 798 |
| 796 } } // namespace v8::internal | 799 } } // namespace v8::internal |
| 797 | 800 |
| 798 #endif // V8_PLATFORM_H_ | 801 #endif // V8_PLATFORM_H_ |
| OLD | NEW |