| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "platform.h" | 45 #include "platform.h" |
| 46 #include "simulator.h" | 46 #include "simulator.h" |
| 47 #include "v8threads.h" | 47 #include "v8threads.h" |
| 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 double ceiling(double x) { | |
| 56 return ceil(x); | |
| 57 } | |
| 58 | |
| 59 | |
| 60 static Mutex* limit_mutex = NULL; | 55 static Mutex* limit_mutex = NULL; |
| 61 | 56 |
| 62 | 57 |
| 63 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 58 uint64_t OS::CpuFeaturesImpliedByPlatform() { |
| 64 return 0; // Nothing special about Cygwin. | 59 return 0; // Nothing special about Cygwin. |
| 65 } | 60 } |
| 66 | 61 |
| 67 | 62 |
| 68 int OS::ActivationFrameAlignment() { | 63 int OS::ActivationFrameAlignment() { |
| 69 // With gcc 4.4 the tree vectorization optimizer can generate code | 64 // With gcc 4.4 the tree vectorization optimizer can generate code |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 limit_mutex = CreateMutex(); | 486 limit_mutex = CreateMutex(); |
| 492 } | 487 } |
| 493 | 488 |
| 494 | 489 |
| 495 void OS::TearDown() { | 490 void OS::TearDown() { |
| 496 delete limit_mutex; | 491 delete limit_mutex; |
| 497 } | 492 } |
| 498 | 493 |
| 499 | 494 |
| 500 } } // namespace v8::internal | 495 } } // namespace v8::internal |
| OLD | NEW |