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 |
291 // Returns the double constant NAN | 295 // Returns the double constant NAN |
292 static double nan_value(); | 296 static double nan_value(); |
293 | 297 |
294 // Support runtime detection of VFP3 on ARM CPUs. | 298 // Support runtime detection of VFP3 on ARM CPUs. |
295 static bool ArmCpuHasFeature(CpuFeature feature); | 299 static bool ArmCpuHasFeature(CpuFeature feature); |
296 | 300 |
297 // Support runtime detection of whether the hard float option of the | 301 // Support runtime detection of whether the hard float option of the |
298 // EABI is used. | 302 // EABI is used. |
299 static bool ArmUsingHardFloat(); | 303 static bool ArmUsingHardFloat(); |
300 | 304 |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 int samples_taken_; // Counts stack samples taken. | 660 int samples_taken_; // Counts stack samples taken. |
657 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 661 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
658 }; | 662 }; |
659 | 663 |
660 | 664 |
661 #endif // ENABLE_LOGGING_AND_PROFILING | 665 #endif // ENABLE_LOGGING_AND_PROFILING |
662 | 666 |
663 } } // namespace v8::internal | 667 } } // namespace v8::internal |
664 | 668 |
665 #endif // V8_PLATFORM_H_ | 669 #endif // V8_PLATFORM_H_ |
OLD | NEW |