diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-09-08 16:03:35 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-09-08 16:11:20 -0700 |
commit | 03c2f62020e231db8be078d33e836cbe7e015460 (patch) | |
tree | 976bbdb9a68710c6684e24106beff768132e6041 /deps/v8/src/conversions.h | |
parent | 0a127d6a694f2928f91d2ed51ef85a65768fdad3 (diff) | |
download | node-new-03c2f62020e231db8be078d33e836cbe7e015460.tar.gz |
Upgrade V8 to 3.6.2
Diffstat (limited to 'deps/v8/src/conversions.h')
-rw-r--r-- | deps/v8/src/conversions.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/src/conversions.h b/deps/v8/src/conversions.h index 0f8d5da8ee..e51ad6501c 100644 --- a/deps/v8/src/conversions.h +++ b/deps/v8/src/conversions.h @@ -30,11 +30,13 @@ #include <limits> -#include "scanner-base.h" +#include "utils.h" namespace v8 { namespace internal { +class UnicodeCache; + // Maximum number of significant digits in decimal representation. // The longest possible double in decimal representation is // (2^53 - 1) * 2 ^ -1074 that is (2 ^ 53 - 1) * 5 ^ 1074 / 10 ^ 1074 @@ -125,6 +127,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. |