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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 return x < 0; | 74 return x < 0; |
75 } | 75 } |
76 } | 76 } |
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 double ceiling(double x) { | |
85 return ceil(x); | |
86 } | |
87 | |
88 | |
89 static Mutex* limit_mutex = NULL; | 84 static Mutex* limit_mutex = NULL; |
90 | 85 |
91 | 86 |
92 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 87 uint64_t OS::CpuFeaturesImpliedByPlatform() { |
93 return 0; // Solaris runs on a lot of things. | 88 return 0; // Solaris runs on a lot of things. |
94 } | 89 } |
95 | 90 |
96 | 91 |
97 int OS::ActivationFrameAlignment() { | 92 int OS::ActivationFrameAlignment() { |
98 // GCC generates code that requires 16 byte alignment such as movdqa. | 93 // GCC generates code that requires 16 byte alignment such as movdqa. |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 limit_mutex = CreateMutex(); | 493 limit_mutex = CreateMutex(); |
499 } | 494 } |
500 | 495 |
501 | 496 |
502 void OS::TearDown() { | 497 void OS::TearDown() { |
503 delete limit_mutex; | 498 delete limit_mutex; |
504 } | 499 } |
505 | 500 |
506 | 501 |
507 } } // namespace v8::internal | 502 } } // namespace v8::internal |
OLD | NEW |