| 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 | |
| 113 typedef intptr_t AtomicWord; | 110 typedef intptr_t AtomicWord; |
| 114 #endif | |
| 115 | 111 |
| 116 class Semaphore; | 112 class Semaphore; |
| 117 class Mutex; | 113 class Mutex; |
| 118 | 114 |
| 119 double ceiling(double x); | 115 double ceiling(double x); |
| 120 double modulo(double x, double y); | 116 double modulo(double x, double y); |
| 121 | 117 |
| 122 // Custom implementation of sin, cos, tan and log. | 118 // Custom implementation of sin, cos, tan and log. |
| 123 double fast_sin(double input); | 119 double fast_sin(double input); |
| 124 double fast_cos(double input); | 120 double fast_cos(double input); |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 Atomic32 active_; | 777 Atomic32 active_; |
| 782 PlatformData* data_; // Platform specific data. | 778 PlatformData* data_; // Platform specific data. |
| 783 int samples_taken_; // Counts stack samples taken. | 779 int samples_taken_; // Counts stack samples taken. |
| 784 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 780 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
| 785 }; | 781 }; |
| 786 | 782 |
| 787 | 783 |
| 788 } } // namespace v8::internal | 784 } } // namespace v8::internal |
| 789 | 785 |
| 790 #endif // V8_PLATFORM_H_ | 786 #endif // V8_PLATFORM_H_ |
| OLD | NEW |