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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 #include <limits> | 107 #include <limits> |
108 #undef V8_INFINITY | 108 #undef V8_INFINITY |
109 #define V8_INFINITY std::numeric_limits<double>::infinity() | 109 #define V8_INFINITY std::numeric_limits<double>::infinity() |
110 #endif | 110 #endif |
111 | 111 |
112 #endif // __GNUC__ | 112 #endif // __GNUC__ |
113 | 113 |
114 namespace v8 { | 114 namespace v8 { |
115 namespace internal { | 115 namespace internal { |
116 | 116 |
| 117 // Use AtomicWord for a machine-sized pointer. It is assumed that |
| 118 // reads and writes of naturally aligned values of this type are atomic. |
| 119 typedef intptr_t AtomicWord; |
| 120 |
117 class Semaphore; | 121 class Semaphore; |
118 | 122 |
119 double ceiling(double x); | 123 double ceiling(double x); |
120 double modulo(double x, double y); | 124 double modulo(double x, double y); |
121 | 125 |
122 // Forward declarations. | 126 // Forward declarations. |
123 class Socket; | 127 class Socket; |
124 | 128 |
125 // ---------------------------------------------------------------------------- | 129 // ---------------------------------------------------------------------------- |
126 // OS | 130 // OS |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 bool active_; | 564 bool active_; |
561 PlatformData* data_; // Platform specific data. | 565 PlatformData* data_; // Platform specific data. |
562 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 566 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
563 }; | 567 }; |
564 | 568 |
565 #endif // ENABLE_LOGGING_AND_PROFILING | 569 #endif // ENABLE_LOGGING_AND_PROFILING |
566 | 570 |
567 } } // namespace v8::internal | 571 } } // namespace v8::internal |
568 | 572 |
569 #endif // V8_PLATFORM_H_ | 573 #endif // V8_PLATFORM_H_ |
OLD | NEW |