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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "vm-state-inl.h" | 48 #include "vm-state-inl.h" |
49 #include "win32-headers.h" | 49 #include "win32-headers.h" |
50 | 50 |
51 namespace v8 { | 51 namespace v8 { |
52 namespace internal { | 52 namespace internal { |
53 | 53 |
54 | 54 |
55 static Mutex* limit_mutex = NULL; | 55 static Mutex* limit_mutex = NULL; |
56 | 56 |
57 | 57 |
58 uint64_t OS::CpuFeaturesImpliedByPlatform() { | |
59 return 0; // Nothing special about Cygwin. | |
60 } | |
61 | |
62 | |
63 int OS::ActivationFrameAlignment() { | 58 int OS::ActivationFrameAlignment() { |
64 // With gcc 4.4 the tree vectorization optimizer can generate code | 59 // With gcc 4.4 the tree vectorization optimizer can generate code |
65 // that requires 16 byte alignment such as movdqa on x86. | 60 // that requires 16 byte alignment such as movdqa on x86. |
66 return 16; | 61 return 16; |
67 } | 62 } |
68 | 63 |
69 | 64 |
70 const char* OS::LocalTimezone(double time) { | 65 const char* OS::LocalTimezone(double time) { |
71 if (std::isnan(time)) return ""; | 66 if (std::isnan(time)) return ""; |
72 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 67 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 limit_mutex = CreateMutex(); | 481 limit_mutex = CreateMutex(); |
487 } | 482 } |
488 | 483 |
489 | 484 |
490 void OS::TearDown() { | 485 void OS::TearDown() { |
491 delete limit_mutex; | 486 delete limit_mutex; |
492 } | 487 } |
493 | 488 |
494 | 489 |
495 } } // namespace v8::internal | 490 } } // namespace v8::internal |
OLD | NEW |