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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } // namespace std | 77 } // namespace std |
78 #endif // signbit | 78 #endif // signbit |
79 | 79 |
80 namespace v8 { | 80 namespace v8 { |
81 namespace internal { | 81 namespace internal { |
82 | 82 |
83 | 83 |
84 static Mutex* limit_mutex = NULL; | 84 static Mutex* limit_mutex = NULL; |
85 | 85 |
86 | 86 |
87 uint64_t OS::CpuFeaturesImpliedByPlatform() { | |
88 return 0; // Solaris runs on a lot of things. | |
89 } | |
90 | |
91 | |
92 int OS::ActivationFrameAlignment() { | 87 int OS::ActivationFrameAlignment() { |
93 // GCC generates code that requires 16 byte alignment such as movdqa. | 88 // GCC generates code that requires 16 byte alignment such as movdqa. |
94 return Max(STACK_ALIGN, 16); | 89 return Max(STACK_ALIGN, 16); |
95 } | 90 } |
96 | 91 |
97 | 92 |
98 const char* OS::LocalTimezone(double time) { | 93 const char* OS::LocalTimezone(double time) { |
99 if (std::isnan(time)) return ""; | 94 if (std::isnan(time)) return ""; |
100 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 95 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
101 struct tm* t = localtime(&tv); | 96 struct tm* t = localtime(&tv); |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 limit_mutex = CreateMutex(); | 488 limit_mutex = CreateMutex(); |
494 } | 489 } |
495 | 490 |
496 | 491 |
497 void OS::TearDown() { | 492 void OS::TearDown() { |
498 delete limit_mutex; | 493 delete limit_mutex; |
499 } | 494 } |
500 | 495 |
501 | 496 |
502 } } // namespace v8::internal | 497 } } // namespace v8::internal |
OLD | NEW |