| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 168 // Returns last OS error. |
| 169 static int GetLastError(); | 169 static int GetLastError(); |
| 170 | 170 |
| 171 static FILE* FOpen(const char* path, const char* mode); | 171 static FILE* FOpen(const char* path, const char* mode); |
| 172 | 172 |
| 173 // 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. |
| 174 static const char* LogFileOpenMode; | 174 static const char* const LogFileOpenMode; |
| 175 | 175 |
| 176 // Print output to console. This is mostly used for debugging output. | 176 // Print output to console. This is mostly used for debugging output. |
| 177 // On platforms that has standard terminal output, the output | 177 // On platforms that has standard terminal output, the output |
| 178 // should go to stdout. | 178 // should go to stdout. |
| 179 static void Print(const char* format, ...); | 179 static void Print(const char* format, ...); |
| 180 static void VPrint(const char* format, va_list args); | 180 static void VPrint(const char* format, va_list args); |
| 181 | 181 |
| 182 // Print error output to console. This is mostly used for error message | 182 // Print error output to console. This is mostly used for error message |
| 183 // output. On platforms that has standard terminal output, the output | 183 // output. On platforms that has standard terminal output, the output |
| 184 // should go to stderr. | 184 // should go to stderr. |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 bool active_; | 583 bool active_; |
| 584 PlatformData* data_; // Platform specific data. | 584 PlatformData* data_; // Platform specific data. |
| 585 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 585 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
| 586 }; | 586 }; |
| 587 | 587 |
| 588 #endif // ENABLE_LOGGING_AND_PROFILING | 588 #endif // ENABLE_LOGGING_AND_PROFILING |
| 589 | 589 |
| 590 } } // namespace v8::internal | 590 } } // namespace v8::internal |
| 591 | 591 |
| 592 #endif // V8_PLATFORM_H_ | 592 #endif // V8_PLATFORM_H_ |
| OLD | NEW |