| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "platform-posix.h" | 54 #include "platform-posix.h" |
| 55 #include "platform.h" | 55 #include "platform.h" |
| 56 #include "v8threads.h" | 56 #include "v8threads.h" |
| 57 #include "vm-state-inl.h" | 57 #include "vm-state-inl.h" |
| 58 | 58 |
| 59 | 59 |
| 60 namespace v8 { | 60 namespace v8 { |
| 61 namespace internal { | 61 namespace internal { |
| 62 | 62 |
| 63 | 63 |
| 64 double ceiling(double x) { | |
| 65 return ceil(x); | |
| 66 } | |
| 67 | |
| 68 | |
| 69 static Mutex* limit_mutex = NULL; | 64 static Mutex* limit_mutex = NULL; |
| 70 | 65 |
| 71 | 66 |
| 72 static void* GetRandomMmapAddr() { | 67 static void* GetRandomMmapAddr() { |
| 73 Isolate* isolate = Isolate::UncheckedCurrent(); | 68 Isolate* isolate = Isolate::UncheckedCurrent(); |
| 74 // Note that the current isolate isn't set up in a call path via | 69 // Note that the current isolate isn't set up in a call path via |
| 75 // CpuFeatures::Probe. We don't care about randomization in this case because | 70 // CpuFeatures::Probe. We don't care about randomization in this case because |
| 76 // the code page is immediately freed. | 71 // the code page is immediately freed. |
| 77 if (isolate != NULL) { | 72 if (isolate != NULL) { |
| 78 #if V8_TARGET_ARCH_X64 | 73 #if V8_TARGET_ARCH_X64 |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 limit_mutex = CreateMutex(); | 544 limit_mutex = CreateMutex(); |
| 550 } | 545 } |
| 551 | 546 |
| 552 | 547 |
| 553 void OS::TearDown() { | 548 void OS::TearDown() { |
| 554 delete limit_mutex; | 549 delete limit_mutex; |
| 555 } | 550 } |
| 556 | 551 |
| 557 | 552 |
| 558 } } // namespace v8::internal | 553 } } // namespace v8::internal |
| OLD | NEW |