| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_BASE_FUNCTIONAL_H_ | 5 #ifndef V8_BASE_FUNCTIONAL_H_ |
| 6 #define V8_BASE_FUNCTIONAL_H_ | 6 #define V8_BASE_FUNCTIONAL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 8 #include <cstddef> | 11 #include <cstddef> |
| 9 #include <cstring> | 12 #include <cstring> |
| 10 #include <functional> | 13 #include <functional> |
| 11 #include <utility> | 14 #include <utility> |
| 12 | 15 |
| 13 #include "include/v8stdint.h" | |
| 14 #include "src/base/macros.h" | 16 #include "src/base/macros.h" |
| 15 | 17 |
| 16 namespace v8 { | 18 namespace v8 { |
| 17 namespace base { | 19 namespace base { |
| 18 | 20 |
| 19 // base::hash is an implementation of the hash function object specified by | 21 // base::hash is an implementation of the hash function object specified by |
| 20 // C++11. It was designed to be compatible with std::hash (in C++11) and | 22 // C++11. It was designed to be compatible with std::hash (in C++11) and |
| 21 // boost:hash (which in turn is based on the hash function object specified by | 23 // boost:hash (which in turn is based on the hash function object specified by |
| 22 // the Draft Technical Report on C++ Library Extensions (TR1)). | 24 // the Draft Technical Report on C++ Library Extensions (TR1)). |
| 23 // | 25 // |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 } \ | 218 } \ |
| 217 }; | 219 }; |
| 218 V8_BASE_BIT_SPECIALIZE_BIT_CAST(float, uint32_t) | 220 V8_BASE_BIT_SPECIALIZE_BIT_CAST(float, uint32_t) |
| 219 V8_BASE_BIT_SPECIALIZE_BIT_CAST(double, uint64_t) | 221 V8_BASE_BIT_SPECIALIZE_BIT_CAST(double, uint64_t) |
| 220 #undef V8_BASE_BIT_SPECIALIZE_BIT_CAST | 222 #undef V8_BASE_BIT_SPECIALIZE_BIT_CAST |
| 221 | 223 |
| 222 } // namespace base | 224 } // namespace base |
| 223 } // namespace v8 | 225 } // namespace v8 |
| 224 | 226 |
| 225 #endif // V8_BASE_FUNCTIONAL_H_ | 227 #endif // V8_BASE_FUNCTIONAL_H_ |
| OLD | NEW |