| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 #include "src/conversions.h" |
| 6 |
| 5 #include <limits.h> | 7 #include <limits.h> |
| 6 #include <stdarg.h> | 8 #include <stdarg.h> |
| 7 #include <cmath> | 9 #include <cmath> |
| 8 | 10 |
| 9 #include "src/v8.h" | |
| 10 | |
| 11 #include "src/assert-scope.h" | 11 #include "src/assert-scope.h" |
| 12 #include "src/char-predicates-inl.h" | 12 #include "src/char-predicates-inl.h" |
| 13 #include "src/conversions-inl.h" | 13 #include "src/conversions-inl.h" |
| 14 #include "src/conversions.h" | |
| 15 #include "src/dtoa.h" | 14 #include "src/dtoa.h" |
| 16 #include "src/factory.h" | 15 #include "src/factory.h" |
| 17 #include "src/list-inl.h" | 16 #include "src/list-inl.h" |
| 18 #include "src/strtod.h" | 17 #include "src/strtod.h" |
| 19 #include "src/utils.h" | 18 #include "src/utils.h" |
| 20 | 19 |
| 21 #ifndef _STLP_VENDOR_CSTD | 20 #ifndef _STLP_VENDOR_CSTD |
| 22 // STLPort doesn't import fpclassify into the std namespace. | 21 // STLPort doesn't import fpclassify into the std namespace. |
| 23 using std::fpclassify; | 22 using std::fpclassify; |
| 24 #endif | 23 #endif |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 char reverse_buffer[kBufferSize + 1]; // Result will be /0 terminated. | 554 char reverse_buffer[kBufferSize + 1]; // Result will be /0 terminated. |
| 556 Vector<char> reverse_vector(reverse_buffer, arraysize(reverse_buffer)); | 555 Vector<char> reverse_vector(reverse_buffer, arraysize(reverse_buffer)); |
| 557 const char* reverse_string = DoubleToCString(d, reverse_vector); | 556 const char* reverse_string = DoubleToCString(d, reverse_vector); |
| 558 for (int i = 0; i < length; ++i) { | 557 for (int i = 0; i < length; ++i) { |
| 559 if (static_cast<uint16_t>(reverse_string[i]) != buffer[i]) return false; | 558 if (static_cast<uint16_t>(reverse_string[i]) != buffer[i]) return false; |
| 560 } | 559 } |
| 561 return true; | 560 return true; |
| 562 } | 561 } |
| 563 } // namespace internal | 562 } // namespace internal |
| 564 } // namespace v8 | 563 } // namespace v8 |
| OLD | NEW |