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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // positions indicated by the members of the CpuFeature enum from globals.h | 358 // positions indicated by the members of the CpuFeature enum from globals.h |
359 static uint64_t CpuFeaturesImpliedByPlatform(); | 359 static uint64_t CpuFeaturesImpliedByPlatform(); |
360 | 360 |
361 // Maximum size of the virtual memory. 0 means there is no artificial | 361 // Maximum size of the virtual memory. 0 means there is no artificial |
362 // limit. | 362 // limit. |
363 static intptr_t MaxVirtualMemory(); | 363 static intptr_t MaxVirtualMemory(); |
364 | 364 |
365 // Returns the double constant NAN | 365 // Returns the double constant NAN |
366 static double nan_value(); | 366 static double nan_value(); |
367 | 367 |
368 // Support runtime detection of Cpu implementer | |
369 static CpuImplementer GetCpuImplementer(); | |
370 | |
371 // Support runtime detection of Cpu implementer | |
372 static CpuPart GetCpuPart(CpuImplementer implementer); | |
373 | |
374 // Support runtime detection of VFP3 on ARM CPUs. | |
375 static bool ArmCpuHasFeature(CpuFeature feature); | |
376 | |
377 // Support runtime detection of whether the hard float option of the | 368 // Support runtime detection of whether the hard float option of the |
378 // EABI is used. | 369 // EABI is used. |
379 static bool ArmUsingHardFloat(); | 370 static bool ArmUsingHardFloat(); |
380 | 371 |
381 // Support runtime detection of FPU on MIPS CPUs. | |
382 static bool MipsCpuHasFeature(CpuFeature feature); | |
383 | |
384 // Returns the activation frame alignment constraint or zero if | 372 // Returns the activation frame alignment constraint or zero if |
385 // the platform doesn't care. Guaranteed to be a power of two. | 373 // the platform doesn't care. Guaranteed to be a power of two. |
386 static int ActivationFrameAlignment(); | 374 static int ActivationFrameAlignment(); |
387 | 375 |
388 #if defined(V8_TARGET_ARCH_IA32) | 376 #if defined(V8_TARGET_ARCH_IA32) |
389 // Limit below which the extra overhead of the MemCopy function is likely | 377 // Limit below which the extra overhead of the MemCopy function is likely |
390 // to outweigh the benefits of faster copying. | 378 // to outweigh the benefits of faster copying. |
391 static const int kMinComplexMemCopy = 64; | 379 static const int kMinComplexMemCopy = 64; |
392 | 380 |
393 // Copy memory area. No restrictions. | 381 // Copy memory area. No restrictions. |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 static uint16_t HToN(uint16_t value); | 805 static uint16_t HToN(uint16_t value); |
818 static uint16_t NToH(uint16_t value); | 806 static uint16_t NToH(uint16_t value); |
819 static uint32_t HToN(uint32_t value); | 807 static uint32_t HToN(uint32_t value); |
820 static uint32_t NToH(uint32_t value); | 808 static uint32_t NToH(uint32_t value); |
821 }; | 809 }; |
822 | 810 |
823 | 811 |
824 } } // namespace v8::internal | 812 } } // namespace v8::internal |
825 | 813 |
826 #endif // V8_PLATFORM_H_ | 814 #endif // V8_PLATFORM_H_ |
OLD | NEW |