| 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 <limits.h> | 5 #include <limits.h> |
| 6 #include <stdarg.h> | 6 #include <stdarg.h> |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 if (std::isnan(d)) return false; | 553 if (std::isnan(d)) return false; |
| 554 // Compute reverse string. | 554 // Compute reverse string. |
| 555 char reverse_buffer[kBufferSize + 1]; // Result will be /0 terminated. | 555 char reverse_buffer[kBufferSize + 1]; // Result will be /0 terminated. |
| 556 Vector<char> reverse_vector(reverse_buffer, arraysize(reverse_buffer)); | 556 Vector<char> reverse_vector(reverse_buffer, arraysize(reverse_buffer)); |
| 557 const char* reverse_string = DoubleToCString(d, reverse_vector); | 557 const char* reverse_string = DoubleToCString(d, reverse_vector); |
| 558 for (int i = 0; i < length; ++i) { | 558 for (int i = 0; i < length; ++i) { |
| 559 if (static_cast<uint16_t>(reverse_string[i]) != buffer[i]) return false; | 559 if (static_cast<uint16_t>(reverse_string[i]) != buffer[i]) return false; |
| 560 } | 560 } |
| 561 return true; | 561 return true; |
| 562 } | 562 } |
| 563 } } // namespace v8::internal | 563 } // namespace internal |
| 564 } // namespace v8 |
| OLD | NEW |