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 #ifndef V8_CONVERSIONS_INL_H_ | 5 #ifndef V8_CONVERSIONS_INL_H_ |
6 #define V8_CONVERSIONS_INL_H_ | 6 #define V8_CONVERSIONS_INL_H_ |
7 | 7 |
8 #include <float.h> // Required for DBL_MAX and on Win32 for finite() | 8 #include <float.h> // Required for DBL_MAX and on Win32 for finite() |
9 #include <limits.h> // Required for INT_MAX etc. | 9 #include <limits.h> // Required for INT_MAX etc. |
10 #include <stdarg.h> | 10 #include <stdarg.h> |
11 #include <cmath> | 11 #include <cmath> |
12 #include "src/globals.h" // Required for V8_INFINITY | 12 #include "src/globals.h" // Required for V8_INFINITY |
| 13 #include "src/unicode-cache-inl.h" |
13 | 14 |
14 // ---------------------------------------------------------------------------- | 15 // ---------------------------------------------------------------------------- |
15 // Extra POSIX/ANSI functions for Win32/MSVC. | 16 // Extra POSIX/ANSI functions for Win32/MSVC. |
16 | 17 |
17 #include "src/base/bits.h" | 18 #include "src/base/bits.h" |
18 #include "src/base/platform/platform.h" | 19 #include "src/base/platform/platform.h" |
19 #include "src/conversions.h" | 20 #include "src/conversions.h" |
20 #include "src/double.h" | 21 #include "src/double.h" |
21 #include "src/objects-inl.h" | 22 #include "src/objects-inl.h" |
22 #include "src/scanner.h" | 23 #include "src/scanner.h" |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 SLOW_DCHECK(buffer_pos < kBufferSize); | 754 SLOW_DCHECK(buffer_pos < kBufferSize); |
754 buffer[buffer_pos] = '\0'; | 755 buffer[buffer_pos] = '\0'; |
755 | 756 |
756 double converted = Strtod(Vector<const char>(buffer, buffer_pos), exponent); | 757 double converted = Strtod(Vector<const char>(buffer, buffer_pos), exponent); |
757 return (sign == NEGATIVE) ? -converted : converted; | 758 return (sign == NEGATIVE) ? -converted : converted; |
758 } | 759 } |
759 | 760 |
760 } } // namespace v8::internal | 761 } } // namespace v8::internal |
761 | 762 |
762 #endif // V8_CONVERSIONS_INL_H_ | 763 #endif // V8_CONVERSIONS_INL_H_ |
OLD | NEW |