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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 static char* StrDup(const char* str); | 210 static char* StrDup(const char* str); |
211 | 211 |
212 // Support for profiler. Can do nothing, in which case ticks | 212 // Support for profiler. Can do nothing, in which case ticks |
213 // occuring in shared libraries will not be properly accounted | 213 // occuring in shared libraries will not be properly accounted |
214 // for. | 214 // for. |
215 static void LogSharedLibraryAddresses(); | 215 static void LogSharedLibraryAddresses(); |
216 | 216 |
217 // Returns the double constant NAN | 217 // Returns the double constant NAN |
218 static double nan_value(); | 218 static double nan_value(); |
219 | 219 |
| 220 // Returns the activation frame alignment constraint or zero if |
| 221 // the platform doesn't care. Guaranteed to be a power of two. |
| 222 static int ActivationFrameAlignment(); |
| 223 |
220 private: | 224 private: |
221 static const int msPerSecond = 1000; | 225 static const int msPerSecond = 1000; |
222 | 226 |
223 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); | 227 DISALLOW_IMPLICIT_CONSTRUCTORS(OS); |
224 }; | 228 }; |
225 | 229 |
226 | 230 |
227 class VirtualMemory { | 231 class VirtualMemory { |
228 public: | 232 public: |
229 // Reserves virtual memory with size. | 233 // Reserves virtual memory with size. |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 bool active_; | 441 bool active_; |
438 PlatformData* data_; // Platform specific data. | 442 PlatformData* data_; // Platform specific data. |
439 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 443 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
440 }; | 444 }; |
441 | 445 |
442 #endif // ENABLE_LOGGING_AND_PROFILING | 446 #endif // ENABLE_LOGGING_AND_PROFILING |
443 | 447 |
444 } } // namespace v8::internal | 448 } } // namespace v8::internal |
445 | 449 |
446 #endif // V8_PLATFORM_H_ | 450 #endif // V8_PLATFORM_H_ |
OLD | NEW |