| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include <errno.h> | 47 #include <errno.h> |
| 48 #include <stdarg.h> | 48 #include <stdarg.h> |
| 49 #include <limits.h> | 49 #include <limits.h> |
| 50 | 50 |
| 51 #undef MAP_TYPE | 51 #undef MAP_TYPE |
| 52 | 52 |
| 53 #include "v8.h" | 53 #include "v8.h" |
| 54 #include "v8threads.h" | 54 #include "v8threads.h" |
| 55 | 55 |
| 56 #include "platform.h" | 56 #include "platform.h" |
| 57 #include "vm-state-inl.h" | |
| 58 | 57 |
| 59 | 58 |
| 60 namespace v8 { | 59 namespace v8 { |
| 61 namespace internal { | 60 namespace internal { |
| 62 | 61 |
| 63 | 62 |
| 64 const char* OS::LocalTimezone(double time, TimezoneCache* cache) { | 63 const char* OS::LocalTimezone(double time, TimezoneCache* cache) { |
| 65 if (std::isnan(time)) return ""; | 64 if (std::isnan(time)) return ""; |
| 66 time_t tv = static_cast<time_t>(std::floor(time/msPerSecond)); | 65 time_t tv = static_cast<time_t>(std::floor(time/msPerSecond)); |
| 67 struct tm* t = localtime(&tv); | 66 struct tm* t = localtime(&tv); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 return munmap(base, size) == 0; | 322 return munmap(base, size) == 0; |
| 324 } | 323 } |
| 325 | 324 |
| 326 | 325 |
| 327 bool VirtualMemory::HasLazyCommits() { | 326 bool VirtualMemory::HasLazyCommits() { |
| 328 // TODO(alph): implement for the platform. | 327 // TODO(alph): implement for the platform. |
| 329 return false; | 328 return false; |
| 330 } | 329 } |
| 331 | 330 |
| 332 } } // namespace v8::internal | 331 } } // namespace v8::internal |
| OLD | NEW |