OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include "platform/time.h" | 28 #include "platform/time.h" |
29 | 29 |
30 #if V8_OS_POSIX | 30 #if V8_OS_POSIX |
31 #include <sys/time.h> | 31 #include <sys/time.h> |
32 #endif | 32 #endif |
33 #if V8_OS_MACOSX | 33 #if V8_OS_MACOSX |
34 #include <mach/mach_time.h> | 34 #include <mach/mach_time.h> |
35 #endif | 35 #endif |
36 | 36 |
37 #include <cstring> | 37 #include <string.h> |
38 | 38 |
39 #include "checks.h" | 39 #include "checks.h" |
40 #include "cpu.h" | 40 #include "cpu.h" |
41 #include "platform.h" | 41 #include "platform.h" |
42 #if V8_OS_WIN | 42 #if V8_OS_WIN |
43 #include "win32-headers.h" | 43 #include "win32-headers.h" |
44 #endif | 44 #endif |
45 | 45 |
46 namespace v8 { | 46 namespace v8 { |
47 namespace internal { | 47 namespace internal { |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 | 582 |
583 | 583 |
584 // static | 584 // static |
585 bool TimeTicks::IsHighResolutionClockWorking() { | 585 bool TimeTicks::IsHighResolutionClockWorking() { |
586 return true; | 586 return true; |
587 } | 587 } |
588 | 588 |
589 #endif // V8_OS_WIN | 589 #endif // V8_OS_WIN |
590 | 590 |
591 } } // namespace v8::internal | 591 } } // namespace v8::internal |
OLD | NEW |