| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 LOG(Isolate::Current(), | 224 LOG(Isolate::Current(), |
| 225 SharedLibraryEvent(_dyld_get_image_name(i), start, start + size)); | 225 SharedLibraryEvent(_dyld_get_image_name(i), start, start + size)); |
| 226 } | 226 } |
| 227 } | 227 } |
| 228 | 228 |
| 229 | 229 |
| 230 void OS::SignalCodeMovingGC() { | 230 void OS::SignalCodeMovingGC() { |
| 231 } | 231 } |
| 232 | 232 |
| 233 | 233 |
| 234 int OS::ActivationFrameAlignment() { | |
| 235 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI | |
| 236 // Function Call Guide". | |
| 237 return 16; | |
| 238 } | |
| 239 | |
| 240 | |
| 241 const char* OS::LocalTimezone(double time) { | 234 const char* OS::LocalTimezone(double time) { |
| 242 if (std::isnan(time)) return ""; | 235 if (std::isnan(time)) return ""; |
| 243 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 236 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
| 244 struct tm* t = localtime(&tv); | 237 struct tm* t = localtime(&tv); |
| 245 if (NULL == t) return ""; | 238 if (NULL == t) return ""; |
| 246 return t->tm_zone; | 239 return t->tm_zone; |
| 247 } | 240 } |
| 248 | 241 |
| 249 | 242 |
| 250 double OS::LocalTimeOffset() { | 243 double OS::LocalTimeOffset() { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 limit_mutex = CreateMutex(); | 446 limit_mutex = CreateMutex(); |
| 454 } | 447 } |
| 455 | 448 |
| 456 | 449 |
| 457 void OS::TearDown() { | 450 void OS::TearDown() { |
| 458 delete limit_mutex; | 451 delete limit_mutex; |
| 459 } | 452 } |
| 460 | 453 |
| 461 | 454 |
| 462 } } // namespace v8::internal | 455 } } // namespace v8::internal |
| OLD | NEW |