| 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 24 matching lines...) Expand all Loading... |
| 35 #include <strings.h> // index | 35 #include <strings.h> // index |
| 36 #include <sys/time.h> | 36 #include <sys/time.h> |
| 37 #include <sys/mman.h> // mmap & munmap | 37 #include <sys/mman.h> // mmap & munmap |
| 38 #include <unistd.h> // sysconf | 38 #include <unistd.h> // sysconf |
| 39 | 39 |
| 40 #undef MAP_TYPE | 40 #undef MAP_TYPE |
| 41 | 41 |
| 42 #include "v8.h" | 42 #include "v8.h" |
| 43 | 43 |
| 44 #include "platform.h" | 44 #include "platform.h" |
| 45 #include "simulator.h" | |
| 46 #include "v8threads.h" | 45 #include "v8threads.h" |
| 47 #include "vm-state-inl.h" | |
| 48 #include "win32-headers.h" | 46 #include "win32-headers.h" |
| 49 | 47 |
| 50 namespace v8 { | 48 namespace v8 { |
| 51 namespace internal { | 49 namespace internal { |
| 52 | 50 |
| 53 | 51 |
| 54 const char* OS::LocalTimezone(double time, TimezoneCache* cache) { | 52 const char* OS::LocalTimezone(double time, TimezoneCache* cache) { |
| 55 if (std::isnan(time)) return ""; | 53 if (std::isnan(time)) return ""; |
| 56 time_t tv = static_cast<time_t>(std::floor(time/msPerSecond)); | 54 time_t tv = static_cast<time_t>(std::floor(time/msPerSecond)); |
| 57 struct tm* t = localtime(&tv); | 55 struct tm* t = localtime(&tv); |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 return VirtualFree(base, 0, MEM_RELEASE) != 0; | 346 return VirtualFree(base, 0, MEM_RELEASE) != 0; |
| 349 } | 347 } |
| 350 | 348 |
| 351 | 349 |
| 352 bool VirtualMemory::HasLazyCommits() { | 350 bool VirtualMemory::HasLazyCommits() { |
| 353 // TODO(alph): implement for the platform. | 351 // TODO(alph): implement for the platform. |
| 354 return false; | 352 return false; |
| 355 } | 353 } |
| 356 | 354 |
| 357 } } // namespace v8::internal | 355 } } // namespace v8::internal |
| OLD | NEW |