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 <strings.h> // index | 45 #include <strings.h> // index |
46 #include <errno.h> | 46 #include <errno.h> |
47 #include <stdarg.h> | 47 #include <stdarg.h> |
48 | 48 |
49 #undef MAP_TYPE | 49 #undef MAP_TYPE |
50 | 50 |
51 #include "v8.h" | 51 #include "v8.h" |
52 | 52 |
53 #include "platform.h" | 53 #include "platform.h" |
54 #include "v8threads.h" | 54 #include "v8threads.h" |
55 #include "vm-state-inl.h" | |
56 | 55 |
57 | 56 |
58 namespace v8 { | 57 namespace v8 { |
59 namespace internal { | 58 namespace internal { |
60 | 59 |
61 | 60 |
62 const char* OS::LocalTimezone(double time, TimezoneCache* cache) { | 61 const char* OS::LocalTimezone(double time, TimezoneCache* cache) { |
63 if (std::isnan(time)) return ""; | 62 if (std::isnan(time)) return ""; |
64 time_t tv = static_cast<time_t>(std::floor(time/msPerSecond)); | 63 time_t tv = static_cast<time_t>(std::floor(time/msPerSecond)); |
65 struct tm* t = localtime(&tv); | 64 struct tm* t = localtime(&tv); |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 return munmap(base, size) == 0; | 354 return munmap(base, size) == 0; |
356 } | 355 } |
357 | 356 |
358 | 357 |
359 bool VirtualMemory::HasLazyCommits() { | 358 bool VirtualMemory::HasLazyCommits() { |
360 // TODO(alph): implement for the platform. | 359 // TODO(alph): implement for the platform. |
361 return false; | 360 return false; |
362 } | 361 } |
363 | 362 |
364 } } // namespace v8::internal | 363 } } // namespace v8::internal |
OLD | NEW |