| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 static void StrNCpy(Vector<char> dest, const char* src, size_t n); | 243 static void StrNCpy(Vector<char> dest, const char* src, size_t n); |
| 244 | 244 |
| 245 // Support for profiler. Can do nothing, in which case ticks | 245 // Support for profiler. Can do nothing, in which case ticks |
| 246 // occuring in shared libraries will not be properly accounted | 246 // occuring in shared libraries will not be properly accounted |
| 247 // for. | 247 // for. |
| 248 static void LogSharedLibraryAddresses(); | 248 static void LogSharedLibraryAddresses(); |
| 249 | 249 |
| 250 // Returns the double constant NAN | 250 // Returns the double constant NAN |
| 251 static double nan_value(); | 251 static double nan_value(); |
| 252 | 252 |
| 253 // Support runtime detection of VFP3 on linux platforms. | 253 // Support runtime detection of VFP3 on ARM CPUs. |
| 254 static bool fgrep_vfp(const char * file_name, const char * string); | 254 enum CpuFeature { VFP }; |
| 255 static bool ArmCpuHasFeature(CpuFeature feature); |
| 255 | 256 |
| 256 // Returns the activation frame alignment constraint or zero if | 257 // Returns the activation frame alignment constraint or zero if |
| 257 // the platform doesn't care. Guaranteed to be a power of two. | 258 // the platform doesn't care. Guaranteed to be a power of two. |
| 258 static int ActivationFrameAlignment(); | 259 static int ActivationFrameAlignment(); |
| 259 | 260 |
| 260 private: | 261 private: |
| 261 static const int msPerSecond = 1000; | 262 static const int msPerSecond = 1000; |
| 262 | 263 |
| 263 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); | 264 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); |
| 264 }; | 265 }; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 bool active_; | 540 bool active_; |
| 540 PlatformData* data_; // Platform specific data. | 541 PlatformData* data_; // Platform specific data. |
| 541 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 542 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
| 542 }; | 543 }; |
| 543 | 544 |
| 544 #endif // ENABLE_LOGGING_AND_PROFILING | 545 #endif // ENABLE_LOGGING_AND_PROFILING |
| 545 | 546 |
| 546 } } // namespace v8::internal | 547 } } // namespace v8::internal |
| 547 | 548 |
| 548 #endif // V8_PLATFORM_H_ | 549 #endif // V8_PLATFORM_H_ |
| OLD | NEW |