| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "vm-state-inl.h" | 59 #include "vm-state-inl.h" |
| 60 | 60 |
| 61 | 61 |
| 62 namespace v8 { | 62 namespace v8 { |
| 63 namespace internal { | 63 namespace internal { |
| 64 | 64 |
| 65 | 65 |
| 66 static Mutex* limit_mutex = NULL; | 66 static Mutex* limit_mutex = NULL; |
| 67 | 67 |
| 68 | 68 |
| 69 uint64_t OS::CpuFeaturesImpliedByPlatform() { | |
| 70 return 0; // FreeBSD runs on anything. | |
| 71 } | |
| 72 | |
| 73 | |
| 74 int OS::ActivationFrameAlignment() { | 69 int OS::ActivationFrameAlignment() { |
| 75 // 16 byte alignment on FreeBSD | 70 // 16 byte alignment on FreeBSD |
| 76 return 16; | 71 return 16; |
| 77 } | 72 } |
| 78 | 73 |
| 79 | 74 |
| 80 const char* OS::LocalTimezone(double time) { | 75 const char* OS::LocalTimezone(double time) { |
| 81 if (std::isnan(time)) return ""; | 76 if (std::isnan(time)) return ""; |
| 82 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 77 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
| 83 struct tm* t = localtime(&tv); | 78 struct tm* t = localtime(&tv); |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 limit_mutex = CreateMutex(); | 445 limit_mutex = CreateMutex(); |
| 451 } | 446 } |
| 452 | 447 |
| 453 | 448 |
| 454 void OS::TearDown() { | 449 void OS::TearDown() { |
| 455 delete limit_mutex; | 450 delete limit_mutex; |
| 456 } | 451 } |
| 457 | 452 |
| 458 | 453 |
| 459 } } // namespace v8::internal | 454 } } // namespace v8::internal |
| OLD | NEW |