| 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 uint64_t OS::CpuFeaturesImpliedByPlatform() { | |
| 235 // MacOSX requires all these to install so we can assume they are present. | |
| 236 // These constants are defined by the CPUid instructions. | |
| 237 const uint64_t one = 1; | |
| 238 return (one << SSE2) | (one << CMOV) | (one << RDTSC) | (one << CPUID); | |
| 239 } | |
| 240 | |
| 241 | |
| 242 int OS::ActivationFrameAlignment() { | 234 int OS::ActivationFrameAlignment() { |
| 243 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI | 235 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI |
| 244 // Function Call Guide". | 236 // Function Call Guide". |
| 245 return 16; | 237 return 16; |
| 246 } | 238 } |
| 247 | 239 |
| 248 | 240 |
| 249 const char* OS::LocalTimezone(double time) { | 241 const char* OS::LocalTimezone(double time) { |
| 250 if (std::isnan(time)) return ""; | 242 if (std::isnan(time)) return ""; |
| 251 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 243 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 limit_mutex = CreateMutex(); | 453 limit_mutex = CreateMutex(); |
| 462 } | 454 } |
| 463 | 455 |
| 464 | 456 |
| 465 void OS::TearDown() { | 457 void OS::TearDown() { |
| 466 delete limit_mutex; | 458 delete limit_mutex; |
| 467 } | 459 } |
| 468 | 460 |
| 469 | 461 |
| 470 } } // namespace v8::internal | 462 } } // namespace v8::internal |
| OLD | NEW |