OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Use AtomicWord for a machine-sized pointer. It is assumed that | 89 // Use AtomicWord for a machine-sized pointer. It is assumed that |
90 // reads and writes of naturally aligned values of this type are atomic. | 90 // reads and writes of naturally aligned values of this type are atomic. |
91 typedef intptr_t AtomicWord; | 91 typedef intptr_t AtomicWord; |
92 | 92 |
93 class Semaphore; | 93 class Semaphore; |
94 class Mutex; | 94 class Mutex; |
95 | 95 |
96 double ceiling(double x); | 96 double ceiling(double x); |
97 double modulo(double x, double y); | 97 double modulo(double x, double y); |
98 | 98 |
| 99 // Custom implementation of sin, cos, tan and log. |
| 100 double fast_sin(double input); |
| 101 double fast_cos(double input); |
| 102 double fast_tan(double input); |
| 103 double fast_log(double input); |
| 104 |
99 // Forward declarations. | 105 // Forward declarations. |
100 class Socket; | 106 class Socket; |
101 | 107 |
102 // ---------------------------------------------------------------------------- | 108 // ---------------------------------------------------------------------------- |
103 // OS | 109 // OS |
104 // | 110 // |
105 // This class has static methods for the different platform specific | 111 // This class has static methods for the different platform specific |
106 // functions. Add methods here to cope with differences between the | 112 // functions. Add methods here to cope with differences between the |
107 // supported platforms. | 113 // supported platforms. |
108 | 114 |
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 Atomic32 active_; | 703 Atomic32 active_; |
698 PlatformData* data_; // Platform specific data. | 704 PlatformData* data_; // Platform specific data. |
699 int samples_taken_; // Counts stack samples taken. | 705 int samples_taken_; // Counts stack samples taken. |
700 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); | 706 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); |
701 }; | 707 }; |
702 | 708 |
703 | 709 |
704 } } // namespace v8::internal | 710 } } // namespace v8::internal |
705 | 711 |
706 #endif // V8_PLATFORM_H_ | 712 #endif // V8_PLATFORM_H_ |
OLD | NEW |