| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // timestamp is used for determining if DST is in effect. | 158 // timestamp is used for determining if DST is in effect. |
| 159 static const char* LocalTimezone(double time); | 159 static const char* LocalTimezone(double time); |
| 160 | 160 |
| 161 // Returns the local time offset in milliseconds east of UTC without | 161 // Returns the local time offset in milliseconds east of UTC without |
| 162 // taking daylight savings time into account. | 162 // taking daylight savings time into account. |
| 163 static double LocalTimeOffset(); | 163 static double LocalTimeOffset(); |
| 164 | 164 |
| 165 // Returns the daylight savings offset for the given time. | 165 // Returns the daylight savings offset for the given time. |
| 166 static double DaylightSavingsOffset(double time); | 166 static double DaylightSavingsOffset(double time); |
| 167 | 167 |
| 168 // Returns last OS error. |
| 169 static int GetLastError(); |
| 170 |
| 168 static FILE* FOpen(const char* path, const char* mode); | 171 static FILE* FOpen(const char* path, const char* mode); |
| 169 | 172 |
| 170 // Log file open mode is platform-dependent due to line ends issues. | 173 // Log file open mode is platform-dependent due to line ends issues. |
| 171 static const char* LogFileOpenMode; | 174 static const char* LogFileOpenMode; |
| 172 | 175 |
| 173 // Print output to console. This is mostly used for debugging output. | 176 // Print output to console. This is mostly used for debugging output. |
| 174 // On platforms that has standard terminal output, the output | 177 // On platforms that has standard terminal output, the output |
| 175 // should go to stdout. | 178 // should go to stdout. |
| 176 static void Print(const char* format, ...); | 179 static void Print(const char* format, ...); |
| 177 static void VPrint(const char* format, va_list args); | 180 static void VPrint(const char* format, va_list args); |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 bool active_; | 571 bool active_; |
| 569 PlatformData* data_; // Platform specific data. | 572 PlatformData* data_; // Platform specific data. |
| 570 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 573 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
| 571 }; | 574 }; |
| 572 | 575 |
| 573 #endif // ENABLE_LOGGING_AND_PROFILING | 576 #endif // ENABLE_LOGGING_AND_PROFILING |
| 574 | 577 |
| 575 } } // namespace v8::internal | 578 } } // namespace v8::internal |
| 576 | 579 |
| 577 #endif // V8_PLATFORM_H_ | 580 #endif // V8_PLATFORM_H_ |
| OLD | NEW |