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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // Get a tick counter normalized to one tick per microsecond. | 136 // Get a tick counter normalized to one tick per microsecond. |
137 // Used for calculating time intervals. | 137 // Used for calculating time intervals. |
138 static int64_t Ticks(); | 138 static int64_t Ticks(); |
139 | 139 |
140 // Returns current time as the number of milliseconds since | 140 // Returns current time as the number of milliseconds since |
141 // 00:00:00 UTC, January 1, 1970. | 141 // 00:00:00 UTC, January 1, 1970. |
142 static double TimeCurrentMillis(); | 142 static double TimeCurrentMillis(); |
143 | 143 |
144 // Returns a string identifying the current time zone. The | 144 // Returns a string identifying the current time zone. The |
145 // timestamp is used for determining if DST is in effect. | 145 // timestamp is used for determining if DST is in effect. |
146 static char* LocalTimezone(double time); | 146 static const char* LocalTimezone(double time); |
147 | 147 |
148 // Returns the local time offset in milliseconds east of UTC without | 148 // Returns the local time offset in milliseconds east of UTC without |
149 // taking daylight savings time into account. | 149 // taking daylight savings time into account. |
150 static double LocalTimeOffset(); | 150 static double LocalTimeOffset(); |
151 | 151 |
152 // Returns the daylight savings offset for the given time. | 152 // Returns the daylight savings offset for the given time. |
153 static double DaylightSavingsOffset(double time); | 153 static double DaylightSavingsOffset(double time); |
154 | 154 |
155 static FILE* FOpen(const char* path, const char* mode); | 155 static FILE* FOpen(const char* path, const char* mode); |
156 | 156 |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 bool active_; | 535 bool active_; |
536 PlatformData* data_; // Platform specific data. | 536 PlatformData* data_; // Platform specific data. |
537 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 537 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
538 }; | 538 }; |
539 | 539 |
540 #endif // ENABLE_LOGGING_AND_PROFILING | 540 #endif // ENABLE_LOGGING_AND_PROFILING |
541 | 541 |
542 } } // namespace v8::internal | 542 } } // namespace v8::internal |
543 | 543 |
544 #endif // V8_PLATFORM_H_ | 544 #endif // V8_PLATFORM_H_ |
OLD | NEW |