OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // only when compiling with GCC versions affected by the bug (2.96.x - 4.0.x) | 106 // only when compiling with GCC versions affected by the bug (2.96.x - 4.0.x) |
107 // __GNUC_PREREQ is not defined in GCC for Mac OS X, so we define our own macro | 107 // __GNUC_PREREQ is not defined in GCC for Mac OS X, so we define our own macro |
108 #if __GNUC_VERSION__ >= 29600 && __GNUC_VERSION__ < 40100 | 108 #if __GNUC_VERSION__ >= 29600 && __GNUC_VERSION__ < 40100 |
109 #include <limits> | 109 #include <limits> |
110 #undef V8_INFINITY | 110 #undef V8_INFINITY |
111 #define V8_INFINITY std::numeric_limits<double>::infinity() | 111 #define V8_INFINITY std::numeric_limits<double>::infinity() |
112 #endif | 112 #endif |
113 | 113 |
114 #endif // __GNUC__ | 114 #endif // __GNUC__ |
115 | 115 |
| 116 #include "atomic.h" |
| 117 |
116 namespace v8 { | 118 namespace v8 { |
117 namespace internal { | 119 namespace internal { |
118 | 120 |
119 // Use AtomicWord for a machine-sized pointer. It is assumed that | 121 // Use AtomicWord for a machine-sized pointer. It is assumed that |
120 // reads and writes of naturally aligned values of this type are atomic. | 122 // reads and writes of naturally aligned values of this type are atomic. |
121 typedef intptr_t AtomicWord; | 123 typedef intptr_t AtomicWord; |
122 | 124 |
123 class Semaphore; | 125 class Semaphore; |
124 | 126 |
125 double ceiling(double x); | 127 double ceiling(double x); |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 bool active_; | 579 bool active_; |
578 PlatformData* data_; // Platform specific data. | 580 PlatformData* data_; // Platform specific data. |
579 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 581 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
580 }; | 582 }; |
581 | 583 |
582 #endif // ENABLE_LOGGING_AND_PROFILING | 584 #endif // ENABLE_LOGGING_AND_PROFILING |
583 | 585 |
584 } } // namespace v8::internal | 586 } } // namespace v8::internal |
585 | 587 |
586 #endif // V8_PLATFORM_H_ | 588 #endif // V8_PLATFORM_H_ |
OLD | NEW |