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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 #include "lazy-instance.h" | 100 #include "lazy-instance.h" |
101 #include "platform-tls.h" | 101 #include "platform-tls.h" |
102 #include "utils.h" | 102 #include "utils.h" |
103 #include "v8globals.h" | 103 #include "v8globals.h" |
104 | 104 |
105 namespace v8 { | 105 namespace v8 { |
106 namespace internal { | 106 namespace internal { |
107 | 107 |
108 // Use AtomicWord for a machine-sized pointer. It is assumed that | 108 // Use AtomicWord for a machine-sized pointer. It is assumed that |
109 // reads and writes of naturally aligned values of this type are atomic. | 109 // reads and writes of naturally aligned values of this type are atomic. |
| 110 #if defined(__OpenBSD__) && defined(__i386__) |
| 111 typedef Atomic32 AtomicWord; |
| 112 #else |
110 typedef intptr_t AtomicWord; | 113 typedef intptr_t AtomicWord; |
| 114 #endif |
111 | 115 |
112 class Semaphore; | 116 class Semaphore; |
113 class Mutex; | 117 class Mutex; |
114 | 118 |
115 double ceiling(double x); | 119 double ceiling(double x); |
116 double modulo(double x, double y); | 120 double modulo(double x, double y); |
117 | 121 |
118 // Custom implementation of sin, cos, tan and log. | 122 // Custom implementation of sin, cos, tan and log. |
119 double fast_sin(double input); | 123 double fast_sin(double input); |
120 double fast_cos(double input); | 124 double fast_cos(double input); |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 Atomic32 active_; | 781 Atomic32 active_; |
778 PlatformData* data_; // Platform specific data. | 782 PlatformData* data_; // Platform specific data. |
779 int samples_taken_; // Counts stack samples taken. | 783 int samples_taken_; // Counts stack samples taken. |
780 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 784 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
781 }; | 785 }; |
782 | 786 |
783 | 787 |
784 } } // namespace v8::internal | 788 } } // namespace v8::internal |
785 | 789 |
786 #endif // V8_PLATFORM_H_ | 790 #endif // V8_PLATFORM_H_ |
OLD | NEW |