| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 static void SignalCodeMovingGC(); | 281 static void SignalCodeMovingGC(); |
| 282 | 282 |
| 283 // The return value indicates the CPU features we are sure of because of the | 283 // The return value indicates the CPU features we are sure of because of the |
| 284 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have SSE2 | 284 // OS. For example MacOSX doesn't run on any x86 CPUs that don't have SSE2 |
| 285 // instructions. | 285 // instructions. |
| 286 // This is a little messy because the interpretation is subject to the cross | 286 // This is a little messy because the interpretation is subject to the cross |
| 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 // Maximum size of the virtual memory. 0 means there is no artificial | |
| 292 // limit. | |
| 293 static intptr_t MaxVirtualMemory(); | |
| 294 | |
| 295 // Returns the double constant NAN | 291 // Returns the double constant NAN |
| 296 static double nan_value(); | 292 static double nan_value(); |
| 297 | 293 |
| 298 // Support runtime detection of VFP3 on ARM CPUs. | 294 // Support runtime detection of VFP3 on ARM CPUs. |
| 299 static bool ArmCpuHasFeature(CpuFeature feature); | 295 static bool ArmCpuHasFeature(CpuFeature feature); |
| 300 | 296 |
| 301 // Support runtime detection of whether the hard float option of the | 297 // Support runtime detection of whether the hard float option of the |
| 302 // EABI is used. | 298 // EABI is used. |
| 303 static bool ArmUsingHardFloat(); | 299 static bool ArmUsingHardFloat(); |
| 304 | 300 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 int samples_taken_; // Counts stack samples taken. | 658 int samples_taken_; // Counts stack samples taken. |
| 663 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 659 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
| 664 }; | 660 }; |
| 665 | 661 |
| 666 | 662 |
| 667 #endif // ENABLE_LOGGING_AND_PROFILING | 663 #endif // ENABLE_LOGGING_AND_PROFILING |
| 668 | 664 |
| 669 } } // namespace v8::internal | 665 } } // namespace v8::internal |
| 670 | 666 |
| 671 #endif // V8_PLATFORM_H_ | 667 #endif // V8_PLATFORM_H_ |
| OLD | NEW |