10 using namespace v8::internal;
47 const double x = 010000000000;
99 TEST(NonStrDecimalLiteral) {
135 "0000000000" "0000000000" "0000000000",
NO_FLAGS));
143 "0000000000" "0000000000" "0000000000" "1",
NO_FLAGS));
157 TEST(MaximumSignificantDigits) {
160 "4.4501477170144020250819966727949918635852426585926051135169509"
161 "122872622312493126406953054127118942431783801370080830523154578"
162 "251545303238277269592368457430440993619708911874715081505094180"
163 "604803751173783204118519353387964161152051487413083163272520124"
164 "606023105869053620631175265621765214646643181420505164043632222"
165 "668006474326056011713528291579642227455489682133472873831754840"
166 "341397809846934151055619529382191981473003234105366170879223151"
167 "087335413188049110555339027884856781219017754500629806224571029"
168 "581637117459456877330110324211689177656713705497387108207822477"
169 "584250967061891687062782163335299376138075114200886249979505279"
170 "101870966346394401564490729731565935244123171539810221213221201"
171 "847003580761626016356864581135848683152156368691976240370422601"
172 "6998291015625000000000000000000000000000000000e-308";
177 num[
sizeof(num) - 8] =
'1';
186 "445014771701440202508199667279499186358524265859260511351695091"
187 "228726223124931264069530541271189424317838013700808305231545782"
188 "515453032382772695923684574304409936197089118747150815050941806"
189 "048037511737832041185193533879641611520514874130831632725201246"
190 "060231058690536206311752656217652146466431814205051640436322226"
191 "680064743260560117135282915796422274554896821334728738317548403"
192 "413978098469341510556195293821919814730032341053661708792231510"
193 "873354131880491105553390278848567812190177545006298062245710295"
194 "816371174594568773301103242116891776567137054973871082078224775"
195 "842509670618916870627821633352993761380751142008862499795052791"
196 "018709663463944015644907297315659352441231715398102212132212018"
197 "470035807616260163568645811358486831521563686919762403704226016"
198 "998291015625000000000000000000000000000000000e-1108";
203 num[
sizeof(num) - 8] =
'1';
211 char num[] =
"0.16e309";
238 for (
int i = 0; i < 2; i++) {
253 for (
int i = 0; i < 256; i++) {
#define CHECK_EQ(expected, value)
static uint32_t encode(uint32_tvalue)
double StringToDouble(UnicodeCache *unicode_cache, const char *str, int flags, double empty_string_val)
static uint32_t decode(uint32_t value)
static double nan_value()
static bool is_valid(uint32_tvalue)