| Index: src/conversions.h
|
| diff --git a/src/conversions.h b/src/conversions.h
|
| index 7b02c47f6a0feeec3e960ebc29967274e58eb14d..632419fab2a52ee93fb699ff3fc1413d0117c071 100644
|
| --- a/src/conversions.h
|
| +++ b/src/conversions.h
|
| @@ -45,14 +45,14 @@ namespace internal {
|
| const int kMaxSignificantDigits = 772;
|
|
|
|
|
| -static bool isDigit(int x, int radix) {
|
| +static inline bool isDigit(int x, int radix) {
|
| return (x >= '0' && x <= '9' && x < '0' + radix)
|
| || (radix > 10 && x >= 'a' && x < 'a' + radix - 10)
|
| || (radix > 10 && x >= 'A' && x < 'A' + radix - 10);
|
| }
|
|
|
|
|
| -static double SignedZero(bool negative) {
|
| +static inline double SignedZero(bool negative) {
|
| return negative ? -0.0 : 0.0;
|
| }
|
|
|
| @@ -125,6 +125,8 @@ double StringToDouble(UnicodeCache* unicode_cache,
|
| int flags,
|
| double empty_string_val = 0);
|
|
|
| +const int kDoubleToCStringMinBufferSize = 100;
|
| +
|
| // Converts a double to a string value according to ECMA-262 9.8.1.
|
| // The buffer should be large enough for any floating point number.
|
| // 100 characters is enough.
|
|
|