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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // positions indicated by the members of the CpuFeature enum from globals.h | 301 // positions indicated by the members of the CpuFeature enum from globals.h |
302 static uint64_t CpuFeaturesImpliedByPlatform(); | 302 static uint64_t CpuFeaturesImpliedByPlatform(); |
303 | 303 |
304 // Maximum size of the virtual memory. 0 means there is no artificial | 304 // Maximum size of the virtual memory. 0 means there is no artificial |
305 // limit. | 305 // limit. |
306 static intptr_t MaxVirtualMemory(); | 306 static intptr_t MaxVirtualMemory(); |
307 | 307 |
308 // Returns the double constant NAN | 308 // Returns the double constant NAN |
309 static double nan_value(); | 309 static double nan_value(); |
310 | 310 |
| 311 // Support runtime detection of Cpu implementer |
| 312 static CpuImplementer GetCpuImplementer(); |
| 313 |
311 // Support runtime detection of VFP3 on ARM CPUs. | 314 // Support runtime detection of VFP3 on ARM CPUs. |
312 static bool ArmCpuHasFeature(CpuFeature feature); | 315 static bool ArmCpuHasFeature(CpuFeature feature); |
313 | 316 |
314 // Support runtime detection of whether the hard float option of the | 317 // Support runtime detection of whether the hard float option of the |
315 // EABI is used. | 318 // EABI is used. |
316 static bool ArmUsingHardFloat(); | 319 static bool ArmUsingHardFloat(); |
317 | 320 |
318 // Support runtime detection of FPU on MIPS CPUs. | 321 // Support runtime detection of FPU on MIPS CPUs. |
319 static bool MipsCpuHasFeature(CpuFeature feature); | 322 static bool MipsCpuHasFeature(CpuFeature feature); |
320 | 323 |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 Atomic32 active_; | 784 Atomic32 active_; |
782 PlatformData* data_; // Platform specific data. | 785 PlatformData* data_; // Platform specific data. |
783 int samples_taken_; // Counts stack samples taken. | 786 int samples_taken_; // Counts stack samples taken. |
784 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 787 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
785 }; | 788 }; |
786 | 789 |
787 | 790 |
788 } } // namespace v8::internal | 791 } } // namespace v8::internal |
789 | 792 |
790 #endif // V8_PLATFORM_H_ | 793 #endif // V8_PLATFORM_H_ |
OLD | NEW |